Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a class in a program in another Foxpro exe
Message
 
 
À
06/12/2004 07:31:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966698
Message ID:
00967115
Vues:
18
Hi Cetin

Do you have a link to the thread?

John


>>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.
>>
>>Any ideas?
>>
>>Thanks for any help.
>>
>>John
>
>John,
>In exe be sure prg is compiled into exe. Check for a thread about it (Thread starter was Michel Fournier). There I provided sample as I remember. It works with prg classes too.
>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform