Click here to Skip to main content
15,887,434 members
Home / Discussions / Windows Development
   

Windows Development

 
AnswerRe: I can not access some folders Pin
ZurdoDev30-Sep-14 9:54
professionalZurdoDev30-Sep-14 9:54 
QuestionWindows 8.1 hibernation bug Pin
ed welch11-Apr-14 4:14
ed welch11-Apr-14 4:14 
AnswerRe: Windows 8.1 hibernation bug Pin
ZurdoDev26-Sep-14 4:26
professionalZurdoDev26-Sep-14 4:26 
QuestionDo you find the metro interface appealing ? Pin
Armando de la Torre19-Feb-14 15:00
Armando de la Torre19-Feb-14 15:00 
AnswerRe: Do you find the metro interface appealing ? Pin
MatthysDT19-Feb-14 19:56
MatthysDT19-Feb-14 19:56 
RantRe: Do you find the metro interface appealing ? Pin
Frank T. Clark3-Jun-14 3:26
professionalFrank T. Clark3-Jun-14 3:26 
AnswerRe: Do you find the metro interface appealing ? Pin
AgentDigby27-Aug-14 6:34
AgentDigby27-Aug-14 6:34 
QuestionWinRT C++ inheritance problem Pin
Super Lloyd15-Oct-13 7:46
Super Lloyd15-Oct-13 7:46 
I finally decided to use inheritance in my WinRT C++ library, by exposing interface, such as
C++
public interface class IA
{
    property int ID { int get(); }
};
ref class A : IA
{
public:
    virtual property int ID { int get() { return 0; } }
};

public interface class IB : IA {};
ref class B : A, IB {};

public ref class Create sealed {
public:
    static IB^ CreateB() { return ref new B(); }
};


However when I try to compile that code I got the following error messages:
Quote:
1>c:\dev\tests\windowsruntimecomponent1\windowsruntimecomponent1\class1.h(16): error C3766: 'WindowsRuntimeComponent1::B' must provide an implementation for the interface method 'int WindowsRuntimeComponent1::IA::ID::get(void)'
1> c:\dev\tests\windowsruntimecomponent1\windowsruntimecomponent1\class1.h(7) : see declaration of 'WindowsRuntimeComponent1::IA::ID::get'
1>c:\dev\tests\windowsruntimecomponent1\windowsruntimecomponent1\class1.h(16): warning C4570: 'WindowsRuntimeComponent1::B' : is not explicitly declared as abstract but has abstract functions
1>c:\dev\tests\windowsruntimecomponent1\windowsruntimecomponent1\class1.h(20): error C2259: 'WindowsRuntimeComponent1::B' : cannot instantiate abstract class


Now I can fix it by rewriting B as follows
C++
ref class B : A, public IB
{
public:
    virtual property int ID { int get() override { return A::ID; } }
};


But that's quickly becoming cumbersome with a big hierarchy. Isn't there a way to avoid repeating all parent interface members?
My programming get away... The Blog...
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!

AnswerRe: WinRT C++ inheritance problem Pin
Richard MacCutchan15-Oct-13 21:33
mveRichard MacCutchan15-Oct-13 21:33 
GeneralRe: WinRT C++ inheritance problem Pin
Super Lloyd16-Oct-13 0:42
Super Lloyd16-Oct-13 0:42 
AnswerRe: WinRT C++ inheritance problem Pin
Super Lloyd16-Oct-13 0:42
Super Lloyd16-Oct-13 0:42 
QuestionWindows 8 Antivirus Pin
Gil-B9-Oct-13 14:26
professionalGil-B9-Oct-13 14:26 
QuestionRe: Windows 8 Antivirus Pin
Richard MacCutchan9-Oct-13 21:04
mveRichard MacCutchan9-Oct-13 21:04 
JokeRe: Windows 8 Antivirus Pin
Pete O'Hanlon9-Oct-13 22:15
mvePete O'Hanlon9-Oct-13 22:15 
GeneralRe: Windows 8 Antivirus Pin
Richard MacCutchan9-Oct-13 22:54
mveRichard MacCutchan9-Oct-13 22:54 
AnswerRe: Windows 8 Antivirus Pin
Gil-B10-Oct-13 0:09
professionalGil-B10-Oct-13 0:09 
GeneralRe: Windows 8 Antivirus Pin
Richard MacCutchan10-Oct-13 0:35
mveRichard MacCutchan10-Oct-13 0:35 
AnswerRe: Windows 8 Antivirus Pin
David.Moore8718-Dec-13 5:19
David.Moore8718-Dec-13 5:19 
AnswerRe: Windows 8 Antivirus Pin
Joan M15-Jun-14 16:53
professionalJoan M15-Jun-14 16:53 
NewsGrouper app released Pin
Yvan Rodrigues12-Sep-13 3:34
professionalYvan Rodrigues12-Sep-13 3:34 
QuestionPowershell script Pin
sumith sudesan27-Aug-13 22:51
sumith sudesan27-Aug-13 22:51 
AnswerRe: Powershell script Pin
Richard MacCutchan28-Aug-13 1:09
mveRichard MacCutchan28-Aug-13 1:09 
QuestionWin'8 will not remove bluetooth device Pin
C-P-User-330-May-13 8:54
C-P-User-330-May-13 8:54 
QuestionWin8 Metro Desktop App Pin
anandopaul16-Apr-13 23:49
anandopaul16-Apr-13 23:49 
AnswerRe: Win8 Metro Desktop App Pin
dusty_dex17-Apr-13 0:48
dusty_dex17-Apr-13 0:48 

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.