Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewObject not Working Properly...
Message
 
 
To
11/07/2002 17:37:43
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00677772
Message ID:
00677780
Views:
25
When the third parameter (.EXE or .APP) is specified, the second parameter can be class library (.VCX) only.

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform