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

Managed C++/CLI

 
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 
AnswerRe: Convert a string to delegate Pin
Tony Richards27-Dec-10 3:14
Tony Richards27-Dec-10 3:14 
AnswerRe: Convert a string to delegate Pin
outpan27-Dec-10 8:31
outpan27-Dec-10 8:31 
Questionmaking a shop with c++ Pin
hasani200723-Dec-10 23:48
hasani200723-Dec-10 23:48 
AnswerRe: making a shop with c++ Pin
Richard MacCutchan24-Dec-10 2:36
mveRichard MacCutchan24-Dec-10 2:36 
QuestionHelp me get file using sftp in MFC (C++)????? Pin
haicang22-Dec-10 23:01
haicang22-Dec-10 23:01 

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.