|
Sir, my program will not do anything on its own.
I have a added GetLogicalDriveStrings in a combobox which will show the list of drive present in the PC. Then if the user wishes to add a directory by pressing a push button, then cmd function should execute and create a directory or hiding folders and so on on the drive specified.
I know it is much easier to do this manually but I am learning windows API so it will be helpful for my future use.
Thank you
|
|
|
|
|
VISWESWARAN1998 wrote: ...but I am learning windows API... Then start using it. Trying to do all of this via system() and ShellExecute() is all but completely wrong.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Sir, what to use? could you please explain me briefly?
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Thank you sir I made it for now using ShellExecute function but I will try to do with the function (GetAttributes) suggested by you
|
|
|
|
|
I showed you how to do it in my correction of your code.
|
|
|
|
|
Thank you sir for your kind help. I made it to work finally with the help of your code
|
|
|
|
|
Hi,
I hace a win32 dll and I want to add dependency as static for my dll because I have a problem to install it on machine which desn't contains MFC dlls
MFC100U.DLL
MSVCR100.DLL
Any help please.
|
|
|
|
|
|
In the project properties, go to the option called "Use of MFC library" and choose static library.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
hi! ampersand don't underline my label when i debug, usemenomic is true
|
|
|
|
|
Is there a C / C++ / MFC question in here somewhere?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Can't assign an access key to a label ... because a label can't get focus.
|
|
|
|
|
It's a Windows Form (.NET) thing.
|
|
|
|
|
Fine ... It still looks like that's what he's trying to do.
Ampersand; underline; label; ...
|
|
|
|
|
|
He also used that reference (?)
|
|
|
|
|
That has nothing to do with C/C++. Please post in the correct forum and show the code that is not working.
|
|
|
|
|
|
|
Isawyouoo wrote: doesn't work I just tried it and it works fine.
|
|
|
|
|
|
I suggest you open a new question in the correct forum[^], and show the code that you have, and explain clearly what is going wrong.
|
|
|
|
|
Well,
I think you are talking about a Resource Script of some type. Dealing with a Button or Menu.
I must admit, my knowledge of C# is Zero. However, this happens in MFC if you try to use the same Underscore twice.
( As in &Underline in One Menu, and &Undo in another menu) The Framework does not bother to disambiguate, to make you choose between 'Underline' and 'Undo'. The idea of Shortcut Keys is 'Shortcuts', not a philosophical set of Dialogs about what you Really meant when you typed CTRL + U. If there is ambiguity, the system does unexpected things, such as not underlining YOUR &U if the system has already a Ctrl + U in its Scope. Don't know the rules, but I guess, that is where your problem lays.
In effect, there are only 26 Ctrl+... shortcuts available, a bakers dozen of which (such as Ctrl + X for 'Edit.Cut') have been used by Microsoft.
I take it you understand the gist of where I'm getting to.
Hope this is helpful
Regards,
Bram
Bram van Kampen
modified 11-Feb-16 20:16pm.
|
|
|
|
|
by pressing the alt key, or using a timer with sendkeys.send("%"),
or turning on 'the Hide keyboard navigation indicators until I use the Alt key on control panel'
fixed this poblem
|
|
|
|