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,
if ( SCARD_S_SUCCESS != lReturn )
// Use the context as needed. When done,
// free the context by calling SCardReleaseContext.
I have included the header file, ie
and add in the linker option to link the library, ie
Below this there is an edit box where i specified
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
In a particular VC++ 2005 MFC dialog, the "Question Mark button" (near Close button) shows up even after I set "Context Help" property to False.
In other dialogs the button shows up or disappears properly after setting or resetting that property.
Can somebody tell me whats wrong? or What else controls the display of that button?
Thanks for the link, at the end they explained how to make it work. Here's the code (following their advice):
if (uMsg == BFFM_SELCHANGED)
// get selected directory
LPITEMIDLIST pidl = reinterpret_cast<LPITEMIDLIST> (lParam);
// see if it is validchar UnusedBuffer[MAX_PATH];
BOOL ShouldEnableOkButton = SHGetPathFromIDList(pidl, UnusedBuffer);
// if no disable OK button, if yes enable it
::SendMessage(hwnd, BFFM_ENABLEOK, 0, ShouldEnableOkButton);
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 21:38