|
As I answered before it is only a matter of tastes... I prefer using XML files because as they are plain text files that can follow any structure they are very flexible, they are also easy to copy from one pc to another one, also you have the DTD files that allow you to control the correctness of the contents you placed in...
Take a look at the wikipedia on how to use it and why it is used: http://en.wikipedia.org/wiki/XML[^].
I've been using the registry also, but I find far more flexible and easy to deploy the XML files method...
Hope this helps.
|
|
|
|
|
|
Thanks for the suggestion. Just so you know, I dont even know what STL-Style is. I am an uneducated struggler with code, that's why I call myself SimplCodr. If it is not simple I probably wont get it. I try real hard though. I have come a short way in a long time, to do very little. I am better than I was when I started .
|
|
|
|
|
|
I'm trying to get the free space and read/write status on a mounted drive. I've tried creating a handle by calling createfile with both the letter assigned and the direct mounting informatino \\<server>\\<sharename> in preparation for a call to DeviceIoControl
Each time it returns "Access Deined", error 5... I'm assuming because I'm trying to open the "device" as opposed to a file...
Besides WMI is there another way to obtain the information?
|
|
|
|
|
jhinze wrote: I'm trying to get the free space...is there another way to obtain the information?
Have you tried GetDiskFreeSpaceEx() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Duh....
Thanks... and sorry
|
|
|
|
|
|
Hi all
I have a windows with 2 radio button in it. By default it is selected the second, but I would like to switch to first one. When I do that the second should be unselected.
I know how to retrieve the handles to both 2 radio but when I do a SendMessage to the first radio with BM_SETCHECK value I see both the 2 radio buttons selected.
How to do that? Do I have to send some Click message better than BM_SETCHECK?
Regards
ManuStone
|
|
|
|
|
If you do it programmatically, like that, you have to send a message to uncheck the second button and vice versa.
|
|
|
|
|
Blake Miller wrote: If you do it programmatically, like that, you have to send a message to uncheck the second button and vice versa.
Actually that it's NOT true, unless both radio buttons have the Group property set.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: ...unless both radio buttons have the Group property set.
Only the first one in the group should have the WS_GROUP style. All buttons without the WS_GROUP style after the first button belong to the same group. The next button with the WS_GROUP style starts the next group.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
FYI I tried also with CheckRadioButton() function, but it doesn't work.
It returns true as if it works, but i cannot see any change on my window.
I will try what you just suggested me.
Regards
ManuStone
|
|
|
|
|
DavidCrow wrote: Only the first one in the group should have the WS_GROUP style. All buttons without the WS_GROUP style after the first button belong to the same group. The next button with the WS_GROUP style starts the next group.
I know well it, but, anyway, thaks...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
manustone wrote: ...I would like to switch to first one. When I do that the second should be unselected.
If both buttons belong to the same group, this happens automatically.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
FYI I tried also with CheckRadioButton() function, but it doesn't work.
It returns true as if it works, but i cannot see any change on my window.
I will try what you just suggested me.
Regards
ManuStone
|
|
|
|
|
I just ran into a similar issue the other day. I had 2 checkboxes and I wanted to be able to select both but everytime I selected one the other other was automatically unchecked. I solved my problem by selecting the "Group" property on the second checkbox. Removing the Group property from both your radio buttons may solve your problem. That is how mine were originally.
|
|
|
|
|
SimplCodr wrote: Removing the Group property from both your radio buttons may solve your problem.
Doubtful. In addition, both (radio or checkbox) buttons must be next to each other in the z-order. Otherwise, Windows will not know they are related, regardless of the WS_GROUP style.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It is true, my checkboxes were next to each other. But what I said was true. When I had no WS_GROUP style selected for either one I got one or the other. When I selected WS_GROUP on the second checkbox I could then select both or just one. It wont hurt to try and if it works, it is very simpl. Kinda like me.
|
|
|
|
|
SimplCodr wrote: But what I said was true. When I had no WS_GROUP style selected for either one I got one or the other.
Fair enough.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hey Folks,
Newbie question. Using MS Visual C++ 6.0 . I have a large project that I would like to keep intact but continue to work on it under a new name. Say I had a project named fred with all of its associated files and I wanted to make a copy of it named sally in a new directory. How would I do that without hosing up everything? Thanx.
RJT
|
|
|
|
|
Just copy the whole solution directory and give it a new name, and all should be good
|
|
|
|
|
benjymous wrote: Just copy the whole solution directory and give it a new name...
Coupled with renaming some of the project's files (e.g., fred.dsw --> sally.dsw), and modifying the project's .dsp and .dsw files (they internally reference fred).
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes! Wonderful. After rebuilding all and finding all of the #includes that were referenced to "fred", "sally" seems to work. Thanx a million.
RJT
|
|
|
|
|
There's a CP article that supposedly automates this, but having never useed, I can't attest to anything.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|