Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewObject not Working Properly...
Message
From
11/07/2002 17:37:43
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
NewObject not Working Properly...
Miscellaneous
Thread ID:
00677772
Message ID:
00677772
Views:
57
Hi,

I have been trying to implement a functionality with the newObject() command and it is not working. Please try this

* Create a Program called myClassPrg.Prg and type the following code in
* Compile this into ClassPrg.Exe
* Move to a different Folder
* Type obj=Newobject("myClass","myClassPrg.Prg","ClassPrg.Exe")
This gives me an Error saying myClassPrg.Prg is not found.

* Now move to the folder where ClassPrg.Exe was created
* Type the same thing. And it Works.

* But now if you had placed myClassPrg.Prg other than where ClassPrg.Exe was placed, you get the same error.


*: myClassPrg.Prg
Define Class myClass As Custom
Procedure SHOWME
Wait Wind
Return
Endproc
Enddefine


Can anyone give an answer/solution?

If I set procedure to ClassPrg.Exe, everything works, but I don't want to do that.

TIA
Solutions: when you want it, as you want it!
Next
Reply
Map
View

Click here to load this message in the networking platform