How to use VS2010 pragma manifestuac on console without IDE

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am using VS2010 Pro native c++ and was wondering if its possible that I am entering this wrong to add the manifest to a simple console application through the pragma directive to require administrator elevation. It keeps telling me
Report.obj : warning LNK4229: invalid directive /MANIFESTUAC:level=requireAd<br/>
ministrator uiAccess=false encountered; ignored
Is this the correct format?
http://msdn.microsoft.com/en-us/library/bb384691.aspx http://msdn.microsoft.com/en-us/library/bb384691.aspx

<pre class="x_bbcode_code" style=" #pragma comment(linker, "/MANIFESTUAC:"level=<span style="font-family:Consolas,Courier,monospace; font-size:13px; line-height:normal requireAdministrator uiAccess=false"")[/code]

<br/>


View the full article
 
Back
Top