Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel variables and VFP
Message
 
À
31/08/2004 16:08:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00937401
Message ID:
00938439
Vues:
24
1. I have created a project called myVFPprocc.pjx

2. With a prg file called procs.prg with this code
Define Class myFormatter As Session OlePublic
    DataSession=2
    Procedure FormatPrice(tcInStr As String) as String
    Return 'VFP formatted '+m.tcInStr
Endproc
Enddefine
*
PROCEDURE FormatPrice(tcInStr)
* code for this procedure
EndProc
3. I built this prg into a DLL called myVFPprocs.DLL

4. Then with a small prg in VFP, tried to test like this
  RELEASE ALL LIKE o*
  oVFP = CreateObject("myVFPprocs.DLL")
  myValue = -40512.39485769
  myNumber = oVFP.FormatPrice(myValue)
  WAIT WINDOW TRANSFORM(myNumber)
  oVFP.quit
  RELEASE ALL LIKE o*
5. However, I get an error "Class definition myVFPproc.dll not found" Am I making some kind
of very obvious mistake?
Thanks so much
Steve Elster
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform