I need to pass an array from a DLL to a static lib function in order to be filled (the DLL links against the static lib). Neither lib supports MFC.
int* intArray=new int(3);
CallStaticAPI(intArray);//the API will just put 3 ints in the array
//do some processing with the array
When I try to delete the array, the program crashes. I looked in dbgheap.c and the message I get is :"If this ASSERT fails, a bad pointer has been passed in. It may be totally bogus, or it may have been allocated from another heap. The pointer MUST come from the 'local' heap".
The pointer is definitelly good because I can read from it.
I am developing a application " pseudo event generation " and i am facing problem in generating event message(desciption). I am using a resouce DLL for it. but i am not able to map the messages for eventID and Category.
Like if eventId is 100 and category is NONE then mesage will be different when eventId is 100 and category is Disk/printer/services etc.
I have created a control type variable for an edit box.My requirement is if I enter anything other than a number , it should display a message.Is there any function available to check whether the entered data is a number or not?(As per my requirement the variable should be only control type but not an integer or double type)
I have design the menu bar for dialog based application.
When compiling there is no error.But it is not displaying in the run time.
What to do if i want to display menu bar at run time in dailog box