Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a class in a program in another Foxpro exe
Message
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966698
Message ID:
00967107
Views:
16
Hi Sergey

Does that mean that you can't call a class in another EXE if it's stored in a program file (prg), but you can if it's stored in a VCX?

John

>The third parameter in NEWOBJECT only works with VCX classes.
>
>>I am trying to call a class, which is stored in a program in another Visual Foxpro EXE.
>>
>>The class is called Testclass, which is in a program called Test.prg, which is compiled into an EXE called MyTestProgram.Exe.
>>
>>When I try running the following code I receive the follow error "File Test.prg does not exist".
>>
>>
>>oTest = NEWOBJECT("TestClass","Test.prg","MyTestProgram.exe")
>>
>>
>>
>>Both programs are in the same folder. I have also tried using the full path to MyTestProgram but still receive the above error.
>>
>>I seem to be able to call a class that’s stored in a vcx but not in a program file (prg).
>>
>>Because the class will always be called from another Visual Foxpro exe I don’t want to make the program into a com server.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform