You may want to try out the attached patches. In addition, get the winscard.h from MS Platform SDK and pthreadVC.lib from redhat.
There is a change in thread_generic.h that I am not sure:
//#ifdef win32 #if 0 #define PCSCLITE_THREAD_T HANDLE #define PCSCLITE_MUTEX CRITICAL_SECTION #define PCSCLITE_MUTEX_T CRITICAL_SECTION*
#else #define PCSCLITE_THREAD_T pthread_t #define PCSCLITE_MUTEX pthread_mutex_t #define PCSCLITE_MUTEX_T pthread_mutex_t* #endif
The original win32 defines caused some warnings. As pthread should work on Win32, I changed the code as above.
Rgds. Martin
Gambin Dejan wrote:
Thanks Damien, I know for Windows version, but I have problems in running it on some Win2000 machines and I couldn't find the solution..
Thanks anyway
Regards,
Dejan Gambin
-----Original Message-----
From: Damien Sauveron [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 3:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [Muscle] PCSC Lite For Windows
Hi,
You have a windows version of MuscleCard for Windows 2000 on [1]. But I
don't think that you may compile all the code of PC/SC Lite on a Windows. There are many parts that may be impossible to work on a windows (e.g USB handling, ...).
[1] http://www.linuxnet.com/musclecard/files/installMuscle.exe
Regards,
Damien Sauveron
Gambin Dejan wrote:
Hello,
Has anybody built PCSC Lite on Windows? I am having problems with MuscleCard on ma Windows 2000 machine and I wanted to create and debug
musclecard.dll by myself (using Visual Studio). So I have downloaded PCSC Lite sources trying to create dll from the them, but there were too many errors and problems.
I would appreciate if I get any suggestions...
Regards
Dejan Gambin
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle
File difference report generated by CSDiff by ComponentSoftware on 9/25/2003 2:50 AM
Base file: G:\MyCodes\pcsc-lite\org\pcsc-lite-1.2.0-rc2\src\tokenparser.c Compared file: G:\MyCodes\pcsc-lite\pcsc-lite-1.2.0-rc2\src\tokenparser.c 30a31 > #include <stdlib.h> 1617c1618,1619 < #include "debuglog.h" --- > > #ifndef WIN32 1618a1621,1626 > #else > #include "../win32/win32_config.h" > #endif > > #include "debuglog.h" > //#include "config.h" <--------------------- End of report --------------------->
File difference report generated by CSDiff by ComponentSoftware on 9/25/2003 2:51 AM Base file: G:\MyCodes\pcsc-lite\org\pcsc-lite-1.2.0-rc2\src\musclecard.h Compared file: G:\MyCodes\pcsc-lite\pcsc-lite-1.2.0-rc2\src\musclecard.h 26c26,27 < #include "PCSC.h" --- > //#include "PCSC.h" > #include "../win32/PCSC.h" <--------------------- End of report --------------------->
File difference report generated by CSDiff by ComponentSoftware on 9/25/2003 2:50 AM Base file: G:\MyCodes\pcsc-lite\org\pcsc-lite-1.2.0-rc2\src\thread_generic.h Compared file: G:\MyCodes\pcsc-lite\pcsc-lite-1.2.0-rc2\src\thread_generic.h 19,20c19,20 < #include "PCSC.h" < --- > #include "../win32/PCSC.h" > #include "../win32/pthread.h" 22d21 < #include <pthread.h> 23a23 > #include <pthread.h> 31c31,32 < #ifdef WIN32 --- > > #if 0 // disabled to suppress warning. pthread should compile with win32 <--------------------- End of report --------------------->
File difference report generated by CSDiff by ComponentSoftware on 9/25/2003 2:51 AM Base file: G:\MyCodes\pcsc-lite\org\pcsc-lite-1.2.0-rc2\src\thread_unix.c Compared file: G:\MyCodes\pcsc-lite\pcsc-lite-1.2.0-rc2\src\thread_unix.c 15a16,17 > #include "wintypes.h" > #include "pcsclite.h" 17a20 > #include "win32_pcsclite.h" 20,21d22 < #include "wintypes.h" < #include "pcsclite.h" <--------------------- End of report --------------------->
File difference report generated by CSDiff by ComponentSoftware on 9/25/2003 2:49 AM Base file: G:\MyCodes\pcsc-lite\org\pcsc-lite-1.2.0-rc2\src\musclecard.c Compared file: G:\MyCodes\pcsc-lite\pcsc-lite-1.2.0-rc2\src\musclecard.c 89c89,90 < int i, strLoc; --- > MSCULong32 i; > int strLoc; 364c365 < pConnection->ioType = SCARD_PCI_T0; --- > (const SCARD_IO_REQUEST *) pConnection->ioType = SCARD_PCI_T0; 367c368 < pConnection->ioType = SCARD_PCI_T1; --- > (const SCARD_IO_REQUEST *) pConnection->ioType = SCARD_PCI_T1; 370c371 < pConnection->ioType = SCARD_PCI_RAW; --- > (const SCARD_IO_REQUEST *) pConnection->ioType = SCARD_PCI_RAW; 591c592 < int i; --- > MSCULong32 i; 734c735 < MSCLong32 curToken; --- > MSCULong32 curToken; 1432c1433 < int i; --- > MSCULong32 i; 1478c1479 < objectSize % MSC_SIZEOF_KEYPACKET); --- > (MSCUChar8) (objectSize % MSC_SIZEOF_KEYPACKET)); 1504c1505 < int i; --- > MSCULong32 i; 1551c1552 < objectSize % MSC_SIZEOF_KEYPACKET); --- > (MSCUChar8) (objectSize % MSC_SIZEOF_KEYPACKET)); <--------------------- End of report --------------------->
