Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Line drawing in MFC Pin
bob169728-Sep-07 13:31
bob169728-Sep-07 13:31 
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 
Hi,

I am trying to develop a DLL which can be used in couple scenarios:

1. Loaded by a console based C++ application, with minimal Win32 code (just to load DLLs)
2. Loaded by a Windows service. This is essentially the C++ Console application converted to a service.

The issue is that I want to handle Windows Messages WM_ based. First of all I do not know whether Message Loops are possible in DLLs. In my mind there are two options:

1. Use SetWindowsHookEx - did not work - possible because the console application itself is not a windows application so does not have a message queue - not sure if my reasoning is correct.

2. Create a window in a separate thread and it may receive messages - but does it work.

So, the fundamental issues are that first I do not know that if this is even possible and second if yes, then how?

if someone can post me some code - better still point me to some authoritative source - it would be great.

Thanks for reading.
AnswerRe: Message Loop in DLL Pin
Mark Salsbery8-Sep-07 11:17
Mark Salsbery8-Sep-07 11:17 
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 

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.