Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a function within a function in a DLL
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Call a function within a function in a DLL
Divers
Thread ID:
00881388
Message ID:
00881388
Vues:
49
Is it possible to call a function within a function in a DLL?
Example:
DEFINE CLASS myClass AS Custom OLEPUBLIC
FUNCTION calcVolume
PARAMETERS mySide1,mySide2,myHeigh
lnArea=calcArea(mySide1,mySide2)
lnVolume=lnArea*myHeigh
RETURN lnVolume
ENDFUNC

FUNCTION calcArea
PARAMETERS lnSide1,lnSide2
myArea=lnSide1*lnSide2
RETURN myArea
ENDFUNC
ENDDEFINE

After
oVolume=CREATEOBJECT("getvolume.myClass")
and
? oVolume.calcVolume(2,2,3)
in command window I get the following error message

The error message is: OLE IDispatch code 1 from getvolume.myClass
getvolume.myClass: .calcvolume
c:\foxprg\main.prg Error in line 5 File
'calcarea.prg' does not exist. 1..
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform