>>> IFileType ^ft = reinterpret_cast<IFileType ^>
>>> Activator::CreateInstance(Type::GetType("Workspace.FileType,
[quoted text clipped - 6 lines]
> Workspace.IFileType. That confuses me since FileType inherits from
> IFileType.
How is TextFile defined?
--
SvenC
>> Hi,
>>
[quoted text clipped - 19 lines]
> Workspace.IFileType. That confuses me since FileType inherits from
> IFileType.
Where is IFileType defined? To share the interface, best practice usually
involves putting all of your interface definitions in a DLL that's separate
from both the callers and the implementors. If you've simply repeated the
same interface definition in each assembly, then you actually have several
distinct types, all with the same name - but the CLR considers them to be
distinct types with no inheritance relationship, so you can't cast between
them.
-cd
ewpatton@gmail.com - 24 Jun 2007 17:34 GMT
On Jun 24, 9:50 am, "Carl Daniel [VC++ MVP]"
<cpdaniel_remove_this_and_nos...@mvps.org.nospam> wrote:
> ewpat...@gmail.com wrote:
> >> Hi,
[quoted text clipped - 30 lines]
>
> -cd
Ah... well that explains it. Makes me miss the old days of just
casting it to a void * and back.
Evan