Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy an ID in CreateThread()? Pin
20-Jun-02 4:38
suss20-Jun-02 4:38 
AnswerRe: Why an ID in CreateThread()? Pin
redeemer20-Jun-02 4:51
redeemer20-Jun-02 4:51 
GeneralRe: Why an ID in CreateThread()? Pin
20-Jun-02 5:25
suss20-Jun-02 5:25 
AnswerRe: Why an ID in CreateThread()? Pin
20-Jun-02 6:55
suss20-Jun-02 6:55 
AnswerRe: Why an ID in CreateThread()? Pin
Joaquín M López Muñoz20-Jun-02 6:57
Joaquín M López Muñoz20-Jun-02 6:57 
GeneralRe: Why an ID in CreateThread()? Pin
moliate20-Jun-02 20:58
moliate20-Jun-02 20:58 
AnswerRe: Why an ID in CreateThread()? Pin
moliate20-Jun-02 20:42
moliate20-Jun-02 20:42 
GeneralProblem with loading resources at runtime Pin
Dean Goodman20-Jun-02 4:29
Dean Goodman20-Jun-02 4:29 

I always seem to have the strangest problems with visual studio... Smile | :)



I have been working on a project that up until yesterday compiled and ran fine. Now, the debug version asserts on calls that load a resource, such as a menu or child dialog. In fact the program asserts when just trying to get the handle for the system icon of the main dialog box!
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); //assertion


The assertion is always in AfxGetResourceHandle() which makes me believe that somehow Visual Studio has lost the "connection" between my user created dialogs, menus, etc. and the code that eventually loads them.



As I said before, nothing has changed in my project except that I have added a couple of new dialogs. I actually had this problem with one of the new dialogs yesterday too, but I was able to remove it from the project and put it back in and it worked fine -- it wasn't too much work since I had just added it. Obviously that isn't an option for the main dialog of my project...



Has anyone had a similar problem, and if so, how did you fix it?




TIA,


--Dean
GeneralRe: Problem with loading resources at runtime Pin
Navin20-Jun-02 4:33
Navin20-Jun-02 4:33 
GeneralRe: Problem with loading resources at runtime Pin
Dean Goodman20-Jun-02 4:44
Dean Goodman20-Jun-02 4:44 
GeneralRe: Problem with loading resources at runtime Pin
-Dy21-Jun-02 4:10
-Dy21-Jun-02 4:10 
GeneralRe: Problem with loading resources at runtime Pin
Atlantys21-Jun-02 12:48
Atlantys21-Jun-02 12:48 
GeneralOutlook Add-in Pin
20-Jun-02 4:16
suss20-Jun-02 4:16 
QuestionHow do i get the vertical and horizontal resolution of the screen? Pin
redeemer20-Jun-02 4:03
redeemer20-Jun-02 4:03 
AnswerRe: How do i get the vertical and horizontal resolution of the screen? Pin
Chris Losinger20-Jun-02 4:19
professionalChris Losinger20-Jun-02 4:19 
AnswerRe: How do i get the vertical and horizontal resolution of the screen? Pin
Niklas L20-Jun-02 4:19
Niklas L20-Jun-02 4:19 
GeneralRe: How do i get the vertical and horizontal resolution of the screen? Pin
Marc Richarme20-Jun-02 6:07
Marc Richarme20-Jun-02 6:07 
GeneralAny way to intercept WM_SIZING with SDI/MDI application Pin
aldeba20-Jun-02 2:59
aldeba20-Jun-02 2:59 
GeneralRe: Any way to intercept WM_SIZING with SDI/MDI application Pin
Christian Graus20-Jun-02 3:06
protectorChristian Graus20-Jun-02 3:06 
GeneralRe: Any way to intercept WM_SIZING with SDI/MDI application Pin
S.Maharajan20-Jun-02 3:26
S.Maharajan20-Jun-02 3:26 
GeneralMain Window handle Pin
vikramlinux20-Jun-02 2:48
vikramlinux20-Jun-02 2:48 
Generalapplication window handle. Pin
vikramlinux20-Jun-02 2:47
vikramlinux20-Jun-02 2:47 
GeneralAny documentation on how VC++ treats JPEG Pin
Sutanu20-Jun-02 1:42
Sutanu20-Jun-02 1:42 
GeneralRe: Any documentation on how VC++ treats JPEG Pin
Chris Losinger20-Jun-02 2:33
professionalChris Losinger20-Jun-02 2:33 
Questionwhy II can't use ActiveMoview (ocx) for playing mp3? Pin
white jungle20-Jun-02 1:30
white jungle20-Jun-02 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.