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

Managed C++/CLI

 
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 
AnswerRe: String conversion in c++/CLI Pin
led mike1-Oct-08 4:36
led mike1-Oct-08 4:36 
Robin Imrie wrote:
I not sure the gcnew string( lpsz ) method is ideal. is there a better way or what is the propper way of doing this.


in general gcnew is how you create managed objects in C++/CLI so that is always a correct way to do it. Of course strings can be different like in Native C++ based on what you need them for. In your code you are creating a native string and then converting it to a managed string.

If you only need a managed string then you could do this.

System::String^ lpsz = "myString";


There is a series of introductory C++/CLI articles here on CodeProject. I suggest you take advantage of them.


led mike

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 
QuestionMarshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Cyrilix25-Sep-08 10:50
Cyrilix25-Sep-08 10:50 

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.