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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Instanciate 2 objects

Status
Not open for further replies.

FoxWing

Programmer
Dec 20, 2004
44
GB
Hi,

I have a class declaration as follows:

DEFINE CLASS C24x7 AS Custom OLEPUBLIC
..
.. some codes here
..
ENDDEFINE

But, when i try to instanciate to objects from this class on command window,
o = CREATEOBJECT("Uniware.Pay24x7.C24x7") <-- ok
b = CREATEOBJECT("Uniware.Pay24x7.C24x7") <-- error

OLE Error code 0x80040111: ClassFactory cannot supply requested class.


What did i miss here ?

Please advice.


 

Is it compiled as a COM exe or "multitreaded" dll?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
FoxWing,
Please remember that A -> J (and M) are special "variables" that FoxPro reserves. If you had used:
Code:
oA = CREATEOBJECT("Uniware.Pay24x7.C24x7")
oB = CREATEOBJECT("Uniware.Pay24x7.C24x7")
All would be well!

Rick

 
Hi

It's working now..It was due to the single thread dll. When i compile it to Multithread dll, it works fine.

Thanks guys.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top