winscard

hi evryone!! i need some help with WinSCard... i need connect to Athena smartreader. i use <winscard.h>.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "stdafx.h"
#include <iostream>
#include <WinScard.h>


using namespace std;


int main()
{
	SCARDCONTEXT    hSC;
	LONG            lReturn;
	
	lReturn = SCardEstablishContext(SCARD_SCOPE_USER,
					NULL,
					NULL,
					&hSC);
	
	if ( SCARD_S_SUCCESS != lReturn )
		printf("Failed SCardEstablishContext\n");			
	else
	{ ... }
    return 0;
}

i have an error:
error LNK2019: unresolved external reference to a symbol _SCardEstablishContext@16 function _main D:\...\scard.obj
closed account (o3hC5Di1)
Hi there,

Are you sure the WinScard.h file is in the default include folder and not the current working directory?

If so, you may want to try and pose your question in the "general" or "windows programming" forums as you have a better chance of getting a good reply about this there.

All the best,
NwN
Topic archived. No new replies allowed.