|
You gat to learn a lot about UAC. Search it here at CP or the MSDN.
I liked this article most:
http://www.codeproject.com/KB/vista-security/VistaElevator.aspx[^]
If your app isnt running, look in the manifest or the project settings if it is requiring admin.
You have to do your work and to identify the parts which wont run and then read the MSDN for a solution or ask again.
Greetings from Germany
|
|
|
|
|
I have used a manifest file in vista
manifest file Content
**********************
requestedexecutionlevel level="asInvoker"
It works in vista
But in windows what i do to allow limited users to run my application
|
|
|
|
|
pooja_friends wrote: But in windows what i do to allow limited users to run my application
If you can't elevate their priviledges, you'll have to find those functions that don't run and replace them with ones that do. However, there are certain actions that simply cannot be performed without admin priviledges. Nobody can give you better info than that without more specific info from you, such as what functions are failing and what you are trying to do with them.
Judy
|
|
|
|
|
i created sheet with 3 pages
|
|
|
|
|
i mean how to create modeless propertysheet
|
|
|
|
|
CMyPropertySheet *Pty = new CMyPropertySheet();
Pty->Create(CMyPropertySheet::IDD);
Pty->ShowWindow(SW_SHOW);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
please see my reply above!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
It is like creating a modeless dialog.
Greetings from Germany
|
|
|
|
|
But i am getting problem when writing Create function
|
|
|
|
|
Hi
I want to create application in such a way that it can access Video by WebCam and store Video on the System.So Is there any Standard Win32 API Classes and namespaces available in Visual studio 2005.
Thanks
Atul
|
|
|
|
|
You may start your project with Dormgem[^]as a reference. No managed code, but it is written in C++.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Try Video Capture[^] at MSDN. You might also want to try DirectShow which is part of PlatformSDK.
-Saurabh
|
|
|
|
|
hi
I want to Disable "Edit" Button in Menu Bar(SDI).
I try
CButton* but=((CButton*)GetDlgItem(ID_FILE_NEW));
but->EnableWindow(FALSE);
in MainFrame.cpp but it is not working.
Give me the suggestion about this.
thanks
regards
shakumar
shakumar
modified on Friday, June 13, 2008 1:26 AM
|
|
|
|
|
shakumar_22 wrote: but->EnableWindow(TRUE);
For disabling you have to use: but->EnableWindow(FALSE);
-Saurabh
|
|
|
|
|
sorry,
i put FALSE only,now i changed in my post.
even if false was put not working
shakumar
|
|
|
|
|
In which function are you trying to do this?
-Saurabh
|
|
|
|
|
thanks for u'r reply
at run time i want to disable the button , it may be from thread or any other class.
shakumar
|
|
|
|
|
I understand that you want to disable the button at run time but where exactly are you adding the code to do that. It seems that you are adding the code before the view is created.
-Saurabh
|
|
|
|
|
i want to disable the menu bar button at run time from thread.
Disable may be happen from some thread function.
from thread means i want the Menu Bar Button handle.
i can do the Normal Button like this, by getting the handle,but for this menu bar button icant get,if do like the normal button it crash the application.
CButton* but=((CButton*)GetDlgItem(ID_FILE_NEW));
but->EnableWindow(FALSE);
shakumar
|
|
|
|
|
simply add ON_UPDATE_COMMAND_UI event handler for that menu item.
and disable menu item. like pCmdUI->Enable(FALSE);
For eg: in your view class in message map add:
ON_UPDATE_COMMAND_UI(ID_FILE_NEW,Test);
and define test as Test(CCmdUI* pCmdUI); in the header file.
in the cpp file for your view use
CMyView::Test(CCmdUI* pCmdUI)
{
pCmdUI->Enable(false);
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Friday, June 13, 2008 1:44 AM
|
|
|
|
|
Thanks for u'r Reply
its working fine.
but my requirement is I want to disable the File or Edit button from the another class ie : by getting the button handle, through that i have to disable from another class.
regards
shakumar
shakumar
|
|
|
|
|
Then get a pointer/handler to your view and call the methode from the other place.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
A menu isn't a dialog, calling GetDlgItem() on a menu is meaningless. UPDATE_COMMAND_UI is what you use to disable commands in the menu and toolbar.
|
|
|
|
|
Hi!
I'm working in a VC++ Project under VC++ 2005. In Release mode,it runs fine. It shows me an exception only under Debug mode. Here it is:
Unhandled exception at 0x00448b61 in test1.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
When I break this exception, the pointer goes to a file ref_ptr which is not defined by me. It's a Delta3D Engine's(Simulation Engine)file. What to do to resolve this exception?
|
|
|
|
|
This mean you are trying to access a pointer that has been deleted. Since this is happening in external library code it might mean either there is a bug in the library or more likely you program has a bug.
-Saurabh
|
|
|
|