Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Scrolling in a CDialog Pin
Tomasz Sowinski11-Jun-01 3:21
Tomasz Sowinski11-Jun-01 3:21 
GeneralRe: Scrolling in a CDialog Pin
Derek Lakin11-Jun-01 5:04
Derek Lakin11-Jun-01 5:04 
GeneralRe: Scrolling in a CDialog Pin
Tomasz Sowinski11-Jun-01 5:29
Tomasz Sowinski11-Jun-01 5:29 
GeneralRe: Scrolling in a CDialog Pin
Derek Lakin11-Jun-01 5:37
Derek Lakin11-Jun-01 5:37 
GeneralRe: Scrolling in a CDialog Pin
11-Jun-01 8:22
suss11-Jun-01 8:22 
GeneralRe: Scrolling in a CDialog Pin
Stan Shannon11-Jun-01 9:28
Stan Shannon11-Jun-01 9:28 
GeneralRe: Scrolling in a CDialog Pin
Derek Lakin11-Jun-01 9:47
Derek Lakin11-Jun-01 9:47 
GeneralUpdating Scrollbar in editbox .... Pin
Hadi Rezaee11-Jun-01 1:00
Hadi Rezaee11-Jun-01 1:00 
GeneralRe: Updating Scrollbar in editbox .... Pin
11-Jun-01 1:48
suss11-Jun-01 1:48 
GeneralRe: Updating Scrollbar in editbox .... Pin
Hadi Rezaee11-Jun-01 6:59
Hadi Rezaee11-Jun-01 6:59 
GeneralRe: Updating Scrollbar in editbox .... Pin
Ulf Öhlén11-Jun-01 2:20
Ulf Öhlén11-Jun-01 2:20 
GeneralSlide Show Pin
Adeel Shamsi11-Jun-01 0:45
Adeel Shamsi11-Jun-01 0:45 
GeneralRe: Slide Show Pin
11-Jun-01 1:50
suss11-Jun-01 1:50 
GeneralRe: Slide Show Pin
Mukkie11-Jun-01 7:40
Mukkie11-Jun-01 7:40 
GeneralRich Edit Control problems in Windows 2000 Pin
Andrew Sage10-Jun-01 23:43
Andrew Sage10-Jun-01 23:43 
GeneralSP + Processor Pack Release Pin
10-Jun-01 23:17
suss10-Jun-01 23:17 
GeneralRe: SP + Processor Pack Release Pin
Mukkie11-Jun-01 7:52
Mukkie11-Jun-01 7:52 
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

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.