Jump to content

Interface inheritance problem


photo

Recommended Posts

Hi,

In the attached sample, executed in:

Binary: Windows 64bit Visual C++ 1600 Release Jun 4 2014 r14513

---- System ----

System: Windows 8 (build 9200) 64bit
CPU: Intel® Core i7 CPU 960 @ 3.20GHz 3238MHz MMX SSE SSE2 SSE3 SSSE3 SSE41 SSE42 HTT x4
GPU: NVIDIA GeForce GTX 560 Ti 9.18.13.3750 x1
System memory: 22526 MB
Video memory: 1024 MB
 
When the 'z' key is pressed all the elements in the intances array must execute IMyInterface::foo(), the problem is CClass instance is not recognized as a class implementing IMyInterface despite it inherits the BClass that it does.
I think is not a good solution to have to redeclare the interface for all the descendant classes (the current workaround I used)
 
Best regards,
Iván.

interface_bug.cpp

interface_bug.world

Link to comment
×
×
  • Create New...