You can right click the program in Windows Explorer and click "Run as administrator". Alternatively you can use the Project Properties: select Linker -> Manifest File, and change the UAC Execution Level to either "highestAvailable" or "requireAdministrator". This is always assuming that you are already running under an account with administrator level access.
Anthony Appleyard wrote:
When did all this about several users and an administrator start in desktop PC's?
It started with Windows XP and gets progressively more sophisticated with Vista and Windows 7.
Anthony Appleyard wrote:
I have a very similar Visual C++ project which does not refuse to rename files in my C: area.
So it would be a good idea to investigate what is different between the two.
> You can right click the program in Windows Explorer and click "Run as administrator".
> Alternatively you can use the Project Properties: select Linker -> Manifest File,
> and change the UAC Execution Level to either "highestAvailable" or "requireAdministrator".
I just now tried all 3 of these and all got "Permission denied".
> This is always assuming that you are already running under an account with administrator level access.
Please, how do I set my PC's current account to administrator level access?
If there is a file whose full name is "C:\\zxcvbnm", please how can I find if it exists, and of so, if it is open to anything, and if so, to close it?
I remember from way back (it may have been when I was still using Borland C++ 5.1) that I had a program that faulted, and it behaved correctly after I changed its compiling-and-linking mode from 'dynamic' to 'static'. Please how can I do that now in my Visual C++ 2008?
I have just checked, and as far as I can tell, my PC has one user, which is "Owner Administrator".
how do I set my PC's current account to administrator level access?
You should have done that at install time. If you have the password of the admin account then you should login to that account and then use Control Panel -> Users to set your own account to administrator level.
I just found that I had fopen()'ed the same file twice without fclose()'ing it between. The offending rename(,)'s now work OK. I am sorry to take up so much of your time.
I just now inserted into my program this instruction:-
I have downloaded IVT library ( Integrating Vision Toolkit), I made my app dependent on this library ( as DSP project in VC6.0) , I can partially compile the app because I get “permission denied” when I get to #include preprocessor statement.
I have checked the directory permissions and I have grayed out “read only” checked in IVT directory.
All of the sources I used so far said that such grayed out “read only” checked ( in XP) does not make any difference (?) when directories are involved.
All of my app directories have that grayed out “read only” checked and I have no problem including other (OpenCV) libraries.
I am tempted to recopy / re-download the IVT files , but would like to hear from the forum what is going on here.
Appreciate any advise.
Here is the real code snippet
I must be doing something really stupid.
Do I have to create my own parent #include file ( such as stdafx.h) with all the other headers or is it a time to learn how to use CMake?
I'm not sure what you mean, the two are not connected. Using pre-compiled headers via stdafx.h merely helps to reduce the compile time of your source files, but you still need to #include all the individual header files. I have used make in the past and it is a good system, but I don't think it offers any advantages when you are creating Windows applications. Using the VS build system will do all you need.
One of the bygone useful features of the ancient days before DOS programming vanished, was ability, when I wanted to calculate something quickly, to quickly write a program where control started at the beginning and ran down the text like in a knitting pattern and and I did not have to catch Windows messages and events. A short example follows at the end of this message. Please, how can I use Visual C++ to write and run such a program, and how to run it? (I have Windows Vista).
I am writing a Visual C++ program, using features from an from an older Visual C++ program which I wrote. How can I (for example) get the compiler to use the version of the standard function GetFileName(.....) which needs a char* parameter rather than the version which needs a WCHAR* parameter?
is there a Article about CFormView, CView, CListView etc. for Beginners?
I always work with dialog based Applications, so i don’t have any experience with this Classes.
Any help would be great for me.
Here i like to thanks to all who help me before in my problems .
Last Visit: 31-Dec-99 19:00 Last Update: 30-Jan-23 23:52