Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Build-error on NewObject
Message
De
14/07/2003 03:33:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00809221
Message ID:
00809742
Vues:
24
Thanks Sergey, but when I use your syntax, I get a message saying the "Opendll.dll" does not exist?
I used : newobject("Opendbf","Opendbf","Opendll.dll")
If I try : ? file("Opendll.dll"), VFP returns true ???

Any idea?

Hi Guillaume,

The second parameter should be the name of a class and the third - the name of DLL.
Newobject("method", "myclass.vcx", "DllName.dll"),

>I compiled a DLL from VFP which opens tables to use in my other apps.
>In those apps, if I use Newobject("method","DllName.dll"), I always get an error while building saying that the DllName visual class was not found.
>But, it works fine.
>
>If I use newobject("DllName.Method") I get no build errors but it doesn't work anymore.
>Same thing when i use CreateObject.
>
>Is there anyway to avoid the build error while still using the only syntax that works?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform