Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Error Code 0x800200009 after create object
Message
De
23/11/2012 15:46:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01557799
Message ID:
01557883
Vues:
31
>>>I'm trying to create a multi-threaded DLL that will be used to pass a dataset to C# .NET via XML. I have created my .DLL in VFP and then I went to test it by issuing this command from the command window:
>>>
>>>
>>>oDemo = CREATEOBJECT("comtest.VFPCom")
>>>
>>>
>>>After issuing that command I get an OLE Error. I'm not sure there is enough in that error for anyone to know what I'm doing wrong, but I was wondering if anyone has any pointers on how to debug a COM server like this?
>>
>>Have you tried AERROR() to find out what error the server is throwing? Also, consider using COMReturnError() in the DLL's error handler to get detailed info back.
>>
>>Tamar
>
>
>Hi Tamar,
>
>Since my original post I have created an Error procedure in my project which I have placed inside the define for my OLEPUBLIC class. But it doesn't appear that when I try testing it in VFP with the CREATEOBJECT that it even gets to my error handler code. It is given the OLE error before that even occurs. Any other thoughts would be greatly appreciated.

What happens if you try to instantiate your class as a regular VFP class, not an OLEPublic? That is, use CREATEOBJECT() or NEWOBJECT() directly on the class.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform