Click here to Skip to main content
15,888,454 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: fopen problem in ATL Pin
Jörgen Sigvardsson11-Sep-06 15:06
Jörgen Sigvardsson11-Sep-06 15:06 
GeneralRe: fopen problem in ATL Pin
_tasleem12-Sep-06 3:02
_tasleem12-Sep-06 3:02 
AnswerRe: fopen problem in ATL Pin
Stuart Dootson11-Sep-06 8:30
professionalStuart Dootson11-Sep-06 8:30 
GeneralRe: fopen problem in ATL Pin
_tasleem12-Sep-06 23:58
_tasleem12-Sep-06 23:58 
QuestionAllow placement on my control in design-time Pin
Tilir7-Sep-06 20:08
Tilir7-Sep-06 20:08 
QuestionProblem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
x-b7-Sep-06 0:41
x-b7-Sep-06 0:41 
AnswerRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
Michael Dunn9-Sep-06 17:31
sitebuilderMichael Dunn9-Sep-06 17:31 
GeneralRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
x-b10-Sep-06 22:34
x-b10-Sep-06 22:34 
Hi Mike

Thanks a lot for your input, I'm glad for any opinion, though (hopefully not beeing a nitpicker) this here is actually a different problem (or isn't it?)

I totally agree that the "pass object between DLLs" is serious topic on itselfs and has to be managed carefully when it comes to allocation/deallocation.
Actually I think we manage it correctly here (linking all to the CRT-DLLs).

Let me put it this way: I'm quite sure we use the same allocs/deallocs, but because the CString internal logic uses a pointer to something that exists per DLL, passing a CString between the DLLs will cause the logic to fail and to deallocate where a deallocation is not appropriate.
To make things worser, this only applies for empty strings, as soon as the string points to heap allocated memory, the logic works fine.

So I came to the conclusion, seeing a CString& in a DLL interface is a problem.

It seems MFC has the same problem, using MFC-extension DLLs to manage it (http://www.sources.ru/cpp/mfc/t4650.htm[^])

Xaver Birrer
Visual C++ MCSD
GeneralRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
Michael Dunn11-Sep-06 7:28
sitebuilderMichael Dunn11-Sep-06 7:28 
QuestionSTL List - object creation / destruction wierdness Pin
neilsolent6-Sep-06 21:39
neilsolent6-Sep-06 21:39 
AnswerRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson7-Sep-06 9:05
professionalStuart Dootson7-Sep-06 9:05 
AnswerRe: STL List - object creation / destruction wierdness Pin
Zac Howland7-Sep-06 9:23
Zac Howland7-Sep-06 9:23 
GeneralRe: STL List - object creation / destruction wierdness Pin
neilsolent7-Sep-06 9:49
neilsolent7-Sep-06 9:49 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland7-Sep-06 11:03
Zac Howland7-Sep-06 11:03 
GeneralRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson8-Sep-06 3:01
professionalStuart Dootson8-Sep-06 3:01 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland8-Sep-06 3:57
Zac Howland8-Sep-06 3:57 
GeneralRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson8-Sep-06 5:48
professionalStuart Dootson8-Sep-06 5:48 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland8-Sep-06 6:06
Zac Howland8-Sep-06 6:06 
QuestionRelease build seg faults at vector push_back Pin
rana745-Sep-06 6:38
rana745-Sep-06 6:38 
AnswerRe: Release build seg faults at vector push_back Pin
led mike5-Sep-06 6:55
led mike5-Sep-06 6:55 
AnswerRe: Release build seg faults at vector push_back Pin
valikac5-Sep-06 8:12
valikac5-Sep-06 8:12 
AnswerRe: Release build seg faults at vector push_back Pin
Zac Howland7-Sep-06 9:27
Zac Howland7-Sep-06 9:27 
QuestionIs it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
peysock5-Sep-06 6:35
peysock5-Sep-06 6:35 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Kevin McFarlane6-Sep-06 5:17
Kevin McFarlane6-Sep-06 5:17 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Zac Howland7-Sep-06 9:31
Zac Howland7-Sep-06 9:31 

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.