Please, help to make DLL in Visual C with NDISAPI

Home Forums Discussions Support Please, help to make DLL in Visual C with NDISAPI

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5310
    Link3z
    Participant

      I´m in a hurry.

      I made a console program using ndisapi.h for filter DNS petitions to a especific URLS, and all work OK.

      But now, I need to make the same program in a DLL for use with a Windows Service, this service is programed in C# and the idea is convert the console program to a DLL for use on the service, but i have this error:

      Error 5 error LNK2019: símbolo externo “public: __thiscall CNdisApi::CNdisApi(wchar_t const *)” (??0CNdisApi@@$$FQAE@PB_W@Z) sin resolver al que se hace referencia en la función “int __cdecl main(int,char * *)” (?main@@$$HYAHHPAPAD@Z) Sniffer.obj CppSQLiteDemoExt

      I try

      #pragma comment(lib, “ndisapi.lib”)

      start the project fron the beginning,

      recompile ndisapi…

      Somebody know what is happend??

      I´m working with Visual Studio 2008.

      Thanks!!

      #6853
      Vadim Smirnov
      Keymaster

        Looks like linker is unable to find or to take proper version of ndisapi.lib. Try to set path to ndisapi.lib in project setting instead of pragma.

        #6854
        Link3z
        Participant

          Thanks for the solution, but I just try it.
          I don´t understand what’s the problem.
          Now I solved this changing the target application type in the project propertys, from Console to DLL and changing parts of the code. Now work perfectly.
          Thanks for all, your job is great!!

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