Machine language
Type: Posts; User: bdiamond
Machine language
Or
char lbText[4];
sprintf(lbText,"%d",index);
yes, that works, but it causes memory leaks when closing the app. I was so stupid!! All I had to do was call my CMainFrame's OnClose() function. Thanks for your help, though!!
Does anyone know how to close an application programmatically (kinda like AfxAbort() but without the ugly error message)?
I had already tried that before I posted this thread. The 'OnClose()' function is never called. When I put it in my 'OnDestroy', it stops there, but it's too late and the app closes anyway.
What message can I intercept to stop a CFormView from closing? I've tried WM_DESTROY and WM_CLOSE, but neither one work.
I've been messing around with game programming and gotten some very good books (on DirectX). I would like to hear some opinions on what some of you guys think is better for developing games, directx...