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

Managed C++/CLI

 
Questioncliext relative to pair and managed types [modified] Pin
SomewhereEverywhere20-Jul-11 15:19
SomewhereEverywhere20-Jul-11 15:19 
AnswerRe: cliext relative to pair and managed types Pin
John Schroedl21-Jul-11 4:25
professionalJohn Schroedl21-Jul-11 4:25 
GeneralHow to generate wsdl in CLR console application? Pin
aupres8-Jul-11 21:17
aupres8-Jul-11 21:17 
QuestionRe: How to generate wsdl in CLR console application? Pin
Mark Salsbery9-Jul-11 6:33
Mark Salsbery9-Jul-11 6:33 
Questionhow to use crystal report in c++/clr ? Pin
Mahdi.mpst7-Jul-11 0:24
Mahdi.mpst7-Jul-11 0:24 
AnswerRe: how to use crystal report in c++/clr ? Pin
thatraja9-Jul-11 18:40
professionalthatraja9-Jul-11 18:40 
QuestionTypical issues in managed c++ Pin
sukumarvg4-Jul-11 2:03
sukumarvg4-Jul-11 2:03 
AnswerRe: Typical issues in managed c++ Pin
ian__lindsay4-Jul-11 5:45
ian__lindsay4-Jul-11 5:45 
Hi,
1) I tend to use the msclr::interop::marshal_as templates for string conversions rather than pinning memory as they work in a nice tidy C++ RAII way, clearing up any temporary/locked memory when going out of scope. They handle stl, COM and straight const char * type conversions. See http://msdn.microsoft.com/en-us/library/bb384859.aspx[^]

2) Yes. Works just the same, except with C++/CLI syntax. You will need to do some translation (e.g. to copy into an stl data type) to send to purely native code though.

3) The general rule is if you are creating a managed object, use gcnew, otherwise use straight c++ new. The garbage collector will do the rest. You can still delete sooner if you want to.

Hope that helps.
GeneralRe: Typical issues in managed c++ Pin
sukumarvg6-Jul-11 22:29
sukumarvg6-Jul-11 22:29 
GeneralRe: Typical issues in managed c++ Pin
John Schroedl21-Jul-11 4:30
professionalJohn Schroedl21-Jul-11 4:30 
GeneralBook for Managed Extenstion for Vc++ Pin
Vijjuuu.1-Jul-11 21:34
Vijjuuu.1-Jul-11 21:34 
GeneralRe: Book for Managed Extenstion for Vc++ Pin
Ger Hayden1-Jul-11 22:44
Ger Hayden1-Jul-11 22:44 
GeneralRe: Book for Managed Extenstion for Vc++ Pin
Vijjuuu.3-Jul-11 7:22
Vijjuuu.3-Jul-11 7:22 
QuestionRe: Book for Managed Extenstion for Vc++ Pin
Mark Salsbery3-Jul-11 7:50
Mark Salsbery3-Jul-11 7:50 
GeneralRe: Book for Managed Extenstion for Vc++ [modified] Pin
ian__lindsay4-Jul-11 5:34
ian__lindsay4-Jul-11 5:34 
GeneralRe: Book for Managed Extenstion for Vc++ Pin
Vijjuuu.4-Jul-11 21:08
Vijjuuu.4-Jul-11 21:08 
QuestionProblem with managed and unmanaged mixed coding Pin
Lighter Joul1-Jul-11 13:56
Lighter Joul1-Jul-11 13:56 
AnswerRe: Problem with managed and unmanaged mixed coding Pin
Philippe Mori1-Jul-11 15:45
Philippe Mori1-Jul-11 15:45 
GeneralRe: Problem with managed and unmanaged mixed coding Pin
Lighter Joul2-Jul-11 1:33
Lighter Joul2-Jul-11 1:33 
GeneralRe: Problem with managed and unmanaged mixed coding Pin
Philippe Mori2-Jul-11 1:55
Philippe Mori2-Jul-11 1:55 
GeneralRe: Problem with managed and unmanaged mixed coding Pin
Lighter Joul2-Jul-11 3:35
Lighter Joul2-Jul-11 3:35 
QuestionEDIT CONTROL password style Pin
RomTibi30-Jun-11 7:04
RomTibi30-Jun-11 7:04 
AnswerRe: EDIT CONTROL password style Pin
Mark Salsbery30-Jun-11 8:20
Mark Salsbery30-Jun-11 8:20 
QuestionDebugging an application minidump using windbg Pin
Prasann Mayekar9-Jun-11 23:01
Prasann Mayekar9-Jun-11 23:01 
Answercross-post alert Pin
Luc Pattyn10-Jun-11 1:08
sitebuilderLuc Pattyn10-Jun-11 1:08 

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.