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

Managed C++/CLI

 
QuestionMulti-Project Solution in visual studio 2008 (C++/CLI) (Windows Form Application). Pin
PrajaktPatil6-Jun-11 1:24
PrajaktPatil6-Jun-11 1:24 
QuestionRe: Multi-Project Solution in visual studio 2008 (C++/CLI) (Windows Form Application). Pin
Mark Salsbery6-Jun-11 7:04
Mark Salsbery6-Jun-11 7:04 
GeneralRe: Multi-Project Solution in visual studio 2008 (C++/CLI) (Windows Form Application). Pin
PrajaktPatil6-Jun-11 23:20
PrajaktPatil6-Jun-11 23:20 
AnswerRe: Multi-Project Solution in visual studio 2008 (C++/CLI) (Windows Form Application). Pin
Albert Holguin8-Jun-11 18:48
professionalAlbert Holguin8-Jun-11 18:48 
AnswerRe: Multi-Project Solution in visual studio 2008 (C++/CLI) (Windows Form Application). Pin
Philippe Mori2-Jul-11 2:17
Philippe Mori2-Jul-11 2:17 
QuestionAccess methods from .Net C# COM object from Unmanaged C++ code Pin
Member 79736701-Jun-11 23:20
Member 79736701-Jun-11 23:20 
AnswerRe: Access methods from .Net C# COM object from Unmanaged C++ code Pin
MicroVirus18-Jun-11 3:49
MicroVirus18-Jun-11 3:49 
AnswerRe: Access methods from .Net C# COM object from Unmanaged C++ code Pin
Philippe Mori2-Jul-11 2:30
Philippe Mori2-Jul-11 2:30 
By the way, you might also consider making a mixed-mode C++ code. If you cannot put your original C++ code in that project without problems, you might then explore the possibility to create a mixed-mode layer.

In my case, my C++ code is compiled in mixed mode (/clr) so I can mix regular C++ with managed C++ in the same DLL. It might not always be feasible in existing code is large and uses incompatible options.

In that latter case, I might also try to have an extra DLL (mixed-mode C++) that would make the bridge between unmanaged C++ and managed code. Then existing C++ code would uses that DLL to indirectly call C# code.

This approch have some advantage like you could somehow adapt C++ code to be easier to uses or follows your C++ code convention or do some transformation between types like converting System::String^ to wstring for uses in C++.

I have never really tried the C# COM objects by their should be no problem with that method provided that all required symbols are public and GUID are assigned when required.
Philippe Mori

QuestionQuestion about Connecting to Postgresql with ODBC Pin
Lighter Joul27-May-11 5:07
Lighter Joul27-May-11 5:07 
AnswerRe: Question about Connecting to Postgresql with ODBC Pin
Mark Salsbery27-May-11 7:21
Mark Salsbery27-May-11 7:21 
QuestionDrawing problem in panel when scrolling Pin
Lighter Joul26-May-11 4:13
Lighter Joul26-May-11 4:13 
AnswerRe: Drawing problem in panel when scrolling Pin
Lighter Joul26-May-11 21:31
Lighter Joul26-May-11 21:31 
Questionattach a file to a windows form Pin
VonHagNDaz25-May-11 4:42
VonHagNDaz25-May-11 4:42 
AnswerRe: attach a file to a windows form Pin
Luc Pattyn25-May-11 5:35
sitebuilderLuc Pattyn25-May-11 5:35 
GeneralRe: attach a file to a windows form Pin
VonHagNDaz25-May-11 6:00
VonHagNDaz25-May-11 6:00 
AnswerRe: attach a file to a windows form Pin
Luc Pattyn25-May-11 6:27
sitebuilderLuc Pattyn25-May-11 6:27 
Questionproblem with switch in C++/CLI [modified] Pin
mirabelka224-May-11 10:58
mirabelka224-May-11 10:58 
AnswerRe: problem with switch in C++/CLI Pin
Mark Salsbery24-May-11 14:47
Mark Salsbery24-May-11 14:47 
AnswerRe: problem with switch in C++/CLI Pin
John Schroedl24-May-11 16:30
professionalJohn Schroedl24-May-11 16:30 
GeneralRe: problem with switch in C++/CLI Pin
mirabelka226-May-11 1:18
mirabelka226-May-11 1:18 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn25-May-11 1:36
sitebuilderLuc Pattyn25-May-11 1:36 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn26-May-11 1:47
sitebuilderLuc Pattyn26-May-11 1:47 
QuestionScrollbar in c++/cli winform Pin
Lighter Joul23-May-11 3:59
Lighter Joul23-May-11 3:59 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 4:15
sitebuilderLuc Pattyn23-May-11 4:15 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul23-May-11 4:37
Lighter Joul23-May-11 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.