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

Managed C++/CLI

 
QuestionCurrently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pin
lucky_122126-Oct-12 2:15
Memberlucky_122126-Oct-12 2:15 
AnswerRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pin
Richard MacCutchan26-Oct-12 3:12
mveRichard MacCutchan26-Oct-12 3:12 
GeneralRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pin
lucky_122127-Oct-12 0:52
Memberlucky_122127-Oct-12 0:52 
GeneralRe: Currently I am using the log4cplu 1.0.2 version, Now i want to use the 1.1.0 version. Pin
Richard MacCutchan27-Oct-12 3:11
mveRichard MacCutchan27-Oct-12 3:11 
Questionexceptions Pin
Emmos201116-Oct-12 5:10
MemberEmmos201116-Oct-12 5:10 
AnswerRe: exceptions Pin
Richard MacCutchan16-Oct-12 8:22
mveRichard MacCutchan16-Oct-12 8:22 
Questionc++/cli define new explicit implementation of a sealed method Pin
Marius Bancila10-Oct-12 23:21
professionalMarius Bancila10-Oct-12 23:21 
AnswerRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl11-Oct-12 3:19
professionalJohn Schroedl11-Oct-12 3:19 
You could use Renamed Overriding which will work if you're always called through an interface handle.

C++
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 Pin
John Schroedl11-Oct-12 3:29
professionalJohn Schroedl11-Oct-12 3:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 10:12
professionalMarius Bancila11-Oct-12 10:12 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 2:29
professionalJohn Schroedl12-Oct-12 2:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 21:35
professionalMarius Bancila11-Oct-12 21:35 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 2:34
professionalJohn Schroedl12-Oct-12 2:34 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 2:38
professionalJohn Schroedl12-Oct-12 2:38 
Questionhow can we avoid error D8016 ? Pin
litu kumar8-Oct-12 23:18
Memberlitu kumar8-Oct-12 23:18 
AnswerRe: how can we avoid error D8016 ? Pin
Richard MacCutchan9-Oct-12 0:18
mveRichard MacCutchan9-Oct-12 0:18 
GeneralRe: how can we avoid error D8016 ? Pin
litu kumar7-Nov-12 21:49
Memberlitu kumar7-Nov-12 21:49 
GeneralRe: how can we avoid error D8016 ? Pin
Freak3026-Nov-12 3:11
MemberFreak3026-Nov-12 3:11 
QuestionChild dialog shadow remains Pin
shivareaj5-Oct-12 7:30
Membershivareaj5-Oct-12 7:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan5-Oct-12 22:35
mveRichard MacCutchan5-Oct-12 22:35 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 6:02
Membershivareaj6-Oct-12 6:02 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 6:07
mveRichard MacCutchan6-Oct-12 6:07 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 17:55
Membershivareaj6-Oct-12 17:55 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 21:30
mveRichard MacCutchan6-Oct-12 21:30 
QuestionHow to call manged api from unmanaged code? Pin
litu kumar4-Oct-12 3:25
Memberlitu kumar4-Oct-12 3:25 

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.