Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Foxpro DLL in Visual Basic
Message
De
27/08/2004 04:19:40
 
 
À
26/08/2004 20:57:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00936202
Message ID:
00936903
Vues:
25
OK, I see the difference. So if I define something like:
DEFINE CLASS myForm AS Form OLEPUBLIC
   Height = 100
   Width  = 200
   ADD OBJECT edtBox AS editbox WITH ;
        Height = 75             , ;
        Left   = 6              , ;
        Top    = 6              , ;
        Width  = 200 - ( 2 * 6 ), ;
        Name   = "edtBox"
ENDDEFINE
... and if I create a project that compiles into an executable, the class "myForm" would be known as a COM object, usable in VB for example. Did I grasp the thing?

Pat


>There are two types of COM components, DLLs and EXEs. Any DLL created with VFP cannot have UI. Any EXE can.
>
>>
>>Hello Craig,
>>
>>I am confused with what you said ... but maybe it's simply me! You're saying that VFP COM DLLs cannot have any UI. But lately, I got a reply on the UT, saying that we can expose forms as COM objects (but I haven't got the time to test it yet and I am not using this a lot for now). Can you elaborate on this?
>>
>>Pat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform