Link to home
Start Free TrialLog in
Avatar of AnanthakrishnanKC
AnanthakrishnanKC

asked on

Linker Error : NetApiBufferFree

error LNK2019: unresolved external symbol _NetApiBufferFree@4 referenced in function "int __stdcall MyWlxLoggedOutSASDlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MyWlxLoggedOutSASDlgProc@@YGHPAUHWND__@@IIJ@Z)

Where do i place netapi32.lib file. I am working it Visual Studio 2005.
Avatar of Werrock
Werrock
Flag of Sweden image

In Project properties->linker->Input
You can also type
#pragma comment(lib, "netapi32")
in the code file that use the lib.
Avatar of AnanthakrishnanKC
AnanthakrishnanKC

ASKER

i also did but not still i have such problem?
Open the VC++ directories under Tools->options. Check that the folder containing the lib is present in the list.
ASKER CERTIFIED SOLUTION
Avatar of itsmeandnobodyelse
itsmeandnobodyelse
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial