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

C / C++ / MFC

 
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 
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 
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 

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.