Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Createobject problem

Status
Not open for further replies.

foxbldr

Programmer
Apr 16, 2002
109
CA
Hi,

I am using LeadTools' eprint com server in VFP8. When I used following in my application, I am geeting error. What am I doing wrong?

oEprint=CreateObject("lteprintlib.leadeprint")

error: class definition "lteprintlib.leadeprint" not found.

I regeistered DLLs.

Thank you all in advance.
Foxbldr

 
Sounds like the automation class 'lteprintlib.leadeprint' is not really registered or your using the wrong syntax.
( look in the registry to see if it's actually there)

If every thing is as it should be, you should contact the class provider for help.

Darrell
 
Darrel,

When I view details of DLL with VFP object browser, it displays "ltePrintLib" as type library and under classes it displays "leadprint" as a class.



Foxbldr
 
Hi Foxbldr,

well, there you have it yourself:

It should be
"ltePrintLib.leadprint", not
"ltePrintLib.leadeprint"

In general: Start regedit and search for "comserver.class", if you don't find a ProgID entry, that OLE class is not registered...

Bye, Olaf.
 
Darrel/Olaf,

I looked for PROGID in registry and it worked. Actually, I used VersionIndependantProgId.


Thanks
Foxbldr

 
Hi Foxbldr!

foxbldr said:
Actually, I used VersionIndependantProgId

Yes, that's a good idea, that will always use the newest version. So if you upgrade the lte print lib that means no code changes (despite of maybe some for new functionality).

Glad it helped.

Bye, Olaf.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top