• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1748
  • Last Modified:

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.
0
AnanthakrishnanKC
Asked:
AnanthakrishnanKC
  • 3
1 Solution
 
WerrockCommented:
In Project properties->linker->Input
0
 
WerrockCommented:
You can also type
#pragma comment(lib, "netapi32")
in the code file that use the lib.
0
 
AnanthakrishnanKCAuthor Commented:
i also did but not still i have such problem?
0
 
WerrockCommented:
Open the VC++ directories under Tools->options. Check that the folder containing the lib is present in the list.
0
 
itsmeandnobodyelseCommented:
>>>> Check that the folder containing the lib is present in the list.

It is Tools->Options->Projects-VC++ Directories->Show Directories For->Library Files.

The folders specified here are global library folders valid for all projects.

You also could add a library path for the one project only by

Project -> Properties -> Configuration Properties -> Linker -> Common -> Addititional Library Folders...
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now