Information générale
Catégorie:
Contrôles ActiveX en VFP
Not sure that I correctly understood you, but I'll try to answer.
>So for all my public, UDF and declare function which cannot be use in VB DLL,
>do I declare them to be private in my class declaration section ?
>
>What about declaration of DLL that I need to access to
>like below, do I declare them to be private in the
>class declaration section too ?
>
>Like :
>Public DECLARE ABC IN 'xxx.dll'
>
>To:
>Private declare ABC in 'xxx.dll'
In VFP your VB dll must not be declared. If you want to provide access to another dll using your VB dll, then you can declare functions in VB as private:
Private Declare Function ABC Library "xxx.dll"
Public Function Class_ABC
Class_ABC = ABC()
End Function
>Finally, why COM DLL created in VB can be access by VFP
>by creating an instance whileas other DLL we can access it
>by DECLARE command. How do we tell them apart ?
There are two different types of DLLs (not including .NET). To distinguish them you can use, for instance, Depends program from Visual Studio. COM DLLs usually have 4 exported functions: DllCanUnloadNow, DllGetClassObject, DllRegisterServer and DllUnregisterServer. You can also try to register DLL using regsvr32 utility. You'll get an error for non-COM DLL.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement