Testimonials from french user - Portability of PureBasic

Everything else that doesn't fall into one of the other PB categories.
Maitre_Kanter
User
User
Posts: 84
Joined: Mon Sep 06, 2010 3:05 pm

Testimonials from french user - Portability of PureBasic

Post 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 !
Last edited by Maitre_Kanter on Thu Mar 17, 2016 10:14 pm, edited 1 time in total.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Testimonials for french user - Portability of PureBasic

Post by jack »

yes, Fred has done amazing amount of work. :)
Post Reply