Click here to Skip to main content
13,253,863 members (66,856 online)

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 3:15
memberlucky_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. Pin
Richard MacCutchan26-Oct-12 4:12
mvpRichard 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. Pin
lucky_122127-Oct-12 1:52
memberlucky_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. Pin
Richard MacCutchan27-Oct-12 4:11
mvpRichard MacCutchan27-Oct-12 4:11 
Questionexceptions Pin
Emmos201116-Oct-12 6:10
memberEmmos201116-Oct-12 6:10 
AnswerRe: exceptions Pin
Richard MacCutchan16-Oct-12 9:22
mvpRichard MacCutchan16-Oct-12 9:22 
Questionc++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 0:21
memberMarius Bancila11-Oct-12 0:21 
AnswerRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl11-Oct-12 4:19
memberJohn 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 Pin
John Schroedl11-Oct-12 4:29
memberJohn Schroedl11-Oct-12 4:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 11:12
memberMarius Bancila11-Oct-12 11:12 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:29
memberJohn Schroedl12-Oct-12 3:29 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
Marius Bancila11-Oct-12 22:35
memberMarius Bancila11-Oct-12 22:35 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:34
memberJohn Schroedl12-Oct-12 3:34 
GeneralRe: c++/cli define new explicit implementation of a sealed method Pin
John Schroedl12-Oct-12 3:38
memberJohn Schroedl12-Oct-12 3:38 
Questionhow can we avoid error D8016 ? Pin
litu kumar9-Oct-12 0:18
memberlitu kumar9-Oct-12 0:18 
AnswerRe: how can we avoid error D8016 ? Pin
Richard MacCutchan9-Oct-12 1:18
mvpRichard MacCutchan9-Oct-12 1:18 
GeneralRe: how can we avoid error D8016 ? Pin
litu kumar7-Nov-12 22:49
memberlitu kumar7-Nov-12 22:49 
GeneralRe: how can we avoid error D8016 ? Pin
Freak3026-Nov-12 4:11
memberFreak3026-Nov-12 4:11 
QuestionChild dialog shadow remains Pin
shivareaj5-Oct-12 8:30
membershivareaj5-Oct-12 8:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan5-Oct-12 23:35
mvpRichard MacCutchan5-Oct-12 23:35 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 7:02
membershivareaj6-Oct-12 7:02 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 7:07
mvpRichard MacCutchan6-Oct-12 7:07 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 18:55
membershivareaj6-Oct-12 18:55 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 22:30
mvpRichard MacCutchan6-Oct-12 22:30 
QuestionHow to call manged api from unmanaged code? Pin
litu kumar4-Oct-12 4:25
memberlitu kumar4-Oct-12 4: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.


Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 21 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid