|
IsUserAnAdmin() isn't recognized by my VC6.
Why?
Anyway, thanks!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Make sure you have included shlobj.h (the required include is listed at the bottom of the manual page).
If that doesn't work, you're hitting the problem that you're using an incredibly old product and its include files don't contain APIs that were new for Win200. To get the right includes, you'll need to download the latest SDK and use it.
Judy
|
|
|
|
|
Thanks! I'll download it.
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
RomTibi wrote: an a prgram (in VC6) determine if the current user is member of the Administrators Group?
http://www.visualcpp.org/?p=11[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hey, guys.
I looked at the Vista area but it seems to be more usage of the OS and this is a programming question.
If such a thing exists, could someone please point me to the documentation on where the "right" place is to store local app and user data in Vista? I want to avoid Will Robinson UAC messages, and I also want to follow best practices guidelines, i.e. is it preferred to store in the registry, in the \documents and settings path, or perhaps somewhere else.
Anyway, I'm sure this is documented somehere, I just can't seem to locate it. Anyone know where this info can be found?
Thanks!
|
|
|
|
|
For XP, this info is described in detail in the
Designed for Windows XP Application Specification 2.3 Document[^]
section 3.1 I believe.
I'm trying to find the newer document for Vista Logo but currently my search is...well...failing.
I'm probably spelling something wrong. How do you spell Vista?
Anyway, it should be in the Vista Logo requirements document if you can find it.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Yeah, I know what you mean about the search failing...
Thanks, man. I appreciate the help. If you happen to bump into the Vist stuff, let me know.
|
|
|
|
|
Christopher Duncan wrote: If you happen to bump into the Vist stuff, let me know.
If you find it please let me know!
I really hope it hasn't changed. I already eliminated using the registry and followed the XP logo
guidelines in my apps since they hinted way back when XP came out that new apps may have security
issues with using the registry in the future. If it changed it's going to be a PAIN!
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Well, you've answered one of my questions. My impression was that use of the registry is now discouraged, so I'm thinking that calling the normal get user app data path routines and storing in the appropriate folder is the way to go.
If I bump into anything worth mentioning, I'll definitely let you know!
|
|
|
|
|
|
Most excellent - thanks!
|
|
|
|
|
The right places haven't changed between XP and Vista. The directory names changed, but that won't matter if your code is written properly. Use SHGetFolderPath() or the new SHGetKnownFolderPath() to get paths to dirs like Documents , Downloads , etc.
|
|
|
|
|
Michael Dunn wrote: The right places haven't changed between XP and Vista.
Thanks, man. That's what I was hoping to be the case!
|
|
|
|
|
I was hoping that as well!
Thanks Mike!
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
It's here[^] but I can't find the freakin document.
Ack sorry, that's hardware.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi,
Does anyone know the code how to make Not Visible a picture frame when a radio button is pressed and then make visible again when another radio button is pressed?
Thanks
Ibs
|
|
|
|
|
Do you use of a control for show picture if yes use of ShowWindow(SW_SHOW | SW_HIDE)
|
|
|
|
|
I'm using radio controls to show/hide the picture control. Would I write something like this?:
IDC_PLACEHOLDER->ShowWindow( SW_HIDE );
I did this and got an error saying:
error C2227: left of '->ShowWindow' must point to class/struct/union
Any ideas. Thanks.
ibs
|
|
|
|
|
How do you show your image I think IDC_PLACEHOLDER is an ID of a control if yo have any control you must declare a variable for it and use of ShowWindow
|
|
|
|
|
Could you solve your problem ?
|
|
|
|
|
Not problem if you cant declare a variable for your control(I dont think you have problem with declare) use of this code GetDlgItem(IDC_PLACEHOLDER)->ShowWindow( SW_HIDE );
What happens?
|
|
|
|
|
ibtt1 wrote: Does anyone know the code how to make Not Visible a picture frame when a radio button is pressed and then make visible again when another radio button is pressed?
Add control variable on Picture Control and use ShowWindow api to sho/hide control!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi I am new in VC++ I want to work on a game I've downloaded a game engine named Irrlicht I've done what is written in its tutorials e.g including files, directories etc.. For example I have a file named Irrlicht.h with several other headers and its in other directory than VC++ projects directories. I include it properly but when I compile it, it says Irrlicht.h not found. I've included the directories Tools -> Options -> VC++ Directories, if I'm doing wrong please guide me through this. Any answer will be welcomed.
Nothing.
|
|
|
|
|
Ali Derakhshan wrote: I include it properly but when I compile it, it says Irrlicht.h not found.
Obviously not
Ali Derakhshan wrote: I've included the directories Tools -> Options -> VC++ Directories, if I'm doing wrong please guide me through this. Any answer will be welcomed.
If I understand the question correctly ...
What about #include "<dirName>\Irrlicht.h" // <file path>
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
If you're right then can you please provide a working example of that.?
Nothing.
|
|
|
|