Hi ,
To all who are interested about getting ocf and pocket pc to work together
, here my story so far .I am using an ipaq with the jeode VM (which I've
used before and found it quite good) an pcmcia jacket for the ipaq and the
omnikey cardman 4000 pcmcia card reader , which supports pc/sc on the
pocket pc platform .All the ocf java classes seem to be compatible with
personal java , so that only changes needed are to the ocfpcsc1.dll
(unfortunately , i have very little experience with cpp ) . I recompiled
the ocfpssc1.cpp with embedded c++ (winscards.lib for embedded c++ was not
included and a third party sent it to me) . After compiling there were a few
error , the cause for each error the same
." cannot convert from 'const char *' to 'const unsigned short *' "
Just for a test I complied the code using visual c++ for 98/NT and there
was no problems
Here an small part of the ScardConnect wrapper method that gives this
problem .
const char *readerUTF;
/* get the readers friendly name as 8bit code */
readerUTF = env->GetStringUTFChars(jReader, NULL);
/* get a connection to the card */
returnCode = SCardConnect( (SCARDCONTEXT)context,
readerUTF,
(DWORD)jShareMode,
(DWORD)jPreferredProtocol,
(LPSCARDHANDLE)&cardHandle,
(DWORD *)&activeProtocol);
gives the error
error C2664: 'SCardConnectW' : cannot convert parameter 2 from 'const char
*' to 'const unsigned short *'
I tried to cast char* to short* , which removed the compliers error , but of
course didn't solve the real problem .Since I have little experience in cpp
, I would appreciate any ideas any body might have to solve this problem.
Thanks
Jim
----- Original Message -----
From: "Karl Scheibelhofer" <[EMAIL PROTECTED]>
To: "'jimmy coyne'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 19, 2002 5:25 PM
Subject: RE: [OCF] ocf + pocket pc
> hi,
>
> i would be interested, if you get this working. i would try to recompile
> the PC/SC wrapper for WinCE, because since WinCE 3.0 PC/SC is included
> per default. thus, you should be able to get a PCMCIA reader like
> SCM-microsystems to work. finally, you have to choose a Java VM. there
> are several available.
> may i ask, with which cards and card services you are working?
>
> please let me know, if you are successful.
>
> regards
>
> Karl
>
> > -----Original Message-----
> > From: jimmy coyne [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 18, 2002 6:41 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OCF] ocf + pocket pc
> >
> >
> > Hi all,
> > Has any body ever managed to get ocf working with a pocket pc
> > device? Any thoughts on what has to be done to ocf to get it
> > to work? Thanks
> >
> > Jimmy Coyne
> > Engitech Ltd.
> > Block 20D (2nd Floor)
> > Park West Business Park
> > Dublin 12
> > +35316204515
> >
> >
> >
> > ---
> > > Visit the OpenCard web site at http://www.opencard.org/ for more
> > > information on OpenCard---binaries, source code, documents.
> > This list
> > > is being archived at http://www.opencard.org/archive/opencard/
> >
> > ! To unsubscribe from the [EMAIL PROTECTED] mailing list
> > send an email ! to
> > ! [EMAIL PROTECTED]
> > ! containing the word
> > ! unsubscribe
> > ! in the body.
> >
> >
> >
>
>
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
>
> ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
> ! to
> ! [EMAIL PROTECTED]
> ! containing the word
> ! unsubscribe
> ! in the body.
>
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.