Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correct way of defining a DLL
Message
De
20/11/1997 09:20:50
 
 
À
18/11/1997 18:21:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00061057
Message ID:
00061363
Vues:
32
>I have defined a DLL to be used in Visual Basic.
>
>I created a project and created a class form to be added. That class is defined as OLE public. However, to compile a project, we need to have a master program, so I created a one line comment program. Now, I can compile by DLL. I then registered the DLL in the registry.
>
>However, from Visual Basic, even if I can now see my DLL, I can't assign a property to it to using the DIM command. Is it possible I did something wrong in Visual FoxPro? Is it ok to define a DLL which is a form class? Do I have to do something special in my master program which only has a comment at this point?

I've always had luck using late-binding:

DIM o AS OBJECT
SET o = CREATEOBJECT('filename.class')

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform