Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Error Code 0x800200009 after create object
Message
From
21/11/2012 17:58:26
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01557799
Message ID:
01557803
Views:
41
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform