Click here to Skip to main content
15,889,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCTabCtrl and Ctrl + Tab Pin
10-Jun-01 23:05
suss10-Jun-01 23:05 
GeneralRe: CTabCtrl and Ctrl + Tab Pin
11-Jun-01 1:55
suss11-Jun-01 1:55 
GeneralPointer problems in MFC Extention DLL Pin
D.D. de Kerf10-Jun-01 23:02
D.D. de Kerf10-Jun-01 23:02 
GeneralRe: Pointer problems in MFC Extention DLL Pin
Tomasz Sowinski11-Jun-01 0:08
Tomasz Sowinski11-Jun-01 0:08 
GeneralRe: Pointer problems in MFC Extention DLL Pin
D.D. de Kerf11-Jun-01 0:18
D.D. de Kerf11-Jun-01 0:18 
GeneralRe: Pointer problems in MFC Extention DLL Pin
Tomasz Sowinski11-Jun-01 2:08
Tomasz Sowinski11-Jun-01 2:08 
GeneralRe: Pointer problems in MFC Extention DLL Pin
D.D. de Kerf11-Jun-01 2:31
D.D. de Kerf11-Jun-01 2:31 
GeneralRe: Pointer problems in MFC Extention DLL Pin
Tomasz Sowinski11-Jun-01 2:48
Tomasz Sowinski11-Jun-01 2:48 
> If I use MFC in a static DLL, then what is the correct
> way to handle input-ouput string characters?

There's no such thing as static DLL - 'D' in DLL means dynamic.

If you use static lib version of MFC, your .dll and .exe will have two different heaps. Memory allocated in .exe can't be freed in .dll and vice versa. Using CString::operator= may cause heap operations, and this is going to crash when MFC isn't shared. So the declaration for EatString should look more or less like this:

int EatString(char *szOutput, int cbOutput, const char *szInput);

You can return number of characters in szOutput after completing the operation. Or the error code, or whatever.

Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralTemplates and 'new' Pin
Anders Molin10-Jun-01 22:30
professionalAnders Molin10-Jun-01 22:30 
GeneralRe: Templates and 'new' Pin
Ulf Öhlén10-Jun-01 22:53
Ulf Öhlén10-Jun-01 22:53 
GeneralRe: Templates and 'new' Pin
Anders Molin10-Jun-01 23:05
professionalAnders Molin10-Jun-01 23:05 
GeneralRe: Templates and 'new' Pin
Tomasz Sowinski11-Jun-01 3:11
Tomasz Sowinski11-Jun-01 3:11 
QuestionCan I have my computer automatically retrieve the news for me? Pin
10-Jun-01 22:15
suss10-Jun-01 22:15 
AnswerRe: Can I have my computer automatically retrieve the news for me? Pin
Anders Molin10-Jun-01 22:39
professionalAnders Molin10-Jun-01 22:39 
GeneralDirectshow : connect filters Pin
10-Jun-01 21:56
suss10-Jun-01 21:56 
GeneralRe: Directshow : connect filters Pin
LOXmith12-Jun-01 1:14
LOXmith12-Jun-01 1:14 
GeneralCDialogBar Pin
10-Jun-01 21:48
suss10-Jun-01 21:48 
QuestionHow to print in text mode Pin
anojkumar10-Jun-01 20:53
anojkumar10-Jun-01 20:53 
AnswerRe: How to print in text mode Pin
Hadi Rezaee10-Jun-01 21:05
Hadi Rezaee10-Jun-01 21:05 
GeneralRe: How to print in text mode Pin
anojkumar11-Jun-01 4:13
anojkumar11-Jun-01 4:13 
AnswerRe: How to print in text mode Pin
Christian Graus10-Jun-01 22:19
protectorChristian Graus10-Jun-01 22:19 
GeneralActiveX and runtime adding Pin
10-Jun-01 20:35
suss10-Jun-01 20:35 
GeneralMapping Keyboard on Windows Pin
budi10-Jun-01 20:32
budi10-Jun-01 20:32 
GeneralDisconnected Recordset Opening and Closing problem. Pin
yamini10-Jun-01 18:51
yamini10-Jun-01 18:51 
GeneralCFrameWnd Pin
Drake Elsari10-Jun-01 18:14
Drake Elsari10-Jun-01 18:14 

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.