Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to impement an external DLL in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01624395
Message ID:
01624487
Vues:
83
J'aime (1)
>>>Hi Gang!
>>>
>>>Hate to bother you today.
>>>
>>>We have been told to recode our EZSIGN application (written in VFP 9.0 SP1). We have to use the RBA_SDK dll's to implement it.
>>>
>>
>>The Ingenico RBA SDK isn't meant to be used as a COM object - it can only be used from .NET. I ended up writing a wrapper around it then used wwDotNetBridge to call into my wrapper.
>
>Do you have any advice on how to do this? This is a whole new world for me !
>
>Thanks!

They have a small desktop app written in C# against the library - that's actually a better place to start since it shows you how some of the calls need to be formatted. Just realize it doesn't show everything you might need to do. Use it in conjunction with their other test application (no source code, but it gives you access to more functionality and shows the messaging). They have stuff scattered all over the docs so for some functionality it's really hard to find out the correct messages to send. I ended up contacting Ingenico support - it's pretty good (although a bit slow at times) and they were able to point me in the right direction for some of my questions.

My approach was: use both desktop apps (C# and test app) to investigate functionality, then write C# code in a class library that did what I wanted it to do (since that becomes the API I use from VFP). Then I created a console app to make it easier to test the functionality from .NET. Once that was working I used wwDotNetBridge to load the assembly and call my API (that part is easy). If you're not already a .NET dev you might have a bit of a learning curve, though.

Drop me an e-mail: paulm@rcs-solutions.com and I can get a bit more specific.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform