Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Top-level windows Pin
Arman S.26-May-07 1:36
Arman S.26-May-07 1:36 
QuestionSet DC Font Pin
Perspx25-May-07 11:05
Perspx25-May-07 11:05 
AnswerRe: Set DC Font Pin
Mark Salsbery25-May-07 12:03
Mark Salsbery25-May-07 12:03 
QuestionProject Settings Pin
tom groezer25-May-07 10:19
tom groezer25-May-07 10:19 
QuestionRe: Project Settings Pin
CPallini25-May-07 10:21
mveCPallini25-May-07 10:21 
AnswerRe: Project Settings Pin
tom groezer27-May-07 22:17
tom groezer27-May-07 22:17 
QuestionDLL Pin
tom groezer25-May-07 9:59
tom groezer25-May-07 9:59 
AnswerRe: DLL Pin
Mark Salsbery25-May-07 10:45
Mark Salsbery25-May-07 10:45 
There's a variety of problems with mixing MFC DLLs.

First, all the DLLs your app uses and all the DLLs the DLLs your app uses are mapped into
the apps address space.

Now say one DLL uses the debug MFC DLL and your app uses the redistributable MFC DLL...

Now there's multiple versions of MFC, one DLL being used by your app, one by the DLL.

The two MFC dlls are probably using different versions of the CRT library.
That means the two MFC DLLs are using different runtime heaps. That can be a problem if you start
passing heap-allocated pointers between your app and dll.

MFC also uses internal static/global variables for caching and mapping handles to objects.
With two MFC DLLs you have two sets of these. If you are using a DLL from your app which uses
a different MFC DLL than your app, then any MFC-related interaction between your app and your
dll is going to be unstable/unreliable at best.

Just my thoughts,
Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

AnswerRe: DLL Pin
JudyL_MD25-May-07 10:50
JudyL_MD25-May-07 10:50 
Questionruntime vector creating Pin
g3RC4n25-May-07 6:51
g3RC4n25-May-07 6:51 
QuestionRe: runtime vector creating Pin
David Crow25-May-07 7:25
David Crow25-May-07 7:25 
AnswerRe: runtime vector creating Pin
Mark Salsbery25-May-07 7:35
Mark Salsbery25-May-07 7:35 
AnswerRe: runtime vector creating Pin
CPallini25-May-07 10:20
mveCPallini25-May-07 10:20 
AnswerRe: runtime vector creating Pin
John R. Shaw25-May-07 14:34
John R. Shaw25-May-07 14:34 
QuestionCToolTipCtrl Problem Pin
somasundaram_be25-May-07 6:32
somasundaram_be25-May-07 6:32 
QuestionRe: CToolTipCtrl Problem Pin
David Crow25-May-07 7:29
David Crow25-May-07 7:29 
AnswerRe: CToolTipCtrl Problem Pin
somasundaram_be25-May-07 18:44
somasundaram_be25-May-07 18:44 
QuestionRe: CToolTipCtrl Problem Pin
David Crow27-May-07 16:52
David Crow27-May-07 16:52 
AnswerRe: CToolTipCtrl Problem Pin
S Douglas26-May-07 21:58
professionalS Douglas26-May-07 21:58 
QuestionPrivate member. Pin
shiraztk25-May-07 5:20
shiraztk25-May-07 5:20 
AnswerRe: Private member. Pin
Mark Salsbery25-May-07 5:25
Mark Salsbery25-May-07 5:25 
GeneralRe: Private member. Pin
shiraztk25-May-07 5:34
shiraztk25-May-07 5:34 
GeneralRe: Private member. Pin
Mark Salsbery25-May-07 5:42
Mark Salsbery25-May-07 5:42 
AnswerRe: Private member. Pin
CPallini25-May-07 5:33
mveCPallini25-May-07 5:33 
AnswerRe: Private member. Pin
Manoj Kumar Rai25-May-07 5:46
professionalManoj Kumar Rai25-May-07 5:46 

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.