While everything works fine on OSX Lion, I have trouble running my code on Win7.
Basically, the problem is that a call to SCardGetStatusChange(hcontext, INFINITE, newstates) does not wait for changes in Win7. The state that is returned has the SCARD_STATE_CHANGED flag activated, but it has *not* changed (ie. no flags have been changed).
When I inspect the integer value of my state, I remark that this value is probably too big (e.g., 1114146, 1115170, ...). Moreover, that value keeps growing when the program runs.
Is this behavior caused by 32 vs 64 bits issues ? Can I force my program to use 32 bits versions of DLLs ?
Thanks for your help,