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

Click here to load this message in the networking platform