Dear members, I am looking for .NET functions to change power settings of a PC. For example, the hard disk turn off time, screen brightness, monitor turn off time. All these are intended to save energy. After some studies, I found that [B]DeviceIOControl[/B] provides such capabilties. However, I am not sure it thats the right direction. Also I have read about [B]Windows Management Instrumentation (WMI)[/B]. I have no prior experience programming system services. Any expert here that have experience coding such application? All advices are welcomed. Thank you! Regards, Nick

Member Avatar
Member Avatar
+0 forum 4

Hi all, I am having trouble trying to load contents on a tab in accordion on the fly. Which means, the content for a particular tab will only be loaded and displayed when user click on it. Is there any example available? I am still trying it with Ajax. I know this is the correct direction but couldn't sort things out. A simple example is much appreciated. Will post some codes here later. Thank you! Regards, Nick

Member Avatar
Member Avatar
+0 forum 1

Hi all, I have a piece of program written in Visual C++ which works just fine in Win XP. However when its run in Vista, the error message "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." is shown only when I exit the program (the program is exited in a correct manner). Only the "Close program" button is available for clicking. Actually, everything just works fine but the message pops up when program is exited. All data read and write are correct. Applications behave and respond …

Member Avatar
Member Avatar
+0 forum 8

greetings, I would like to build a subset from a Hashtable. The subset is a Hashtable too. How could I do it? Is there any API out there? Any advise or guideline are appreciated, thank you! :rolleyes:

Member Avatar
Member Avatar
+0 forum 4

I have been trying to find out what is the meaning of m_nRetCode (value=1012). I get this exception when my program try to execute insert entry into database. Can anyone pls tell me what is the meaning of the value 1012 which is the value of m_nRetCode? Where can i get the reference? Any help would be appreciated, thank you!

Member Avatar
+0 forum 0

Hi all, I'm facing this problem in my running app. It is a real-time app and writes to the database whenever data is received. However, there is rare occasions that causes the ExecuteSQL to fail. However, the failure did not throw any exception, so my CDBException did not detect anything(it is written in a try/catch). I suspect that the data fail to insert into the database due to the database is being used heavily. Is CDBException able to catch this kind of error? Is there any way that I can solve this problem? Or is it other problem(what are the …

Member Avatar
Member Avatar
+0 forum 6

Hello, I'm facing a with a real-time app. This real-time app is reading data from the serial port, then, process it. However, it seems to miss some data when the computer has some other apps running. More data are lost when other app do heavier processing. When i try to search for files in the computer and at the same time running the real-time app, it seems to miss more than half of the data sent. How can i overcome this problem? Is it hardware or the program's problem? Thank you!!! ;)

Member Avatar
+0 forum 0

The End.