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

Managed C++/CLI

 
QuestionGeneric Cyclic List Default Property [modified] Pin
Jason Titcomb6-Jan-11 0:59
Jason Titcomb6-Jan-11 0:59 
AnswerRe: Generic Cyclic List Default Property Pin
N a v a n e e t h10-Jan-11 1:14
N a v a n e e t h10-Jan-11 1:14 
QuestionMessage Removed Pin
5-Jan-11 22:32
lucky_12215-Jan-11 22:32 
Answercross-post alert Pin
Luc Pattyn6-Jan-11 2:11
sitebuilderLuc Pattyn6-Jan-11 2:11 
QuestionNeed to pass private member of a Class as a argument to function of another class Pin
ptr_Electron4-Jan-11 21:36
ptr_Electron4-Jan-11 21:36 
AnswerRe: Need to pass private member of a Class as a argument to function of another class Pin
Ger Hayden4-Jan-11 22:58
Ger Hayden4-Jan-11 22:58 
AnswerRe: Need to pass private member of a Class as a argument to function of another class Pin
Richard MacCutchan5-Jan-11 0:46
mveRichard MacCutchan5-Jan-11 0:46 
GeneralRe: Need to pass private member of a Class as a argument to function of another class Pin
Luc Pattyn5-Jan-11 3:00
sitebuilderLuc Pattyn5-Jan-11 3:00 
GeneralRe: Need to pass private member of a Class as a argument to function of another class Pin
Richard MacCutchan5-Jan-11 7:15
mveRichard MacCutchan5-Jan-11 7:15 
AnswerRe: Need to pass private member of a Class as a argument to function of another class [modified] Pin
Paul Michalik6-Jan-11 1:17
Paul Michalik6-Jan-11 1:17 
AnswerRe: Need to pass private member of a Class as a argument to function of another class Pin
gammagtmw24-Jan-11 23:44
gammagtmw24-Jan-11 23:44 
Questionget the delagate via property Pin
ptr_Electron4-Jan-11 1:03
ptr_Electron4-Jan-11 1:03 
AnswerRe: get the delagate via property Pin
John Schroedl4-Jan-11 4:33
professionalJohn Schroedl4-Jan-11 4:33 
Here's one way:

using namespace System;

public delegate bool MyCallbackDelegate(void);

public ref class Test
{
private:
	MyCallbackDelegate^ m_pCallBack;

	bool doIt(void)
	{
		Console::WriteLine("Do It Called");
		return true;
	}

public:
	Test()
	{
		// Initialize
		m_pCallBack = gcnew MyCallbackDelegate( this, &Test::doIt );
	}

	property MyCallbackDelegate^ CallBack1		
	{			
		MyCallbackDelegate^ get() { return m_pCallBack; }		
	}         
};

int main(array<System::String ^> ^args)
{
	Test^ t = gcnew Test();

	MyCallbackDelegate^ d = t->CallBack1;
	d();

	return 0;
}


John
GeneralRe: get the delagate via property Pin
ptr_Electron4-Jan-11 18:14
ptr_Electron4-Jan-11 18:14 
GeneralRe: get the delagate via property Pin
John Schroedl5-Jan-11 3:06
professionalJohn Schroedl5-Jan-11 3:06 
QuestionXmlSerializer 's Deserialize method crashs when running with purify Pin
ptr_Electron27-Dec-10 19:37
ptr_Electron27-Dec-10 19:37 
AnswerRe: XmlSerializer 's Deserialize method crashs when running with purify Pin
jschell2-Jan-11 9:14
jschell2-Jan-11 9:14 
GeneralRe: XmlSerializer 's Deserialize method crashs when running with purify Pin
ptr_Electron4-Jan-11 1:38
ptr_Electron4-Jan-11 1:38 
GeneralRe: XmlSerializer 's Deserialize method crashs when running with purify Pin
jschell4-Jan-11 8:01
jschell4-Jan-11 8:01 
GeneralRe: XmlSerializer 's Deserialize method crashs when running with purify Pin
ptr_Electron4-Jan-11 17:59
ptr_Electron4-Jan-11 17:59 
GeneralRe: XmlSerializer 's Deserialize method crashs when running with purify Pin
jschell5-Jan-11 8:54
jschell5-Jan-11 8:54 
Questiontimer count down Pin
MahaKh27-Dec-10 16:53
MahaKh27-Dec-10 16:53 
AnswerRe: timer count down Pin
jk chan29-Dec-10 1:29
jk chan29-Dec-10 1:29 
AnswerRe: timer count down Pin
Richard MacCutchan29-Dec-10 2:01
mveRichard MacCutchan29-Dec-10 2:01 
QuestionConvert a string to delegate Pin
ptr_Electron27-Dec-10 1:17
ptr_Electron27-Dec-10 1:17 

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.