Solved

CreateProcessWithLogonW compile & link error

Posted on 2004-04-19
2
574 Views
Last Modified: 2010-08-05
I have a program vritten in VC++ 6.0 SP5 that uses the CreateProcessWithLogonW function.
Unicode libraries are installed, UNICODE and _WIN32_WINNT=0x0500 are defined but the compiler cannot find the definition for the function. If I supply my own prototype it compiles ok but cannot link.
I've included advapi32.lib to no avail.

atex.obj : error LNK2001: unresolved external symbol _CreateProcessWithLogonW

Any clues?
Regards
Peter


0
Comment
Question by:peakpeak
2 Comments
 
LVL 8

Accepted Solution

by:
_corey_ earned 50 total points
Comment Utility
It looks like you need to downoad the Platform SDK.  http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm?p=/msdownload/platformsdk/sdkupdate/home.htm is where you would download it from, but the site seems to be having a few problems at the moment.
0
 
LVL 28

Author Comment

by:peakpeak
Comment Utility
Ouch, I already had it, just included the path in Preprocessor & lib. Working,
Thanks
Peter
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now