Click here to Skip to main content
16,016,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MoveWindow() causing crash on closing maximized child window with listbox Pin
Sharath C V13-Jul-09 18:22
professionalSharath C V13-Jul-09 18:22 
AnswerRe: MoveWindow() causing crash on closing maximized child window with listbox Pin
«_Superman_»13-Jul-09 18:31
professional«_Superman_»13-Jul-09 18:31 
GeneralRe: MoveWindow() causing crash on closing maximized child window with listbox Pin
Sharath C V13-Jul-09 18:44
professionalSharath C V13-Jul-09 18:44 
AnswerRe: MoveWindow() causing crash on closing maximized child window with listbox Pin
Sharath C V13-Jul-09 20:24
professionalSharath C V13-Jul-09 20:24 
QuestionImprove the program Pin
CSawant13-Jul-09 5:53
CSawant13-Jul-09 5:53 
QuestionRe: Improve the program Pin
David Crow13-Jul-09 6:15
David Crow13-Jul-09 6:15 
AnswerI will not do what you ask. Pin
Maximilien13-Jul-09 6:19
Maximilien13-Jul-09 6:19 
QuestionOpenGL window creation within a DLL - Possible threading problem Pin
Dustin Henry13-Jul-09 4:44
Dustin Henry13-Jul-09 4:44 
Okay first, I have an executable the loads several DLLs. One of these DLLs needs to create a window and set an openGL context. A second DLL, which gets placed in its own thread executes functions on the first DLL. The initial problem I had was that the window was being created upon loading of the first DLL, and when the second DLL called functions on it from it's own thread, the openGL context would not be valid. I fixed this by making sure the window was created by the second DLLs worker thread that calls all of its functions.

So now, I can verify that all of my openGL calls are not failing, the problem though is that nothing is happening in the window itself. Right after the window is created it appears to hang. The cursor changes over it and it is no longer selectable. I can verify that the windows message proc is being called correctly and it does get to WM_CREATE. I can also verify that the program itself is not hanging as the calls are still being made.

The only thing I can think of as the problem is that when the window is created it is launching it's own additional thread, and I am subsequently trying to make my GL calls within the wrong thread. First, does this sound like the problem, and if it is, is there a way to make the window launch within the same thread that created it? I have made sure that the HINSTANCE that is passed into CreateWindowEx is that of the DLL.

I hope this makes sense as it is a little long winded. Any help is appreciated.

Thanks,
Dustin
QuestionHow to create and maintain HTML file? Pin
fujoey13-Jul-09 4:35
fujoey13-Jul-09 4:35 
AnswerRe: How to create and maintain HTML file? Pin
khb13-Jul-09 4:44
khb13-Jul-09 4:44 
QuestionBest way to convert text to a picture Pin
1scouser13-Jul-09 4:19
1scouser13-Jul-09 4:19 
AnswerRe: Best way to convert text to a picture Pin
Maximilien13-Jul-09 4:27
Maximilien13-Jul-09 4:27 
GeneralRe: Best way to convert text to a picture Pin
1scouser13-Jul-09 4:36
1scouser13-Jul-09 4:36 
GeneralRe: Best way to convert text to a picture Pin
Cedric Moonen13-Jul-09 4:48
Cedric Moonen13-Jul-09 4:48 
GeneralRe: Best way to convert text to a picture Pin
1scouser13-Jul-09 5:15
1scouser13-Jul-09 5:15 
GeneralRe: Best way to convert text to a picture Pin
Caslen13-Jul-09 6:22
Caslen13-Jul-09 6:22 
GeneralRe: Best way to convert text to a picture Pin
Rozis13-Jul-09 11:17
Rozis13-Jul-09 11:17 
QuestionChar * delete assertion failed Pin
Ash_VCPP13-Jul-09 3:52
Ash_VCPP13-Jul-09 3:52 
AnswerRe: Char * delete assertion failed Pin
«_Superman_»13-Jul-09 3:58
professional«_Superman_»13-Jul-09 3:58 
GeneralRe: Char * delete assertion failed Pin
Ash_VCPP13-Jul-09 4:04
Ash_VCPP13-Jul-09 4:04 
GeneralRe: Char * delete assertion failed Pin
«_Superman_»13-Jul-09 4:07
professional«_Superman_»13-Jul-09 4:07 
GeneralRe: Char * delete assertion failed Pin
David Crow13-Jul-09 4:37
David Crow13-Jul-09 4:37 
AnswerRe: Char * delete assertion failed Pin
Stuart Dootson13-Jul-09 6:47
professionalStuart Dootson13-Jul-09 6:47 
QuestionC++ program to print the path without the file name! Pin
ksaw12313-Jul-09 3:02
ksaw12313-Jul-09 3:02 
AnswerRe: C++ program to print the path without the file name! Pin
chandu00413-Jul-09 3:14
chandu00413-Jul-09 3:14 

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.