winscard.lib(WinSCard.dll) : fatal error LNK1112: module machine type 'X86'
conflicts with target machine type 'SH4'
How does one get a hold of the proper version of the this library?
Next to the fact that there is an SP4 for Embedded Visual C++ 4.0 (maybe
a typo?) this probably has got something to do with your project settings.
Check your linker settings. I can remember I had these kinds of issues
when adding another configuration to my project and this is not handled
correctly by EVC.
This links provides some info (but this is about VS2005):
http://msdn.microsoft.com/en-us/library/ms838270.aspx
http://msdn.microsoft.com/en-us/library/ms838254.aspx
Good luck,
Erwin Zwart,
Check out my blog: http://GuruCE.com/blog
GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
Norbert schreef:
Is there an SDK I've missed (that includes the 'CE Version' of winscard.lib)?
Thanks
What SDK are you using? Are you using the specific one for your device
provided by the OEM?
The error message you've mentioned that you targeting against the wrong
libs.
In the links I provided there is mentioned what to change when you get
this error. Although this is indeed VS2005, try modify your linker
settings in your EVC project according to that, or...
Create a simple helloworld application, build it and deploy it. When
this is successful, compare your project settings with the project which
give you this error......
What I was trying to figure out here is this: Do I need to install anything
else (beyond the studio) in order to build an app to run on CE 4.2? I didn't
see a Wndows CE SDK of any sort in my MSDN downloads. I'll look for a bit
longer.
I guess I need to just ask the manufacturer for their SDK. Winscard.dll is
a Microsoft DLL, I figured it would come bundled with a Microsoft studio or
SDK (not provided by a third party).
Paul T.
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:74EE3A9F-3912-41E3...@microsoft.com...
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:74EE3A9F-3912-41E3...@microsoft.com...
Ok, so you are saying that the missing wincard.lib would typically reside in
an SDK provided by the device manufacturer.
I've also been told that the target smart card reader runs WinCE 4.2 and
doesn't have an SDK ( "No target reader API it uses winscard").
Tell us how this is supposed to work. You started out compiling for x86.
Why? Where did this code come from? Are you sure that it's even targeted
at Windows CE and not desktop Windows?
Paul T.
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:41E02211-3B20-40E0...@microsoft.com...
Win32 (WCD SH4) Release
Win32 (WCD SH4) Debug
In project Settings->Preprocessor Definitions:
SHx,SH4,_SH4_,UNDER_CE=$(CEVersion),_WIN32_WCE=$(CEVersion),$(CePlatform),UNICODE,_UNICODE,NDEBUG,_AFXDLL
The workspace/project are .vcw/.vcp files, not .dsw/.dsp files.
Was the person I spoke with incorrect in that there should be an SDK for
this device wherein I will find the missing winscard.lib?
Hope this helps,
Thank you.
According to the DataStrip Web site, the device appears to be running CE5,
so you have an old one? I agree that they don't make it clear where you get
an SDK for the device (I don't suppose it came with a CD?)
Paul T.
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:26C5AC1A-2F1C-4144...@microsoft.com...
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:26C5AC1A-2F1C-4144...@microsoft.com...
Last Question: Is there a CE 4.2 SDK? I would think it would contain the
winscard.lib. I didn't see in my list of downloads under my MSDN
subscription. If so, I could at least compile this code.
Thanks so much
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:177D87B1-D1B1-4579...@microsoft.com...
Where are you getting the headers to compile with? You can't use desktop
Windows headers to compile for a Windows CE device!
Paul T.
"Norbert" <Nor...@discussions.microsoft.com> wrote in message
news:177D87B1-D1B1-4579...@microsoft.com...
Thanks for all the help. This forum is very helpful.