PayLink - getting started

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
devinashed
Posts: 13
Joined: Wed Oct 18, 2006 9:08 pm

PayLink - getting started

Post by devinashed »

Hi
Novice alert - please be kind.

Have currently got the paylink system (sr3 and cube hopper)
Ran the demo and everything is fine.

I am relativly new to programming, but can usually get what I want done on windows using Borland C++ Builder version 6.0

Have managed to get the example files to compile and run (after converting from MS C++ them via the tools menu under builder)

But as I have never had to deal with dll's before i'm having a few probs
I have my game done, I put the include "Aesimhei.h" statement in the top of my code and can then see all the paylink functions available (under the class explorer)

But it won't compile if I try to call any of the functions..

for example as a test I put a button on a form and call the following code on button click

Code: Select all

long OpenStatus = OpenMHE() ;
Label4->Caption = OpenStatus ;
Get a linker error "Unresolved external 'OpenMHEVersion' referenced from unit1.obj"

I know I must have missed something very simple :oops:

As I said not having delt with dll's before I'm a bit stuck!
Any help appreciated. I'm sure if I get pased this part it'll be plain sailing (hopfully)
devinashed
Posts: 13
Joined: Wed Oct 18, 2006 9:08 pm

Post by devinashed »

Managed to get it working - compiler knew about the Aesimhei but the linker didn't -Doh !!

Could find no way of telling BCB to do this for me so used good old notepad to edit the projects bpr file
added the lib file under the section ALLLIB value.
Job done.

Oh well we all got to start somewhare.
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Post by davebush »

Gald you sorted it.

For future reference if you "View|Project Manager" and then right click the .exe, you get an option "Add..."

In the open dialog you can then select a file type of ".lib"
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply