|
Ok David, I'm going to try this, I need to read something before because is the first time I see WMI . Every day there is something new to learn
Thank you very much for your time.
Best Regards.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Yes David answers to you see Win32_TemperatureProbe[^] it has example(I wanted to answer you but I dont know I had a problem)
|
|
|
|
|
Hi WhiteSky.
Reading the link you've posted....
Best regards.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Give me some example (link would be nice) of these programs.
|
|
|
|
|
Hi Vaclav.
Well, you can download Motherboard Monitor http://www.softpedia.com/get/System/System-Info/Motherboard-Monitor.shtml[^]
Regards.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Hello everyone,
I am learning how to use Excel to connect to other external data source (like database). What I want to do is to develop a plug-in for Excel and automatically access external data source, then display it in Excel tables.
Are there learning resource? I have tried to search in MSDN, but can not find any learning resources.
thanks in advance,
George
|
|
|
|
|
It sounds like you need to use the Workbook_Open event.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Are there any comprehensive tutorials for beginners?
regards,
George
|
|
|
|
|
There are several names pointing to the same folder within Vista.
Example:
C:\Users
The folder is named "Benutzer" in Vista German Edition. So the Explorer shows "Benutzer", but my app shows "Users".
Can I retrieve the language-dependend name somewhere, and can I figure out if the folder uses is available through different names at all?
Same for the old "Documents and Settings" or the Programs-folder. Within explorer it's just a link that cannot be followed, but when you install old 32-bit programs under Vista, you can install them into the German or English name, but they will be only in one (the same) folder.
But in my app the links are just empty folders when I list the content.
So, are there classes comparable to FileInfoArray here at Codeguru that are up-to-date to be Vista-ready and backward compatible so it runs under XP without problems.
Thanks in advance, and sorry for my confusing style of explaining my problem.
Roland
|
|
|
|
|
Though I don't know what you are trying to achieve. In general, one should not mess with the "Documents And Settings" (Users in vista) folder directly.
You can query the user folder path (and other special folders) via the SHGetFolderPath function. CSIDL_PROFILE will find you the user's folder.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Thanks, but that was not my achievment. I realized that my question was asked in a quite confusing way.
To be more precise, I show a list of folders to the user, and through the usual directory listings you will not get the localized strings for some folders. In addition to the original name "Users" (which a common user would not even know since it's called "Benutzer" in german Vista) a lot of link-directories are shown. This is the "Dokumente und Einstellungen" and the "Documents and Settings" folder. So I have 2 empty folders - since they are not really there but shown through the old Win32 functions!
All I'd like to have would be a nice class or method to retrieve directory listings that already consider the localized names and offer information if such a folder is a real folder or one of those not-enterable.
Roland
|
|
|
|
|
I still don't really get it. Have you tried using SHGetFolderPath()?
Does it not get you what you are looking for?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Hello,
In my project, if i click a particular row in the list control, it will open a view. Like that if i click different row it will open different view. But when i try to open the view using click event, that was opened already, the focus is not set to the particular view. It is opening another window using "Openform". Is there any way to set the focus to already opened view.
Regards
Jagannathan
|
|
|
|
|
jagannathan thiruvengadathan wrote: In my project, if i click a particular row in the list control, it will open a view.
If by that you really mean single-click, meaning select, it sounds like a great way to piss-off keyboard based users that are using the arrow keys to move to an item, ot typing part of the label to accelerate to one...
Anyway, I am not familar with Openform , as it is not a function or method that I know about. Sounds like you need to associate the view with a particular item (like via the item's data-item value, and maintain it correctly when the corresponding view is closed), and then use that data item to focus/activate the appropriate already-created view.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Before opening a new view, can't you just search through the list of already-open views?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I am displayed the messagebox using the Messagebox function:
MessageBox("xxxx","EncryptaKey VPN",MB_YESNO|MB_ICONQUESTION);
The x button in messagebox is disabled how to enabled it.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Are you allowed to use MB_OKCANCEL instead of MB_YESNO ?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Yes, because there is no "Cancel" option - the [X] is actually treated as a cancel button and since you did not specify a cancel option in your flags...
N.B. the standard MB_OK message box's OK button is really a Cancel button behind the scenes - that is why you can use the [X] button or the <ESC> key to dismiss it.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
thank you
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
James R. Twine wrote: the standard MB_OK message box's OK button is really a Cancel button behind the scenes - that is why you can use the [X] button or the <esc> key to dismiss it.
James, do you really mean that? I don't get it. What am I missing?
AFAIK, When you do not specify a cancel button, that is when you use a style like MB_YESNO, the 'X' button will be disabled and pressing the Esc key will not dismiss the message box!
|
|
|
|
|
I am talking about a message box with a single [OK] button (the MB_OK style bit). If the dialog is showing anything other than the single [OK] button, then the buttons are as you would expect.
The MB_OK style of message box shows a single [OK] button, but it is actually an IDCANCEL button behind the scenes that just has the text of "OK" on it (or its equivalent). Since it is an IDCANCEL button, the [X] remains enabled and can be used to dismiss the dialog, just like pressing <ESC> . (Generally, if you have a dialog that has a button on it with IDCANCEL , pressing the [X] or <ESC> usually activates it.)
When you use other styles that exclude the CANCEL style, like MB_YESNO , there is no IDCANCEL button present, so the [X] is disabled and/or has no effect, just like with pressing <ESC> .
(The things you learn having to install windows hooks to intercept and scrape dialog boxes and then determine which button to simulate activation of in order to dismiss it... Gotta love having to shoehorn GUI-laden code into a server!)
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
brahmma wrote: What am I missing?
Spy++.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Am I wrong here ?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
James R. Twine wrote: N.B. the standard MB_OK message box's OK button is really a Cancel button behind the scenes - that is why you can use the [X] button or the <esc> key to dismiss it.
In a normal message box with only the MB_OK style enabled, the [X] or pressing the <ESC> key too returns IDOK from the message box call, which is equivalent to pressing the OK button. I do not find it to act like a cancel button behind the scenes or any such thing.
See it for yourself:
DWORD dwRetValue = MessageBox("Hi there","Hello",MB_OK);
switch(dwRetValue)
{
case IDCANCEL:
AfxMessageBox("Cancel was selected");
break;
case IDOK:
AfxMessageBox("OK was selected");
break;
}
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Use MB_YESNOCANCEL instead of MB_YESNO
|
|
|
|