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

Managed C++/CLI

 
GeneralRe: buttons exception Pin
staticv3-Feb-09 7:02
staticv3-Feb-09 7:02 
GeneralRe: buttons exception Pin
Luc Pattyn3-Feb-09 7:05
sitebuilderLuc Pattyn3-Feb-09 7:05 
QuestionHi all Pin
tasumisra2-Feb-09 22:38
tasumisra2-Feb-09 22:38 
AnswerRe: Hi all Pin
Mark Salsbery3-Feb-09 5:01
Mark Salsbery3-Feb-09 5:01 
QuestionHow to return array of custom objects from native C++ class to cpp/CLI class. Pin
Member 57039052-Feb-09 16:09
Member 57039052-Feb-09 16:09 
AnswerRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
N a v a n e e t h2-Feb-09 18:20
N a v a n e e t h2-Feb-09 18:20 
GeneralRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
Member 57039053-Feb-09 2:38
Member 57039053-Feb-09 2:38 
GeneralRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
Mark Salsbery3-Feb-09 5:07
Mark Salsbery3-Feb-09 5:07 
Member 5703905 wrote:
Not sure if it is a nice idea to return a ptr from unmanaged project to managed cpp/cli project.


It's fine in C++/CLI. Native objects will be on the native heap, managed objects
will be on the managed heap. If you need to hold the pointer in a managed object, you
can use the IntPtr type.

If you expect to allocate the native object in one DLL and free it in another DLL, you'll
want to make sure both DLLs are sharing the same CRT library (DLL).

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

Questionerror C2440: 'type cast' : cannot convert from 'System::String ^' to 'LPCTSTR' Pin
priyasethu1-Feb-09 19:57
priyasethu1-Feb-09 19:57 
AnswerRe: error C2440: 'type cast' : cannot convert from 'System::String ^' to 'LPCTSTR' Pin
Mark Salsbery2-Feb-09 8:05
Mark Salsbery2-Feb-09 8:05 
QuestionSetWindowsHookEx from Managed C++ Pin
Kar981-Feb-09 11:26
Kar981-Feb-09 11:26 
AnswerRe: SetWindowsHookEx from Managed C++ Pin
Mark Salsbery2-Feb-09 8:12
Mark Salsbery2-Feb-09 8:12 
Questionconvert row elements from two dimensional array to one dimensional arrays Pin
emira6730-Jan-09 23:39
emira6730-Jan-09 23:39 
QuestionCreate an image from a string in C++ .NET Pin
USAFHokie8029-Jan-09 11:19
USAFHokie8029-Jan-09 11:19 
AnswerRe: Create an image from a string in C++ .NET Pin
USAFHokie8029-Jan-09 11:43
USAFHokie8029-Jan-09 11:43 
AnswerRe: Create an image from a string in C++ .NET Pin
N a v a n e e t h29-Jan-09 15:11
N a v a n e e t h29-Jan-09 15:11 
Questionhow to send the settings from admin module to all user modules Pin
naveen_bij27-Jan-09 1:21
naveen_bij27-Jan-09 1:21 
QuestionSocket listening but not accepting, why? Pin
randomVariable26-Jan-09 20:46
randomVariable26-Jan-09 20:46 
QuestionRe: Socket listening but not accepting, why? Pin
led mike27-Jan-09 4:49
led mike27-Jan-09 4:49 
AnswerRe: Socket listening but not accepting, why? Pin
randomVariable27-Jan-09 6:07
randomVariable27-Jan-09 6:07 
GeneralRe: Socket listening but not accepting, why? Pin
staticv28-Jan-09 2:09
staticv28-Jan-09 2:09 
QuestionDoes anyone know how to use Mschart in Visual c++? Pin
sai5623-Jan-09 22:21
sai5623-Jan-09 22:21 
AnswerRe: Does anyone know how to use Mschart in Visual c++? Pin
N a v a n e e t h23-Jan-09 23:10
N a v a n e e t h23-Jan-09 23:10 
QuestionLinker Error in CLR library file while linking to native C++ application. Pin
Member 570390523-Jan-09 12:42
Member 570390523-Jan-09 12:42 
Questionthread creation Pin
staticv23-Jan-09 5:43
staticv23-Jan-09 5:43 

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.