Thanks for your reply.
I am adding jog panel support to a existing VB application. Jog panel basically is a kind of input device just like keyboard and mouse, but specifictly designed for some special applications.
In my case, the application is a video playing application(we embed Ms Media...
This could happen when deleting an invalid pointer.
For example, the following code would cause this problem:
char * gString = new char[255];
....
delete []gString;
....
and somewhere else you delete this pointer again.
delete []gStrings;
There are other situations you could come across...
Thanks for reply.
I just want to test afxDump, so I created a console project with MFC support, in my main function, I just put the following line:
afxDump << "Messages";
and I can not find the anything in the debug window.
The project was built with Win32 Debug configuration, so...
When I try to use MFC predefined variable afxDump which is of type CDumpContext, I can not get anything from it, but it supposes to dump output to default debugger, which in VC6.0 environment is the debug window.
Does anybody know the reason?
Thanks
Hank Gao
When I debug my application in IDE, I find sometimes when I call WaitforSingleObject which waits a event object, the whole application crashes, and the following message is given:
Unhandled exception in blabla.exe: 0xC0000005: access violation
My concern is that if the event handle which is...
The problem is because, I think, delete is called inappropriately.
Look the following example:
char * pChar = new char;
delete pChar;
delete pChar;
The above code runs without anywarning outside the debug environemnt, but error is reported in IDE. so please check your code to see if it is the...
"Incomplete installation"? probably, I never thought of this reason, and I will check it out.
I don't quite understand why you say VC.NET, I am using VC6.00, Do I have to use VC.NET before I can use __declspec(align(xx))?
Sorry the correct code is the following:
void MyFunc(char* pArray)
{
typedef char myArrayType[50[20];
myArrayType * pWork = (myArrayType *)pArray;
//Now you cna use pWork
(*pWork)[0][0] = 20; //Something like this.
....
}
Sorry for the mistake.
...you pass a char pointer. It's okay, on problem. The key is how to access the items in your function, you can do like the following:
MyFunc(char* pArray)
{
typedef char [50][20] myArrayType;
myArrayType * pWork = (myArrayType*)pArray;
//Now you can use pWork
pWork->[0][1] = 20; //Something...
Sure,
I declare a structure type as the following:
__declspec(align(16))
struct MyStruct {
//
short shortArray[12][64];
.....
}myVarName;
and the compiler reports:
fatal error C1600: unsupported data type
When I doule clike this error message in the build window, I can go nowhere in the...
In one of my projects, I have to use __declspec(align(16) to force the memory allocation is done at 16 bytes boundary, but I alway get error:
C1306(or else) => Unsupported Data Type
When I remove __declspec(align(16)) modifier, everything seems ok.
by the way, based on the MS document...
I think xerces apis are used to parse XML document, instead of generating XML document. If you want to create a XML documents, you have to write XML statements yourself.
Hope this can help.
I am developing a windows service applicaiton in which I open a file which resides in another computer and do further handling. what I am doing now is map that network directory to a local logical driver, then call fopen function to open it, just like it were a local file, but I just can not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.