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
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!!