Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Error Code 0x800200009 after create object
Message
De
21/11/2012 17:58:26
 
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:
01557803
Vues:
42
I've recently been working on a project that uses a COM EXE that runs in a separate process. When updating it I have to make sure to be running VFP "as an administrator", otherwise the build process does not register the COM EXE.

I haven't tried it with a COM DLL or MTDLL but it might work the same way. Easy enough to test, anyways.

>Excellent thought, but when you build the DLL in VFP it registers automatically. I have confirmed it is registered by adding it as a reference in Visual Studio 2012 project. My comtest.dll shows up in the list of registered libraries.
>
>thanks,
>-Don
>
>>I *think* that means you need to register the DLL (use regsrv32.exe)
>>http://support.microsoft.com/kb/249873#method1
>>
>>>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?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform