by example try this:
// this is your real code:
// include this..
#pragma comment(lib,’path to your nsdisapi.lib including ndisapi.lib’)
int main(int argc, char* argv)
OR, maybe you change the calling convention on your compiler, first try this