MSVC 2012/ 2010

Home Forums Discussions Support MSVC 2012/ 2010

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7151
    vampie
    Participant

      //CNdisApi (const TCHAR* pszFileName = _T(DRIVER_NAME_A));
      CNdisApi (const TCHAR* pszFileName = L”NDISRD”);

      I have changed the above lines now I am getting:

      main.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall CNdisApi::CNdisApi(unsigned short const *)” (__imp_??0CNdisApi@@QAE@PBG@Z) referenced in function _main

      Any idea?

      #7152
      Vadim Smirnov
      Keymaster

        The problem caused by -DUNICODE compiler switch. If you want your project to use UNICODE then you have to recompile ndisapi.dll as UNICODE either. For backward compatibility with earlier versions of Windows ndisapi.dll distributed within WinpkFilter package is built as multibyte.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.