• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1807
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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