Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class implenting interfaces off of the same project
Message
 
 
À
17/03/2004 13:28:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00887187
Message ID:
00887378
Vues:
14
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?),
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform