I have implemented a dialog box from a resource file using DialogParam(...) in main program. The dialog box has several edit boxes...one that is large (1024 chars) for inputing notes. The values entred in the dialog box are killing other values in my code...causeing program to fail Is there a way to stop this by setting memory for dialog Thanks Skin
Posted on 2000-11-17 23:11:00 by skin
Well, don't allocate the memory from .data or .datea? section. You should allocate memory from the heap, using GlobalAlloc or HeapCreate/HeapAlloc instead. That way, you can adjust the size of the memory block dynamically. A possible alternative is to check the size of the file before reading the data into the buffer.
Posted on 2000-11-19 23:55:00 by Iczelion