Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pointer - Protection from deletion Pin
uusheikh10-Sep-08 16:00
uusheikh10-Sep-08 16:00 
GeneralRe: Pointer - Protection from deletion Pin
Mark Salsbery10-Sep-08 16:04
Mark Salsbery10-Sep-08 16:04 
GeneralRe: Pointer - Protection from deletion Pin
uusheikh10-Sep-08 16:09
uusheikh10-Sep-08 16:09 
GeneralRe: Pointer - Protection from deletion Pin
Bram van Kampen10-Sep-08 17:29
Bram van Kampen10-Sep-08 17:29 
GeneralRe: Pointer - Protection from deletion Pin
uusheikh10-Sep-08 18:32
uusheikh10-Sep-08 18:32 
GeneralRe: Pointer - Protection from deletion Pin
Mark Salsbery11-Sep-08 4:23
Mark Salsbery11-Sep-08 4:23 
QuestionPassing CString between DLLs Pin
uusheikh10-Sep-08 15:42
uusheikh10-Sep-08 15:42 
AnswerRe: Passing CString between DLLs Pin
Mark Salsbery10-Sep-08 16:01
Mark Salsbery10-Sep-08 16:01 
The VS2005 and VS2008 sides are going to use different
CRT libraries so passing anything but const pointers
isn't going to be safe.

Also, as you mentioned, the CString implementations may be
different so passing CStrings isn't safe.

Passing LPCSTRs is safest - let the receiver make a local
CString copy from the passed pointer if necessary.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Passing CString between DLLs Pin
uusheikh10-Sep-08 16:06
uusheikh10-Sep-08 16:06 
GeneralRe: Passing CString between DLLs Pin
Bram van Kampen10-Sep-08 17:33
Bram van Kampen10-Sep-08 17:33 
GeneralRe: Passing CString between DLLs Pin
uusheikh10-Sep-08 18:33
uusheikh10-Sep-08 18:33 
GeneralRe: Passing CString between DLLs Pin
Mark Salsbery11-Sep-08 4:20
Mark Salsbery11-Sep-08 4:20 
Questionmemory mismatch usage between duplicate instances? Pin
fredsparkle10-Sep-08 14:14
fredsparkle10-Sep-08 14:14 
AnswerRe: memory mismatch usage between duplicate instances? Pin
Bram van Kampen10-Sep-08 17:41
Bram van Kampen10-Sep-08 17:41 
QuestionVC++ 6 with Excel Sheets Pin
kasi1410-Sep-08 7:19
kasi1410-Sep-08 7:19 
AnswerRe: VC++ 6 with Excel Sheets Pin
David Crow10-Sep-08 7:57
David Crow10-Sep-08 7:57 
GeneralRe: VC++ 6 with Excel Sheets Pin
kasi1410-Sep-08 8:49
kasi1410-Sep-08 8:49 
GeneralRe: VC++ 6 with Excel Sheets Pin
David Crow10-Sep-08 9:07
David Crow10-Sep-08 9:07 
AnswerRe: VC++ 6 with Excel Sheets Pin
Jijo.Raj10-Sep-08 7:58
Jijo.Raj10-Sep-08 7:58 
GeneralRe: VC++ 6 with Excel Sheets Pin
kasi1410-Sep-08 8:47
kasi1410-Sep-08 8:47 
Questionhow to get the subkey value using c++ Pin
adhilingam10-Sep-08 5:20
adhilingam10-Sep-08 5:20 
QuestionRe: how to get the subkey value using c++ Pin
Mark Salsbery10-Sep-08 6:27
Mark Salsbery10-Sep-08 6:27 
AnswerRe: how to get the subkey value using c++ Pin
jeron110-Sep-08 6:36
jeron110-Sep-08 6:36 
GeneralRe: how to get the subkey value using c++ Pin
Mark Salsbery10-Sep-08 7:21
Mark Salsbery10-Sep-08 7:21 
GeneralRe: how to get the subkey value using c++ Pin
jeron110-Sep-08 7:27
jeron110-Sep-08 7:27 

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.