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.
AnanthakrishnanKCAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.