Click here to Skip to main content
       

Managed C++/CLI

 
AnswerRe: how to get programettically a registered DLL's Version information? PinmemberH.Brydon1-Jan-13 10:44 
QuestionHow to use Threadpool of I/O Completion Objects? PinmemberMichael_Tan4-Nov-12 17:10 
QuestionAny C++/CLI Experts wanted to become book author? Pinmembervivekthangaswamy4-Nov-12 17:08 
QuestionConvert 24-bit bmp capture to 8-bit capture in VC++, is it possible? Pinmemberlucky_122129-Oct-12 2:23 
AnswerRe: Convert 24-bit bmp capture to 8-bit capture in VC++, is it possible? Pinmemberjschell29-Oct-12 9:44 
QuestionCurrently i am abel to capture the 24-bit screens capturerin. Pinmemberlucky_122129-Oct-12 2:09 
QuestionCurrently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pinmemberlucky_122126-Oct-12 3:15 
AnswerRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. PinmvpRichard MacCutchan26-Oct-12 4:12 
GeneralRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pinmemberlucky_122127-Oct-12 1:52 
GeneralRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. PinmvpRichard MacCutchan27-Oct-12 4:11 
Questionexceptions PinmemberEmmos201116-Oct-12 6:10 
AnswerRe: exceptions PinmvpRichard MacCutchan16-Oct-12 9:22 
Questionc++/cli define new explicit implementation of a sealed method PinmemberMarius Bancila11-Oct-12 0:21 
AnswerRe: c++/cli define new explicit implementation of a sealed method PinmemberJohn Schroedl11-Oct-12 4:19 
You could use Renamed Overriding which will work if you're always called through an interface handle.
 
interface class IFoo
{
public:
	void foo();
};
 
ref class FooBase : public IFoo
{
public:
	virtual void foo() sealed = IFoo::foo
	{
		Console::WriteLine("FooBase");
	}
};
 
ref class FooDerived : public FooBase
{
public:
	// derivedFoo is the implementation of IFoo::foo
	virtual void derivedFoo() = IFoo::foo
	{
		Console::WriteLine("FooDerived");
	}
};
 
int main(array<System::String ^> ^args)
{
	FooBase^ fb = gcnew FooBase();
	fb->foo();					// Prints "FooBase"

	FooDerived^ fd = gcnew FooDerived();
	fd->foo();					// Prints "FooBase"

	IFoo^ iface = dynamic_cast<IFoo^>(fb);
	iface->foo();					// Prints "FooBase"

	iface = dynamic_cast<IFoo^>(fd);
	iface->foo();					// Prints "FooDerived"

    return 0;
}

GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberJohn Schroedl11-Oct-12 4:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberMarius Bancila11-Oct-12 11:12 
GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberJohn Schroedl12-Oct-12 3:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberMarius Bancila11-Oct-12 22:35 
GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberJohn Schroedl12-Oct-12 3:34 
GeneralRe: c++/cli define new explicit implementation of a sealed method PinmemberJohn Schroedl12-Oct-12 3:38 
Questionhow can we avoid error D8016 ? Pinmemberlitu kumar9-Oct-12 0:18 
AnswerRe: how can we avoid error D8016 ? PinmvpRichard MacCutchan9-Oct-12 1:18 
GeneralRe: how can we avoid error D8016 ? Pinmemberlitu kumar7-Nov-12 22:49 
GeneralRe: how can we avoid error D8016 ? PinmemberFreak3026-Nov-12 4:11 
QuestionChild dialog shadow remains Pinmembershivareaj5-Oct-12 8:30 
AnswerRe: Child dialog shadow remains PinmvpRichard MacCutchan5-Oct-12 23:35 
GeneralRe: Child dialog shadow remains Pinmembershivareaj6-Oct-12 7:02 
GeneralRe: Child dialog shadow remains PinmvpRichard MacCutchan6-Oct-12 7:07 
GeneralRe: Child dialog shadow remains [modified] Pinmembershivareaj6-Oct-12 18:55 
GeneralRe: Child dialog shadow remains PinmvpRichard MacCutchan6-Oct-12 22:30 
QuestionHow to call manged api from unmanaged code? [modified] Pinmemberlitu kumar4-Oct-12 4:25 
AnswerRe: How to call manged api from unmanaged code? PinmemberRichard Andrew x645-Oct-12 10:30 
GeneralRe: How to call manged api from unmanaged code? Pinmemberlitu kumar15-Oct-12 3:13 
GeneralRe: How to call manged api from unmanaged code? PinmemberRichard Andrew x6415-Oct-12 7:46 
QuestionHow to create CLI Interface to access .net API from C++ code? [modified] Pinmemberlitu kumar3-Oct-12 1:19 
Questionoperato precendance question PinmemberAmrit Agr1-Oct-12 23:04 
AnswerRe: operato precendance question PinmvpRichard MacCutchan2-Oct-12 3:58 
AnswerRe: operato precendance question Pinmemberjschell2-Oct-12 9:51 
AnswerRe: operato precendance question Pinmemberskrtbhtngr15-Nov-12 1:39 
QuestionLarge integer class please help PinmemberMsemler9328-Sep-12 2:29 
AnswerRe: Large integer class please help PinmvpRichard MacCutchan28-Sep-12 3:05 
AnswerRe: Large integer class please help Pinmemberjschell28-Sep-12 11:22 
GeneralRe: Large integer class please help PinmemberMsemler9329-Sep-12 10:52 
GeneralRe: Large integer class please help Pinmemberjschell30-Sep-12 9:12 
QuestionHOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pinmemberwilliamjr19-Sep-12 23:09 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) PinmemberWes Aday20-Sep-12 4:57 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) PinprotectorPete O'Hanlon20-Sep-12 5:40 
QuestionWindows Shutdown notification in a MFC Dialog app Pinmembersunilkpv13-Sep-12 1:20 
AnswerRe: Windows Shutdown notification in a MFC Dialog app PinmvpRichard MacCutchan13-Sep-12 1:27 
GeneralRe: Windows Shutdown notification in a MFC Dialog app PinmemberRajesh R Subramanian20-Sep-12 4:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 6 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid