Page 1 of 1

Testimonials from french user - Portability of PureBasic

Posted: Wed Mar 16, 2016 6:10 pm
by Maitre_Kanter
Dear all,

I shall wish to speak to you about my experiment on Purebasic on Windows / MacOSX (El Capitan).

My name is Arnaud and I'm french. Ten years ago, I bought Purebasic Licence and I started to implement a lot of things for windows (e.g. an ePassport Reader using windows PC/SC layer, crypto tools, asn.1 parser, database...)

Since few weeks I decided to start new dev using Purebasic Module for PC/SC interface using WinScard.dll (32 and 64 bits).

Today, my Module is ready and works perfectly but I'm disappointed because I would like to take advantage of the amazing portability of Purebasic but I don't know how to use the methods/interfaces/libraries for MacOSX with PCSC.

Accidentally, yesterday I read on a website the following:
on MacOSX you have to set the following flags "-frameword PCSC" in GCC to use PC/SC layer.
I simply write the following for MacOSX in my PB file:

Code: Select all

  Import "-framework PCSC" 
    SCardEstablishContext	( dwScope.DWORD , *pvReserved1 , *pvReserved2 , *phContext )
  EndImport
Instead of, for Windows,

Code: Select all

  Import "WinScard.lib" 
    SCardEstablishContext	( dwScope.DWORD , *pvReserved1 , *pvReserved2 , *phContext )
  EndImport
And has my great surprise, it is working !!!!!!!!!!!!!!!!!!!!!!!

I love you Purebasic !

Re: Testimonials for french user - Portability of PureBasic

Posted: Wed Mar 16, 2016 6:28 pm
by jack
yes, Fred has done amazing amount of work. :)