smartcard - SCardEstablishContext not setting context pointer -


i calling winscard.dll methods c# , has been working fine in test app. having difficulty establishing context when moving code larger project.

my call establish context follows:

[dllimport("winscard.dll")]         public static extern int scardestablishcontext(int scope, int res1, int res2, ref int pntcontext); 

in test app when call pntcontext variable appears set properly. but, in new project not getting set. strangely enough return code still 0 (success).

so, i'm wondering circumstances cause this, or other things doing wrong?

any ideas appreciated.

the problem appears cause driver / architecture issue.

for me there 2 projects involved (api , client).

to solve problem changed "cpu type" (project properties->build) cpu.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -