Click here to Skip to main content
16,004,761 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Question.net Pin
bikshamaiah.g6-Jan-06 4:31
bikshamaiah.g6-Jan-06 4:31 
AnswerRe: .net Pin
Nish Nishant6-Jan-06 4:51
sitebuilderNish Nishant6-Jan-06 4:51 
QuestionC++ Pin
S.E5-Jan-06 21:54
S.E5-Jan-06 21:54 
AnswerRe: C++ Pin
Yuwraj5-Jan-06 23:00
Yuwraj5-Jan-06 23:00 
AnswerRe: C++ Pin
Nish Nishant6-Jan-06 4:11
sitebuilderNish Nishant6-Jan-06 4:11 
GeneralRe: C++ Pin
Nish Nishant6-Jan-06 4:12
sitebuilderNish Nishant6-Jan-06 4:12 
QuestionQuestion on Hashtables Pin
jblau5-Jan-06 17:43
jblau5-Jan-06 17:43 
AnswerRe: Question on Hashtables Pin
J. Dunlap5-Jan-06 18:53
J. Dunlap5-Jan-06 18:53 
The correct way to work with managed objects in C++/CLI is to use managed references, and the gcnew operator.
//note the "^", which denotes a managed reference, just as a "*" denotes a pointer,
//and the use of the gcnew operator to instantiate the objects on the managed heap.
MyObject^ tempObject = gcnew MyObject();
Hashtable^ hashObjects = gcnew Hashtable();

hashObjects->Add(key, tempObject);
Once all references to a managed object are set to null or go out of scope, the object will be garbage collected at whatever point the CLR decides to do so.

 

GeneralRe: Question on Hashtables Pin
Nish Nishant6-Jan-06 2:43
sitebuilderNish Nishant6-Jan-06 2:43 
AnswerRe: Question on Hashtables Pin
Michael Dunn5-Jan-06 22:53
sitebuilderMichael Dunn5-Jan-06 22:53 
GeneralRe: Question on Hashtables Pin
Nish Nishant6-Jan-06 2:44
sitebuilderNish Nishant6-Jan-06 2:44 
QuestionHow to use "graphic.h" in visual C++? Pin
m-khansari5-Jan-06 10:02
m-khansari5-Jan-06 10:02 
AnswerRe: How to use "graphic.h" in visual C++? Pin
Nish Nishant5-Jan-06 10:37
sitebuilderNish Nishant5-Jan-06 10:37 
AnswerRe: How to use "graphic.h" in visual C++? Pin
m-khansari6-Jan-06 19:37
m-khansari6-Jan-06 19:37 
AnswerRe: How to use "graphic.h" in visual C++? Pin
Sheng Jiang 蒋晟6-Jan-06 8:15
Sheng Jiang 蒋晟6-Jan-06 8:15 
QuestionMOVED Pin
tj_cts5-Jan-06 8:28
tj_cts5-Jan-06 8:28 
AnswerRe: Get Status of Comm Port Pin
Nish Nishant5-Jan-06 8:42
sitebuilderNish Nishant5-Jan-06 8:42 
GeneralRe: Get Status of Comm Port Pin
tj_cts5-Jan-06 8:59
tj_cts5-Jan-06 8:59 
QuestionHow to create a CFileDialog appearance resource? Pin
doctorpi2-Jan-06 22:02
doctorpi2-Jan-06 22:02 
AnswerRe: How to create a CFileDialog appearance resource? Pin
Nish Nishant3-Jan-06 6:08
sitebuilderNish Nishant3-Jan-06 6:08 
GeneralRe: How to create a CFileDialog appearance resource? Pin
doctorpi3-Jan-06 21:03
doctorpi3-Jan-06 21:03 
Questionsubmission Pin
thekeralite2-Jan-06 15:56
thekeralite2-Jan-06 15:56 
AnswerRe: submission Pin
Nish Nishant3-Jan-06 6:09
sitebuilderNish Nishant3-Jan-06 6:09 
Questionthreads and Managed c++ Pin
Roy K2-Jan-06 15:02
Roy K2-Jan-06 15:02 
AnswerRe: threads and Managed c++ Pin
Nish Nishant3-Jan-06 6:11
sitebuilderNish Nishant3-Jan-06 6:11 

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.