Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL is not Found
Message
 
À
29/01/2009 16:17:20
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01378274
Message ID:
01378311
Vues:
14
>When I run the code below
>
>Arquivo_Inix = SYS(5) + SYS(2003) + "\SISTEMA.ini"
>loBIBLIO_Ini = CREATEOBJECT("arquivos_ini.dll", Arquivo_Inix)
>
>It returns this error message:
>
>"Class definition ARQUIVOS_INI.DLL is not found."
>
>arquivos_ini.dll is a Multi-threaded COM DLL generated with VFP and is registered.
>I'm also passing a value to the INIT event of the DLL
>
>Any ideia why it doesn't work?
>
>TIA

You shoud not be creating and instance of the DLL, but rather be creating an instance of the class defined in the DLL. What is the name of the class in the DLL?

Assuming for the sake of description that the class name is arquivos_ini then your syntax would be;
Arquivo_Inix = SYS(5) + SYS(2003) + "\SISTEMA.ini"
loBIBLIO_Ini = CREATEOBJECT("arquivos_ini.arquivos_ini", Arquivo_Inix)
The first argument for the createobject function is the name of the dll a dot then the name of the class in that dll you want to instance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform