Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Include Header file at run time. Pin
zhanzongru19-Apr-09 1:27
zhanzongru19-Apr-09 1:27 
QuestionZip Folder Pin
Davitor17-Apr-09 0:20
Davitor17-Apr-09 0:20 
AnswerRe: Zip Folder Pin
Hamid_RT17-Apr-09 0:27
Hamid_RT17-Apr-09 0:27 
GeneralRe: Zip Folder Pin
Davitor17-Apr-09 1:09
Davitor17-Apr-09 1:09 
GeneralRe: Zip Folder Pin
Rajesh R Subramanian17-Apr-09 3:42
professionalRajesh R Subramanian17-Apr-09 3:42 
GeneralRe: Zip Folder Pin
Hamid_RT17-Apr-09 6:29
Hamid_RT17-Apr-09 6:29 
AnswerRe: Zip Folder Pin
002comp17-Apr-09 0:40
002comp17-Apr-09 0:40 
QuestionWhy do i get this error (Repost)? How can i resolve this issue? Pin
kapardhi16-Apr-09 23:02
kapardhi16-Apr-09 23:02 
Hi,

Can anyone help with using Smart card and winscard.lib in embedded visual c++ (WinCE 5.0).

I am trying to establish context with the smart card resource manager using the following sample code from MSDN.

// Establish the context.
lReturn = SCardEstablishContext(SCARD_SCOPE_USER,
NULL,
NULL,
&hSC);
if ( SCARD_S_SUCCESS != lReturn )
{
-
-
}
else
{
// Use the context as needed. When done,
// free the context by calling SCardReleaseContext.
// ...
}

However, I get the following compiler error:

error LNK2019:: Unresolved external symbol 'SCardEstablishContext ...'.
fatal error: 1 unresolved external(s).

I have included the header file, ie
#include "winscard.h"

and add in the linker option to link the library, ie
Project>>Settings>>SettingsFor (AllConfiguration)>>Input>>Object/LibraryModules

Below this there is an edit box where i specified
winscard.lib
I also gave the path where this library is present in the "Additional library path:" option
"C:\Documents and Settings\Desktop\Sample
the library is present in the sample folder in the desktop

but I still get the error.

Can someone please help me?

Thanks!
AnswerRe: Why do i get this error (Repost)? How can i resolve this issue? Pin
Cedric Moonen16-Apr-09 23:10
Cedric Moonen16-Apr-09 23:10 
GeneralRe: Why do i get this error (Repost)? How can i resolve this issue? Pin
kapardhi16-Apr-09 23:17
kapardhi16-Apr-09 23:17 
QuestionRe: Why do i get this error (Repost)? How can i resolve this issue? Pin
kapardhi17-Apr-09 2:47
kapardhi17-Apr-09 2:47 
QuestionReading from file Pin
Dercio16-Apr-09 22:08
Dercio16-Apr-09 22:08 
AnswerRe: Reading from file Pin
«_Superman_»16-Apr-09 22:20
professional«_Superman_»16-Apr-09 22:20 
AnswerRe: Reading from file Pin
Rajesh R Subramanian16-Apr-09 22:20
professionalRajesh R Subramanian16-Apr-09 22:20 
AnswerRe: Reading from file Pin
Stuart Dootson16-Apr-09 22:28
professionalStuart Dootson16-Apr-09 22:28 
AnswerRe: Reading from file Pin
CPallini16-Apr-09 23:18
mveCPallini16-Apr-09 23:18 
AnswerRe: Reading from file Pin
David Crow17-Apr-09 3:12
David Crow17-Apr-09 3:12 
AnswerRe: Reading from file Pin
zhanzongru19-Apr-09 1:30
zhanzongru19-Apr-09 1:30 
QuestionContext sensitive help button problem Pin
Abhijeet Pathak16-Apr-09 21:58
Abhijeet Pathak16-Apr-09 21:58 
Questionq. about SHBrowseForFolder Pin
sashoalm16-Apr-09 21:43
sashoalm16-Apr-09 21:43 
AnswerRe: q. about SHBrowseForFolder Pin
Stuart Dootson16-Apr-09 22:17
professionalStuart Dootson16-Apr-09 22:17 
GeneralRe: q. about SHBrowseForFolder Pin
sashoalm16-Apr-09 22:27
sashoalm16-Apr-09 22:27 
GeneralRe: q. about SHBrowseForFolder Pin
Stuart Dootson16-Apr-09 23:58
professionalStuart Dootson16-Apr-09 23:58 
GeneralRe: q. about SHBrowseForFolder Pin
sashoalm17-Apr-09 2:34
sashoalm17-Apr-09 2:34 
GeneralRe: q. about SHBrowseForFolder Pin
Stuart Dootson17-Apr-09 2:58
professionalStuart Dootson17-Apr-09 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.