|
you go to your compiler options, and chanck the release mode configuration.
I can't say much now, because I don't know which compiler you're using, and I have no visual Studio with me at the moment...
|
|
|
|
|
Which VS version are you using.
In 6.0 Go to project settings and there is option to generate debug info which is by default unchecked for Release build.
Regards,
Sandip.
|
|
|
|
|
hINTModuleState wrote: because even though i understand debug mode is to be prefered in most cases to the realse mode
That's not the case. Debug mode is not prefered over release mode: they are used in different scenarios. You use the debug mode while developping and debugging your product. Once it is (more or less) stable and you want to distribute it, you have to distribute the release version of it. You are not allowed to distribute a debug version of your program (because it is using debug dll's from microsoft which you can't distribute).
|
|
|
|
|
i have a code to find whether currently logon user is administrator or not.
If currently logon user is not an administraor my vc++ application wont run.
How i resolve this.my application must run in administrator as well as in non-administrator account
in windows and vista
|
|
|
|
|
Didn't you asked same question before and were offered couple of solutions? Whats wrong with them?
-Saurabh
|
|
|
|
|
Saurabh.Garg wrote: Whats wrong with them?
Too lazy to navigate to the original post and read the answers to previous post?
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.
|
|
|
|
|
pooja_friends wrote: in windows and vista
Does this problem appear only in Vista. Did you try to run your application on other windows version. Don't check if the user is an admin or not, if you want the application to run under ANY user account.
Vista imposes some restrictions on executing applications with correct privileges. Guess that your application would run on WinXP for both admin/non-admin users.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
my application does not run in non-admin user at windows xp and vista
|
|
|
|
|
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
|
|
|
|