Click here to Skip to main content
15,908,437 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 13:00
Cyrilix3-Oct-08 13:00 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery3-Oct-08 14:49
Mark Salsbery3-Oct-08 14:49 
GeneralRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 21:44
Cyrilix3-Oct-08 21:44 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:13
Mark Salsbery4-Oct-08 7:13 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:45
Cyrilix4-Oct-08 8:45 
AnswerRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:24
Mark Salsbery4-Oct-08 7:24 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:46
Cyrilix4-Oct-08 8:46 
QuestionString conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:05
professionalRobin Imrie1-Oct-08 4:05 
Hi,

I am porting my vc2003 app to vc2008 and have come across somthing like this...
// this defined
LPCTSTR lpsz = _T("myString");

// then later
// where Afunc is defined as
// SomeObject* AFunc( String *str );
SomeObject *obj = Afunc( lpsz );


under vc2003 this compiles and works file however in vc2008 it seems that i need to do...
// this defined
LPCTSTR lpsz = _T("myString");

// then later
// where Afunc is defined as
// SomeObject^ Afunc( String ^str );
SomeObject ^obj = Afunc( gcnew String(lpsz) );

the documentation on string literals in C++/CLI migration primer suggest that the following could be done.
SomeObject ^obj = AFunc( safe_cast<string^>(lpsz) );

this is wrong as it not compile.

I not sure the gcnew string( lpsz ) method is ideal. is there a better way or what is the propper way of doing this.

thanks

Robin
AnswerRe: String conversion in c++/CLI Pin
led mike1-Oct-08 4:36
led mike1-Oct-08 4:36 
GeneralRe: String conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:45
professionalRobin Imrie1-Oct-08 4:45 
Questiongtk installation Pin
SeshaSridhar1-Oct-08 1:00
SeshaSridhar1-Oct-08 1:00 
QuestionError while calling VC# function in VC++ Pin
Andy Rama29-Sep-08 0:36
Andy Rama29-Sep-08 0:36 
AnswerRe: Error while calling VC# function in VC++ Pin
led mike29-Sep-08 4:31
led mike29-Sep-08 4:31 
AnswerRe: Error while calling VC# function in VC++ Pin
Mark Salsbery29-Sep-08 7:27
Mark Salsbery29-Sep-08 7:27 
GeneralRe: Error while calling VC# function in VC++ Pin
George L. Jackson1-Oct-08 3:21
George L. Jackson1-Oct-08 3:21 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery1-Oct-08 4:51
Mark Salsbery1-Oct-08 4:51 
GeneralRe: Error while calling VC# function in VC++ Pin
Andy Rama3-Oct-08 19:16
Andy Rama3-Oct-08 19:16 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery4-Oct-08 6:42
Mark Salsbery4-Oct-08 6:42 
AnswerRe: Error while calling VC# function in VC++ [modified] Pin
George L. Jackson1-Oct-08 7:14
George L. Jackson1-Oct-08 7:14 
GeneralRe: Error while calling VC# function in VC++ Pin
Andy Rama3-Oct-08 19:28
Andy Rama3-Oct-08 19:28 
QuestionCOM object in .net whose threading model is STA, not both Pin
Shao Voon Wong28-Sep-08 23:39
mvaShao Voon Wong28-Sep-08 23:39 
QuestionWhy does Debug::Print prints in the release build version? [modified] Pin
Shao Voon Wong28-Sep-08 15:29
mvaShao Voon Wong28-Sep-08 15:29 
AnswerRe: Why does Debug::Print prints in the release build version? Pin
George L. Jackson29-Sep-08 5:50
George L. Jackson29-Sep-08 5:50 
QuestionHow to avoid loading an already loaded shared library Pin
Yashusid25-Sep-08 18:53
Yashusid25-Sep-08 18:53 
AnswerRe: How to avoid loading an already loaded shared library Pin
led mike26-Sep-08 4:37
led mike26-Sep-08 4:37 

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.