Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with VirtualProtectEx() Pin
Blake Miller22-Dec-05 5:37
Blake Miller22-Dec-05 5:37 
GeneralRe: Help with VirtualProtectEx() Pin
simkincoder22-Dec-05 16:10
simkincoder22-Dec-05 16:10 
GeneralRe: Help with VirtualProtectEx() Pin
Blake Miller23-Dec-05 5:17
Blake Miller23-Dec-05 5:17 
QuestionI need help on a VC++ 2005 express problem! Pin
Mr.Indestructible22-Dec-05 3:26
Mr.Indestructible22-Dec-05 3:26 
AnswerRe: I need help on a VC++ 2005 express problem! Pin
Klerik8222-Dec-05 8:17
Klerik8222-Dec-05 8:17 
GeneralRe: I need help on a VC++ 2005 express problem! Pin
Mr.Indestructible1-Jan-06 5:32
Mr.Indestructible1-Jan-06 5:32 
QuestionDialog in a DLL Pin
Ger Hayden22-Dec-05 2:45
Ger Hayden22-Dec-05 2:45 
AnswerRe: Dialog in a DLL Pin
Miles Davies22-Dec-05 3:08
Miles Davies22-Dec-05 3:08 
more complicated than you may think.

If you are using a MFC extension DLL then you will need to link the resources of your DLL into the clients resource chain.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_MFCNOTES_TN033.asp[^]

If you are using a bog standard DLL you need to switch the context to that of the DLL using a call to
AFX_MANAGE_STATE(AfxGetStaticModuleState());

before constructing the dialog class. I do this by having a manager class do all the dialog construction/domodal e.t.c. from within the DLL so I can make the manage state call.

This will lead to all sorts of other issues if your dialog is modeless though.


Not the view of my employer
QuestionWrinting as xml Pin
FarPointer22-Dec-05 1:55
FarPointer22-Dec-05 1:55 
AnswerRe: Writing xml Pin
Sebastian Schneider22-Dec-05 2:18
Sebastian Schneider22-Dec-05 2:18 
AnswerRe: Wrinting as xml Pin
ThatsAlok22-Dec-05 2:20
ThatsAlok22-Dec-05 2:20 
QuestionLinker problem Pin
ThatsAlok22-Dec-05 1:44
ThatsAlok22-Dec-05 1:44 
AnswerRe: Linker problem Pin
toxcct22-Dec-05 2:18
toxcct22-Dec-05 2:18 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 2:22
ThatsAlok22-Dec-05 2:22 
GeneralRe: Linker problem Pin
David Crow22-Dec-05 2:38
David Crow22-Dec-05 2:38 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 2:40
ThatsAlok22-Dec-05 2:40 
GeneralRe: Linker problem Pin
toxcct22-Dec-05 2:40
toxcct22-Dec-05 2:40 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 2:42
ThatsAlok22-Dec-05 2:42 
GeneralRe: Linker problem Pin
Cedric Moonen22-Dec-05 2:54
Cedric Moonen22-Dec-05 2:54 
AnswerRe: Linker problem Pin
Cedric Moonen22-Dec-05 3:00
Cedric Moonen22-Dec-05 3:00 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 18:59
ThatsAlok22-Dec-05 18:59 
AnswerRe: Linker problem Pin
Eytukan22-Dec-05 3:19
Eytukan22-Dec-05 3:19 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 19:37
ThatsAlok22-Dec-05 19:37 
GeneralRe: Linker problem Pin
ThatsAlok22-Dec-05 21:39
ThatsAlok22-Dec-05 21:39 
AnswerRe: Linker problem Pin
S. Senthil Kumar22-Dec-05 3:48
S. Senthil Kumar22-Dec-05 3:48 

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.