Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Mark Salsbery4-Oct-07 5:40
Mark Salsbery4-Oct-07 5:40 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Leslie Sanford4-Oct-07 6:25
Leslie Sanford4-Oct-07 6:25 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Mark Salsbery4-Oct-07 6:43
Mark Salsbery4-Oct-07 6:43 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Leslie Sanford4-Oct-07 6:56
Leslie Sanford4-Oct-07 6:56 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Mark Salsbery4-Oct-07 7:11
Mark Salsbery4-Oct-07 7:11 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Leslie Sanford4-Oct-07 7:48
Leslie Sanford4-Oct-07 7:48 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Mark Salsbery4-Oct-07 7:54
Mark Salsbery4-Oct-07 7:54 
GeneralRe: Linking to MFC in a non-MFC dll Pin
Mark Salsbery4-Oct-07 6:48
Mark Salsbery4-Oct-07 6:48 
Leslie Sanford wrote:
They can be either. I have no way of knowing beforehand if a host is MFC based

In that case, an extension DLL is out.  That leaves a regular DLL linked
to MFC as the only option.

Passing any MFC object across the exe/dll boundary cannot be done
(it wouldn't make sense anyway, since the host may not be using MFC).

That means message routing is going to be your problem.  There will
be no message pump in the DLL.  The DLL will need to create its own
UI thread, since you can't count on the host to pump messages to the DLL.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionJump from one Dialog to other in a Dialog MFC application Pin
TomWizard3-Oct-07 7:59
TomWizard3-Oct-07 7:59 
AnswerRe: Jump from one Dialog to other in a Dialog MFC application Pin
Maximilien3-Oct-07 9:13
Maximilien3-Oct-07 9:13 
Questiontokenizer help Pin
dellthinker3-Oct-07 7:14
dellthinker3-Oct-07 7:14 
AnswerRe: tokenizer help Pin
Nemanja Trifunovic3-Oct-07 7:44
Nemanja Trifunovic3-Oct-07 7:44 
GeneralRe: tokenizer help Pin
dellthinker3-Oct-07 9:37
dellthinker3-Oct-07 9:37 
AnswerRe: tokenizer help Pin
Stephen Hewitt3-Oct-07 14:23
Stephen Hewitt3-Oct-07 14:23 
AnswerRe: tokenizer help Pin
DQNOK4-Oct-07 4:30
professionalDQNOK4-Oct-07 4:30 
GeneralRe: tokenizer help Pin
dellthinker4-Oct-07 8:27
dellthinker4-Oct-07 8:27 
QuestionSidebar like Vista sidebar for all os Windows 2000, XP , 2003 Pin
Sudhir Mangla3-Oct-07 5:18
professionalSudhir Mangla3-Oct-07 5:18 
QuestionCorba - Trail Version/Freeware for VS 2005 C++ Pin
Andy2023-Oct-07 3:23
Andy2023-Oct-07 3:23 
QuestionWhere my object are stored Pin
manustone3-Oct-07 3:10
manustone3-Oct-07 3:10 
AnswerRe: Where my object are stored Pin
Iain Clarke, Warrior Programmer3-Oct-07 4:37
Iain Clarke, Warrior Programmer3-Oct-07 4:37 
GeneralRe: Where my object are stored Pin
manustone3-Oct-07 6:43
manustone3-Oct-07 6:43 
AnswerRe: Where my object are stored Pin
jhwurmbach3-Oct-07 22:51
jhwurmbach3-Oct-07 22:51 
QuestionDS_CONTROL vs WS_EX_CONTROLPARENT Pin
Nishad S3-Oct-07 2:57
Nishad S3-Oct-07 2:57 
AnswerRe: DS_CONTROL vs WS_EX_CONTROLPARENT Pin
Iain Clarke, Warrior Programmer3-Oct-07 4:42
Iain Clarke, Warrior Programmer3-Oct-07 4:42 
GeneralRe: DS_CONTROL vs WS_EX_CONTROLPARENT Pin
Nishad S3-Oct-07 18:38
Nishad S3-Oct-07 18:38 

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.