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

Managed C++/CLI

 
GeneralRe: Proper Method for Closing Stream Chain Pin
Jeffrey Walton13-Mar-08 4:39
Jeffrey Walton13-Mar-08 4:39 
GeneralRe: Proper Method for Closing Stream Chain Pin
led mike13-Mar-08 5:23
led mike13-Mar-08 5:23 
QuestionHow does unmanaged code access controls from Windows form Pin
Manny Roxas12-Mar-08 13:56
Manny Roxas12-Mar-08 13:56 
AnswerRe: How does unmanaged code access controls from Windows form Pin
Mark Salsbery12-Mar-08 17:19
Mark Salsbery12-Mar-08 17:19 
GeneralRe: How does unmanaged code access controls from Windows form Pin
Manny Roxas14-Mar-08 5:54
Manny Roxas14-Mar-08 5:54 
GeneralRe: How does unmanaged code access controls from Windows form Pin
Mark Salsbery16-Mar-08 8:24
Mark Salsbery16-Mar-08 8:24 
GeneralRe: How does unmanaged code access controls from Windows form Pin
Manny Roxas17-Mar-08 8:24
Manny Roxas17-Mar-08 8:24 
GeneralRe: How does unmanaged code access controls from Windows form Pin
Mark Salsbery17-Mar-08 13:27
Mark Salsbery17-Mar-08 13:27 
I still recommend reading those links to understand what's going on.

The simplest syntax is using gcroot, which hides some messier code used
when using GCHandle directly...
#include <vcclr.h>

// Global variable (or whatever scope it needs to be)
gcroot<Form1 ^> MyWindowsForm;
...
MyWindowsForm = gcnew Form1();

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How does unmanaged code access controls from Windows form Pin
Manny Roxas18-Mar-08 5:36
Manny Roxas18-Mar-08 5:36 
QuestionAny good books?? Pin
ptr2void12-Mar-08 2:22
ptr2void12-Mar-08 2:22 
AnswerRe: Any good books?? Pin
Paul Conrad12-Mar-08 5:39
professionalPaul Conrad12-Mar-08 5:39 
AnswerRe: Any good books?? Pin
Christian Graus12-Mar-08 14:57
protectorChristian Graus12-Mar-08 14:57 
GeneralRe: Any good books?? Pin
ptr2void12-Mar-08 19:30
ptr2void12-Mar-08 19:30 
GeneralRe: Any good books?? Pin
led mike13-Mar-08 4:08
led mike13-Mar-08 4:08 
AnswerRe: Any good books?? Pin
Member 454227212-Mar-08 18:19
Member 454227212-Mar-08 18:19 
QuestionExplicit casting and System::Collections::Generic::IEnumerable<t> ^</t> [modified] Pin
Member 454227211-Mar-08 18:31
Member 454227211-Mar-08 18:31 
GeneralRe: Explicit casting and System::Collections::Generic::IEnumerable ^ Pin
Mark Salsbery12-Mar-08 6:18
Mark Salsbery12-Mar-08 6:18 
GeneralRe: Explicit casting and System::Collections::Generic::IEnumerable ^ Pin
Member 454227212-Mar-08 17:31
Member 454227212-Mar-08 17:31 
GeneralRe: Explicit casting and System::Collections::Generic::IEnumerable ^ Pin
Mark Salsbery12-Mar-08 17:37
Mark Salsbery12-Mar-08 17:37 
GeneralListBox Duplicacy.. Pin
ptr2void11-Mar-08 18:17
ptr2void11-Mar-08 18:17 
GeneralPost Duplicacy.. Pin
Giorgi Dalakishvili11-Mar-08 21:08
mentorGiorgi Dalakishvili11-Mar-08 21:08 
GeneralRe: Post Duplicacy.. Pin
ptr2void12-Mar-08 1:41
ptr2void12-Mar-08 1:41 
Questiontree Pin
rose19611-Mar-08 15:27
rose19611-Mar-08 15:27 
GeneralPinning Pointer (System::Array to BYTE[]) Pin
Jeffrey Walton10-Mar-08 18:10
Jeffrey Walton10-Mar-08 18:10 
GeneralRe: Pinning Pointer (System::Array to BYTE[]) Pin
Jeffrey Walton10-Mar-08 18:29
Jeffrey Walton10-Mar-08 18:29 

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.