Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL written in VB for VFP use problem
Message
De
10/02/2003 08:53:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00751315
Message ID:
00751353
Vues:
12
Hi,

Thank a lot for your advise and help.
Just like to check the following issue.

Initially, all my function are declare to be public,
with UDF and declaration to access another DLL which I
converting to be a VB DLL for VFP use.

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'


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 ?



>Hello,
>
>>I am compiling an DLL written using VB6 for VFP6 use.
>>My VFP6 application just need to call a few function,
>>but insteads it give 'cannot find entry point in xxx.dll' error
>>message when I call the function in the DLL. what is wrong, please
>>advise.
>
>Only COM Dlls can be created in VB. So you cannot declare functions in VB Dll. You need to create an instance of class in your Dll and call method of this class:
>MyObj = CreateObject("MyDll.MyClass")
>MyObj.MyFunction()
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform