Click here to Skip to main content
15,914,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Line drawing in MFC Pin
DGit9-Sep-07 8:59
DGit9-Sep-07 8:59 
QuestionGet User Picture Pin
Perspx8-Sep-07 12:12
Perspx8-Sep-07 12:12 
AnswerRe: Get User Picture Pin
Mark Salsbery8-Sep-07 12:28
Mark Salsbery8-Sep-07 12:28 
Questionstrtok problem Pin
gizmokaka8-Sep-07 10:41
gizmokaka8-Sep-07 10:41 
AnswerRe: strtok problem Pin
Michael Dunn8-Sep-07 11:16
sitebuilderMichael Dunn8-Sep-07 11:16 
AnswerRe: strtok problem Pin
Robert Surtees8-Sep-07 11:38
Robert Surtees8-Sep-07 11:38 
QuestionMessage Loop in DLL Pin
vaibhav khattri8-Sep-07 10:26
vaibhav khattri8-Sep-07 10:26 
AnswerRe: Message Loop in DLL Pin
Mark Salsbery8-Sep-07 11:17
Mark Salsbery8-Sep-07 11:17 
You don't need to have a window, but your message loop does need to run.

You can add an exported entry point to the DLL that when called, starts a thread
that runs a message loop.  Note that any windows you want to create that use this message
loop to get their messages must be created on this same thread.

If you create a Win32 GUI application with the app wizard and examine the _tWinMain()
function, your thread proc in the DLL would be very similar - register any window class you
initially need, create any initial window you need, and finally, loop translating and dispatching
messages until some termination event occurs.

Mark


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionVisual C++.net 2003 missing project property pages Pin
markdesmarais20078-Sep-07 9:33
markdesmarais20078-Sep-07 9:33 
QuestionLPSTR_TEXTCALLBACK Pin
paper678-Sep-07 7:03
paper678-Sep-07 7:03 
AnswerRe: LPSTR_TEXTCALLBACK Pin
Mark Salsbery8-Sep-07 8:32
Mark Salsbery8-Sep-07 8:32 
AnswerRe: LPSTR_TEXTCALLBACK Pin
Michael Dunn8-Sep-07 8:40
sitebuilderMichael Dunn8-Sep-07 8:40 
QuestionSOLVED: Problem with events MFC [modified] Pin
progDes8-Sep-07 6:32
progDes8-Sep-07 6:32 
AnswerRe: Problem with events MFC Pin
Mark Salsbery8-Sep-07 7:31
Mark Salsbery8-Sep-07 7:31 
GeneralRe: Problem with events MFC Pin
progDes8-Sep-07 7:38
progDes8-Sep-07 7:38 
QuestionRe: Problem with events MFC Pin
Mark Salsbery8-Sep-07 8:31
Mark Salsbery8-Sep-07 8:31 
AnswerRe: Problem with events MFC Pin
progDes8-Sep-07 8:40
progDes8-Sep-07 8:40 
GeneralRe: Problem with events MFC Pin
Mark Salsbery8-Sep-07 11:52
Mark Salsbery8-Sep-07 11:52 
AnswerRe: Problem with events MFC Pin
progDes8-Sep-07 19:01
progDes8-Sep-07 19:01 
Questionis there size limit to display an image with GDI+? Pin
King Tran8-Sep-07 5:37
King Tran8-Sep-07 5:37 
AnswerRe: is there size limit to display an image with GDI+? Pin
bob169728-Sep-07 7:12
bob169728-Sep-07 7:12 
QuestionRe: is there size limit to display an image with GDI+? Pin
bob169728-Sep-07 9:25
bob169728-Sep-07 9:25 
AnswerRe: is there size limit to display an image with GDI+? Pin
Teashirt28-Sep-07 13:05
Teashirt28-Sep-07 13:05 
GeneralRe: is there size limit to display an image with GDI+? Pin
King Tran13-Sep-07 18:55
King Tran13-Sep-07 18:55 
Questionquestion with the OpenGL loading texture? Pin
King Tran8-Sep-07 4:58
King Tran8-Sep-07 4:58 

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.