title: How to include winscard.lib in a qt project
body: <p>I'm having problems including winscard.lib in my QT project.
  I have windows 10 x64 and I downloaded the microsoft sdk V7.1 because I didn't have the winscard library in the microsoft sdk v10.</p>
  
  <p>Now, my .pro file looks like this:</p>
  
  <pre><code>QT       += core gui sql
  
  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  
  TARGET = NFC
  TEMPLATE = app
  
  DEFINES += QT_DEPRECATED_WARNINGS
  
  SOURCES += \
          main.cpp \
          mainwindow.cpp \
      globs.cpp \
      newcard.cpp \
      newcircuitnumber.cpp
  
  HEADERS += \
          mainwindow.h \
      globs.h \
      newcard.h \
      newcircuitnumber.h
  
  FORMS += \
          mainwindow.ui \
      newcard.ui \
      newcircuitnumber.ui
  
  
  INCLUDEPATH += "C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"
  LIBS += -L"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\IA64"
  LIBS += -winscard -lz
  </code></pre>
  
  <p>mainwindow.h</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  #include &lt;QDir&gt;
  #include &lt;QDebug&gt;
  #include &lt;QMessageBox&gt;
  #include &lt;QSqlQuery&gt;
  
  #include "globs.h"  
  #include "qt_windows.h"
  #include "winnt.h" 
  #include "winscard.h"
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);   
  
      SCARDCONTEXT cardContext;
      LPWSTR mszReaders;
      DWORD dwReaders;
  
  
      SCardEstablishContext(SCARD_SCOPE_USER,NULL,NULL,&amp;cardContext);
      dwReaders = SCARD_AUTOALLOCATE;
      SCardListReadersW(cardContext,NULL,(LPWSTR)&amp;mszReaders,&amp;dwReaders);
  
      QByteArray buffer;
      wchar_t *it = mszReaders;
  
      while(*it !='\0')
      {
          buffer.append(QChar(*it));
          *it++;
      }
     qDebug()&lt;&lt;buffer;
  }
  </code></pre>
  
  <p>The error I get when I try to compile are the following:</p>
  
  <p>Errors</p>
  
  <p><img src="https://i.stack.imgur.com/kd5kb.png" alt=""></p>
  
  <p>Can somebody point me to a solution? What am I doing wrong?
  Thanks a lot in advance.</p>