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

Managed C++/CLI

 
GeneralRe: Forward Declaration and no appropriate default constructor [modified] Pin
George L. Jackson21-Aug-07 4:52
George L. Jackson21-Aug-07 4:52 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 5:03
iddqd51521-Aug-07 5:03 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
George L. Jackson21-Aug-07 5:06
George L. Jackson21-Aug-07 5:06 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 5:45
iddqd51521-Aug-07 5:45 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
George L. Jackson21-Aug-07 5:53
George L. Jackson21-Aug-07 5:53 
GeneralRe: Forward Declaration and no appropriate default constructor Pin
iddqd51521-Aug-07 6:16
iddqd51521-Aug-07 6:16 
Questionis there a way for using a global variable in several Form??? Pin
aefmaaradji20-Aug-07 7:16
aefmaaradji20-Aug-07 7:16 
AnswerRe: is there a way for using a global variable in several Form??? Pin
Mark Salsbery20-Aug-07 9:08
Mark Salsbery20-Aug-07 9:08 
I'm assuming you need a global managed object.

One way would be to use gcroot
#include <vcclr.h> // Need this for gcroot
...
// Add to ONE cpp file (creation could be done later)
gcroot<MyManagedClass ^> MyGlobalObject = gcnew MyManagedClass();
...
// add to any file that needs to access MyGlobalObject (and/or add to a header file)
extern gcroot<MyManagedClass ^> MyGlobalObject;
Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: is there a way for using a global variable in several Form??? Pin
George L. Jackson20-Aug-07 9:50
George L. Jackson20-Aug-07 9:50 
Questionhelp Pin
philiptabraham19-Aug-07 18:48
philiptabraham19-Aug-07 18:48 
AnswerRe: help Pin
Giorgi Dalakishvili19-Aug-07 20:51
mentorGiorgi Dalakishvili19-Aug-07 20:51 
AnswerRe: help Pin
Russell'19-Aug-07 23:03
Russell'19-Aug-07 23:03 
GeneralRe: help Pin
Giorgi Dalakishvili19-Aug-07 23:24
mentorGiorgi Dalakishvili19-Aug-07 23:24 
GeneralRe: help Pin
Russell'19-Aug-07 23:56
Russell'19-Aug-07 23:56 
GeneralRe: help Pin
Giorgi Dalakishvili20-Aug-07 0:01
mentorGiorgi Dalakishvili20-Aug-07 0:01 
GeneralRe: help Pin
Russell'20-Aug-07 0:36
Russell'20-Aug-07 0:36 
GeneralRe: help Pin
Giorgi Dalakishvili20-Aug-07 0:39
mentorGiorgi Dalakishvili20-Aug-07 0:39 
AnswerRe: help Pin
Christian Graus20-Aug-07 0:53
protectorChristian Graus20-Aug-07 0:53 
GeneralRe: help Pin
Russell'20-Aug-07 2:05
Russell'20-Aug-07 2:05 
GeneralRe: help Pin
Christian Graus20-Aug-07 15:01
protectorChristian Graus20-Aug-07 15:01 
AnswerRe: help Pin
Justin Perez20-Aug-07 11:15
Justin Perez20-Aug-07 11:15 
Questionhow to use several Form and use called her methods ? Pin
aefmaaradji19-Aug-07 10:54
aefmaaradji19-Aug-07 10:54 
AnswerRe: how to use several Form and use called her methods ? Pin
Christian Graus19-Aug-07 11:33
protectorChristian Graus19-Aug-07 11:33 
GeneralRe: how to use several Form and use called her methods ? [modified] Pin
aefmaaradji20-Aug-07 5:42
aefmaaradji20-Aug-07 5:42 
QuestionIdle Process under XP SP2! wrong pid? or a feature? Pin
xball17-Aug-07 13:19
xball17-Aug-07 13:19 

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.