|
Christian, Christian. Turn the gun around and shoot him. Feel better now? I thought you would.
Software Zen: delete this;
|
|
|
|
|
Come on guys dont be so bad...
|
|
|
|
|
hi everyone,
i'm in desperate need of a code that prints the content of the screen in OpenGL/C++
if anyone has a code or links that can help..i'll be greatful..
u can send me the links/code on my mail..karim.samir@hotmail.com
thanks,
karim
|
|
|
|
|
I'm using the MS Chart Control in Visual C++.net. I'm trying to change my chart type from 2dBar to 2dLine, programically. I can't find out how to do it - the documentation is just horrible. Can anybody help me!!!
I've tried ->chartType=, but I don't kow what to set the chart type equal to?
THANKS!!!
Kim
|
|
|
|
|
There is a great sample project here:
www.codeproject.com/listctrl/xlistctrl.asp
I can run the executable (anyone can do that) but I have had no
luck in compiling any of the projects. I get a variety of different
errors from unicode to
Cannot open include file: 'uxtheme.h':
Any chance any one can help me compile a smaller project
of a listctrl without Unicode and without the file
visualstylesxp.h? Im trying to find a listctrl that lets the
user edit individual cells and this project can do it. I just
cant get it to work.
Please, please, any response any one can give me will be greatly
appreciated.
My email address is brinasas@yahoo.com
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
You can probably strip themes from the code. Otherwise, you need to download a platform SDK to get these headers. If you're using VC6, then you'll have more issues, as the newer PSDKs do not support it ( and you should stop using it, if you can )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How about this? I put together a smaller sample project that has
an older version of XListCtrl built in. The one feature I seek, which
is the new release, is the ability to edit cells directly. That code is
in this file XEdit.cpp/.h; any chance I can email you this smaller sample
project and you can somehow make the XEdit work so that I can edit text
in cells?
Please, please, please, please!!
My email address is brinasas@yahoo.com
Sincerely,
Danielle Brina
|
|
|
|
|
I'd recommend going to www.araxis.com and downloading a trial version of their merging tool, that will let you diff the two files ( old and new ) and hopefully quickly see what code needs to be copied across to make that work.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
I want to save clipboard content with any format it may have and load it back again.
I'd be glad if someone could help me with this.
|
|
|
|
|
|
Hai
In my VC++ application i want to show the selected folder(from browse) in a separate list box and also the subfolders like a treeview.I dont need any control on folders, its just to show the folders..as in the browse folder dialog box.
Can any one suggest about the APIs that are usefull.
Thanks in advance
Regards
vijay
|
|
|
|
|
Hi
By default a property page has three buttons ie BACK,NEXT and CANCEL.
Along with these buttons,I want a FINISH button also in my Property pages.
How to achieve it?
With Regards
Neeraj Sinha
Netstudio
Pune
|
|
|
|
|
In wizard mode, the last property page in the set will change the 'next' button to 'finish' automatically. Check out the PSH_WIZARD and PSH_WIZARDHASFINISH values for the dwFlags value in the PROPSHEETHEADER [^] structure.
Software Zen: delete this;
|
|
|
|
|
Well,it's correct that On the last wizard page,the NEXT button can be
automatically changed to FINISH button,but I want the FINISH button
on all the wizard pages right from it's first page along with the NEXT,
BACK and CANCEL button at the same time.Is it possible to do so?
With Regards
Neeraj Sinha
Netstudio
Pune
|
|
|
|
|
Setting the PSH_WIZARDHASFINISH value in the dwFlags member of the PROPSHEETHEADER should do that. If you are using the CPropertyPage /CPropertySheet MFC classes, you should be able to do something like this:
CPropertySheet sheet;
sheet.m_psh.dwFlags |= PSH_WIZARD | PSH_WIZARDHASFINISH;
sheet.AddPage(...);
sheet.DoModal(); Alternatively, you can use the SetWizardButtons member function in the CPropertySheet class.
Software Zen: delete this;
|
|
|
|
|
|
In MFC exe application, how do populate my combo box using RecordSet Object, if i created my application with "database file support" at the time of creating the project.
I am getting exception message like "No colomns were bound before SQLBulkFetch" and like "No data fields found on which fetch specified"
I created RS object,I am calling SetRowSize(25), I am calling open(...) and getting exceptions.
san
|
|
|
|
|
Hi,
This is regarding conversion of C++ Multibyte character set to UNICODE character set.
We are converting the ANSI C++ source code to make it UNICODE compatible. But while converting the parameters of basic_istream methods like read(), write() etc. we are getting the following error:
error C2664: 'std::basic_istream<_Elem,_Traits> with [_Elem=char,_Traits=std::char_traits<char>]::read' : cannot convert parameter 1 from '_TCHAR *' to 'char *'; Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
The error is in the source code:
strm.read(data_+length(), capacity()-length());
Where the parameter of type _TCHAR * is passed whereas it's expecting char *. Could anyone please tell me what change should I do to the method to make it UNICODE compatible.
Thanks in Advance,
Debabrata Mukherjee
|
|
|
|
|
You have to change the declaration of strm . This[^] article might be of some help to you. Just be sure to heed this[^] warning.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
do anyone know about structured storage. please explain. i need a basic tutorial for this.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Google has some.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, first off thnx for the help guys getting a variable passed to a thread..
it works.
but i need to get either a return and check the status of a variable in that thread at any given point of time. can you help me out..
|
|
|
|
|
The basic approach to this problem is to have a variable that is accessible to both the thread and your program, and then to use one of the thread synchronization primitives to 'protect' the variable from simultaneous access by the program and the thread.
Here's a crude example, using an int as the shared data and a critical section for the thread sync primitive:
static int SharedVariable = 0;
CCriticalSection SharedCS;
static UINT Thread(LPVOID parameter);
int main()
{
AfxBeginThread(Thread,NULL);
for (;;<nobr>) {
SharedCS.Lock();
int shared_variable = SharedVariable;
SharedCS.Unlock();
}
}
UINT Thread(LPVOID parameter)
{
SharedCS.Lock();
SharedVariable = 1;
SharedCS.Unlock();
SharedCS.Lock();
SharedVariable = 2;
SharedCS.Unlock();
return 0;
} Each time either the main program or the thread function need to access the shared variable, they lock the critical section before the access, and unlock it afterward. When locked, a critical section guarantees that only one thread may 'enter' the section at a time. In my example, the main program is only reading the value, using it to monitor the progress of the thread.
Software Zen: delete this;
|
|
|
|
|
hi,
I am new to VC++ i am getting error for all assert's in the code. The error is error C2065: '__MODULE__' : undeclared identifier. I included assert.h still i am getting this error. Can any one tell me why is this error and what should i do to remove this error.
Sunil Reddy
|
|
|
|
|
Install latest platform SDK. Refer this FAQ[^].
|
|
|
|