Hello, I am new in programming smart cards and I got an error in
compiling that I cannnot manage to get rid of.
There is a function in the PCSC that is called
"ScardEstablishContext"
I am calling this function as
SCARDCONTEXT hSC; //SCARDCONTEXT=unsigned long
hResult=ScardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL,
&hSC)
If a define hSC as an internal variable of a method and then insisde
this method call ScardEstablishContext there is no problem and it
works. The problem is that afterwards there are some more functions
where I have to pass the parameter hSC.
So I want to define hSC as a private attribute of a class and then
modify its value inside a function.
The problem with this is that I got the following compiling error:
error C2664: ScardEstablisContext can not convert SCARDCONTEXT__gc* to
LPSCARDCONTEXT
It seems the compiler changes the type, although I defined the private
attribute as I did when defining it as a local variable.
I have tried casting and defiining as unsigned long but nothing works.
Please help me!!!!!!!!
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com