Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class implenting interfaces off of the same project
Message
From
17/03/2004 22:13:02
 
 
To
17/03/2004 13:28:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00887187
Message ID:
00887378
Views:
13
Hi, Claudio.

>Let's say I have two classes in the same PRG, and they're compiled in the same project (DLL).
>
>One of these classes is implementing an interface exposed by the other class (using the IMPLEMENTS keywords and the progID of the class).
>
>It turns out that I cannot build the project because the TLB isn't created yet, so the compiler complains it cannot find the TLB for that interface.
>
>One way to solving this is to compile the project to a second DLL, and then have the first DLL refering to the second. However, this is pretty dumb.

As far as I know, you have to use two separated DLLs, as an interface is based on the vtable of the target DLL. I mean you need to access the other one's Type Library.

Why do you need to put both on the same DLL? It is just a matter of saving the quantity of DLLs?

See you (in a couple weeks? Seattle?),
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform