Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reset EOF Pin
12-Jun-01 2:49
suss12-Jun-01 2:49 
GeneralRe: Reset EOF Pin
markkuk12-Jun-01 21:19
markkuk12-Jun-01 21:19 
GeneralScrolling in a CDialog Pin
Derek Lakin11-Jun-01 3:10
Derek Lakin11-Jun-01 3:10 
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 
I made myself a MFC Extention DLL and I seem to be having a couple of pointer problems, event though I don't know what it is exactly. Perhaps you've got an idea...

The situation is as follows....

In-dll functions:
CString Trim(CString sInput);
CString EatString(CString * pInput1, CString sInput2);
CMyOwnObject()::CMyOwnObject(CString sInput); // constructor

Now, this is what happens when I call the in-dll functions from outside the dll:
CString s = Trim(" my string "); // this works fine!
CString s2 = EatString(&s, " "); // this gives a crash inside EatString at the point where I try to set the value of s (like this: *s = "new string");


CMyOwnObject * pNew = new CMyOwnObject("new"); // This gives a crash at the point where the constructor ends... for SOME reason it goes into the desctructor of CString (probably for "new") and there it crashes on FreeData() )

I don't want to completely rewrite all my code to BSTR's and so for the moment. Is there another way to fix this? (Trim works just fine!)


Structured programming vs. chaotic mind boggling
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 

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.