Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot create object of MT DLL Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01001310
Message ID:
01001384
Vues:
12
>You'll need to create a new method that sets path, opens the database, etc., then move the code from the Init to that method.

I ran another test: I created the simplest form of OLE Public class as follows.
define class TestClass as Session OLEPUBLIC
enddefin && TestClass
Then built a DLL, copied to the Test Dir and registered it. I get the same error message when I try to CreateObject. It seems to be a global problem. On the other hand, this code works:
o = CREATEOBJECT("visualfoxpro.application")
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform