| | |
Making two infinate loops inside the other?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Does this sort of thing make sense:
C++ Syntax (Toggle Plain Text)
while ( 1 ) { // PART A DWORD d = 0; DeviceIoControl(hcd, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &d, NULL); DeviceIoControl(hcd, IOCTL_STORAGE_LOAD_MEDIA, NULL, 0, NULL, 0, &d, NULL); // PART B SetCursorPos( X, Y ); }
Last edited by Dave Sinkula; Feb 19th, 2008 at 3:48 pm.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Nearly, I tried that myself. I'll explain:
When the drive loads, this sets the mouse position, then it gives the user time to react by closing the window, before the drive loads again. You see? And yes, even giving this condition after the ejection still doesn't suffice.
I want them both to be running at the same time constantly.
On that note, is it possible to hide the command window? This would suffice...
When the drive loads, this sets the mouse position, then it gives the user time to react by closing the window, before the drive loads again. You see? And yes, even giving this condition after the ejection still doesn't suffice.
I want them both to be running at the same time constantly.
On that note, is it possible to hide the command window? This would suffice...
Last edited by cosmos22; Feb 19th, 2008 at 4:07 pm.
![]() |
Other Threads in the C++ Forum
- Previous Thread: Socket Programming
- Next Thread: no clue how to start
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






