Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having a problem with CREATEOBJECTEX()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Having a problem with CREATEOBJECTEX()
Miscellaneous
Thread ID:
00903360
Message ID:
00903360
Views:
69
I have an ocx that is registered (or at least shows up in my registry) on my computer.

I can do the following:
loObj = createobject("PCL2PDFDEVLIB.pcl2pdfDevLibCtrl.1")
and that works fine. The "PCL2PDFDEVLIB.pcl2pdfDevLibCtrl.1" was taken straight out of the ProgID value in the registry for the CLSID of {708FC612-F129-11D3-844D-0080C88C9740}.

However, if I try doing the following:
loObj = createobjectex("{708FC612-F129-11D3-844D-0080C88C9740}","192.168.1.1")
(where 192.168.1.1 is my ip address), I get the error:

OLE error code 0x80040154: Class not registered

Any ideas why I can instantiate the object based on it's PROGID but not it's CLSID. I do realize there is a difference in the commands I'm using so it's not entirely apples to apples here; but, doesn't the fact that I can instantiate the object from the PROGID in the registry demonstrate that the ocx is indeed registered?

Thanks for your help!

Rodd
Next
Reply
Map
View

Click here to load this message in the networking platform