|
|
Have a look to this :
CLick Me[^]
It will help you in Capturing a Window Image Into a Bitmap File
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Dear all
I want to implement a watchdog in my code ?
please give me some example code.
Thanks a lot
|
|
|
|
|
wrote: I want to implement a watchdog in my code ?
Here[^] is the code in dotnet which may helps you.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
WhiteSky wrote: but its C#
Already specified that code of dotnet.
May get any idea from same.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I hope
whitesky
|
|
|
|
|
Me too
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
And what is your watchog supposed to do exactly ? And what is the 'resolution' you want to achieve ? (remember that windows is not a real-time OS).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
A while ago, I wrote a simple little app which would look for a file in a marticular location - e.g. c:\MyFolder\MyWatchdogFile.txt". If it wasn't there, the app would restart the PC using ExitWindowsEx(), with the correct parameters set. If it was, it would remove the file.
I arranged for the Watchdog app to check for the file every minute, and my main application to write the file to the folder every minute as well.
This did work for me, however, some of you super programmers may find problems with this?
I hope this helps!
Mike
|
|
|
|
|
A minor suggestion - an application I worked on created the file every minute (say), while the checking application checked every 2.5 minutes. Just a little extra buffer in case there is a small time overrun, but the creating program recovered without hanging.
|
|
|
|
|
how can i find the default application for a selected file.
|
|
|
|
|
What do you want to do exactly ? Execute the program to open the file ? Then you can simply use ShellExecute for that, the file will be opened by the correct application.
If you want just to retrieve the name of the app (for example), then you have to look in the registry but I cannot help you more on that.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
stop asking again and again the same question follow the same thread please
this does the job :
ShellExecute (NULL, "open", "c:\song1.mp3", NULL, NULL, SW_NORMAL);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
when i see one ask in many threads i remember you and i say that now where is toxcct
whitesky
|
|
|
|
|
|
Use FindExecutable() or AssocQueryString() .
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Whoops! I meant to vote you a 5, not a 1, sorry.
To all - this is the right solution to find an associated application. ShellExecute/Ex(...) only launches it (if one exists).
Peace!
-=- James 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! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I helped, I voted a 5, that boosted the score
I've seen better runs in my shorts! - Patches O'Houlihan
|
|
|
|
|
what should i choose either editbox or richeditbox for following problem.
i have one dialog on that one edit box and 11 button first 10 buttons are 0,1,2,3,..9.and 11th button is delete.
if u run this i clicked 0123456789 ok now i selected 6789
from mouse and click delte button then 6789 should delte..again if i press any jey it should be after 5.
so please solve my problem
thank u
vasu
|
|
|
|
|
What is the type of the buttons and what is relation between button and editboxes ???
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
i writ a code when we click the button it will display the number in the editbox.
ok
sree
|
|
|
|
|
if u run this i clicked 0123456789 ok now i selected 6789
wat do u mean by selecting 6789???
|
|
|
|
|
now all th numbers what i clicked is in editbox that are 0123456789.now what i done is by usig mouse i click on 6 and drag to 9 after that i click the delete button. so what i want is 6789 should delete after that if click another number it should display after 5.
vasu
|
|
|
|
|
if click another number it should display after 5.
you have buttons with numbers 0-9 on them. and right now u want that if u press any button it should print 5?
|
|
|
|