Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewObject not Working Properly...
Message
De
11/07/2002 17:37:43
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
NewObject not Working Properly...
Divers
Thread ID:
00677772
Message ID:
00677772
Vues:
56
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform