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

Managed C++/CLI

 
AnswerRe: RS232 IN C++/CLI .NET2 vs2005 Pin
RSangeetha31-Oct-06 17:55
RSangeetha31-Oct-06 17:55 
GeneralRe: RS232 IN C++/CLI .NET2 vs2005 Pin
yonas_mgm12-Nov-06 13:16
yonas_mgm12-Nov-06 13:16 
QuestionInvoking delegates(Asynchronouly) in the invocation order Pin
RSangeetha31-Oct-06 2:26
RSangeetha31-Oct-06 2:26 
QuestionSplit Multipage TIF File with CXImage Lib Pin
dummyea30-Oct-06 23:17
dummyea30-Oct-06 23:17 
AnswerRe: Split Multipage TIF File with CXImage Lib Pin
Christian Graus31-Oct-06 1:22
protectorChristian Graus31-Oct-06 1:22 
GeneralRe: Split Multipage TIF File with CXImage Lib Pin
dummyea31-Oct-06 1:39
dummyea31-Oct-06 1:39 
GeneralRe: Split Multipage TIF File with CXImage Lib Pin
Christian Graus31-Oct-06 2:08
protectorChristian Graus31-Oct-06 2:08 
QuestionMixed Mode, Pinning Pointers Pin
Mark Salsbery30-Oct-06 13:39
Mark Salsbery30-Oct-06 13:39 
Given something like this (assume everything public, VC++ 2003 old syntax)...

__gc class ManagedClass
{
	AnotherManagedClass __gc *pAnotherManagedClass;
	...
	AnotherManagedClass __gc * GetAnotherManagedClass()  {return pAnotherManagedClass;}
};

class UnmanagedClass
{
	gcroot<ManagedClass *> pManagedClassObj;
	...
	void UnmanagedClassFunc();
};

Which of the following three is the safest/most-correct/least-overkill way to use the managed
object pointers from an non-GC class method:
void UnmanagedClassFunc()
{
	pManagedClassObj->GetAnotherManagedClass()->AnotherManagedClassFunc();
}

or

void UnmanagedClassFunc()
{
	gcroot<AnotherManagedClass *> pAnotherManagedClassObj;
	pAnotherManagedClassObj = pManagedClassObj->GetAnotherManagedClass();
	pAnotherManagedClassObj->AnotherManagedClassFunc();
}

or

void UnmanagedClassFunc()
{
	AnotherManagedClass __pin *pAnotherManagedClassObj = pManagedClassObj->GetAnotherManagedClass();
	pAnotherManagedClassObj->AnotherManagedClassFunc();
}

Thanks,
Mark
AnswerRe: Mixed Mode, Pinning Pointers Pin
Nish Nishant30-Oct-06 16:28
sitebuilderNish Nishant30-Oct-06 16:28 
GeneralRe: Mixed Mode, Pinning Pointers Pin
Mark Salsbery30-Oct-06 17:37
Mark Salsbery30-Oct-06 17:37 
GeneralRe: Mixed Mode, Pinning Pointers Pin
Nish Nishant31-Oct-06 2:01
sitebuilderNish Nishant31-Oct-06 2:01 
GeneralRe: Mixed Mode, Pinning Pointers Pin
Mark Salsbery31-Oct-06 5:12
Mark Salsbery31-Oct-06 5:12 
Questionregistering a plugin Pin
saqib8230-Oct-06 1:58
saqib8230-Oct-06 1:58 
AnswerRe: registering a plugin Pin
led mike30-Oct-06 4:54
led mike30-Oct-06 4:54 
QuestionCan anyone help me? Pin
francium30-Oct-06 1:49
francium30-Oct-06 1:49 
AnswerRe: Can anyone help me? Pin
led mike30-Oct-06 4:53
led mike30-Oct-06 4:53 
AnswerRe: Can anyone help me? Pin
Christian Graus30-Oct-06 16:25
protectorChristian Graus30-Oct-06 16:25 
QuestionPriority to system timers Pin
RSangeetha29-Oct-06 21:59
RSangeetha29-Oct-06 21:59 
AnswerRe: Priority to system timers Pin
Jonathan [Darka]30-Oct-06 3:46
professionalJonathan [Darka]30-Oct-06 3:46 
Questiongames Pin
ammoh29-Oct-06 20:56
ammoh29-Oct-06 20:56 
AnswerRe: games Pin
toxcct30-Oct-06 5:29
toxcct30-Oct-06 5:29 
AnswerRe: games Pin
Vega0230-Oct-06 9:55
Vega0230-Oct-06 9:55 
QuestionInputing data from .txt to array. Pin
Ramper29-Oct-06 15:58
Ramper29-Oct-06 15:58 
AnswerRe: Inputing data from .txt to array. Pin
Jun Du30-Oct-06 14:15
Jun Du30-Oct-06 14:15 
QuestionCan someone help me with sound control? Pin
crystal0049029-Oct-06 5:26
crystal0049029-Oct-06 5:26 

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.