Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Calling a VFP Dll From VFP COM Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00809820
Message ID:
00809833
Vues:
54
>Hi All.
>
>I've been dinking around with a COM server that I wrote in Visual Foxpro 8. It works beautifully except when it gets to the part where it tries to instantiate a VFP 6.0 Dll I created. The code is quite simple in the COM server, it looks something like:
>
>ObjDllClass = CreateObject("MyDll.MyDllClass")
>IF TYPE('ObjDllClass') <> 'O' THEN
> MESSAGEBOX("COULD NOT INIT DLL CLASS!")
>ENDIF
>
>When I compile this COM server and try to use I get:
>
> OLE error code 0x80004005: Unspecified Error
>
>I know its the line of code that is calling the CreateObject method because I've commented that line out and I do not receive the error anymore.
>
>Is it possible that you just can't call a VFP-created dll from a VFP created COM Server?

Nope, I've done it many, many times myself. First, as Larry mentioned, the 6.0 runtimes have to be available. Second, why not simply re-compile in 8.0 (provided, of course you're not using any of the newly reserved keywords and property names)?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform