|
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?
|
|
|
|
|
no
i already clicked all the button now in my editbox i have the number 0123456789 if i want delete 6789 from that num what should i do.
|
|
|
|
|
no,in my edit box i have 0123456789.i want to delete 6789 from that number when i click delete button.this delete button also in my dialog.
ok
|
|
|
|
|
should i use rich edit box to overcome this problem.
please tell me
|
|
|
|
|
sree_as wrote: should i use rich edit box to overcome this problem.
Not unless you need some functionality that it provides that a regular edit control does not.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
can u be more detail please
sree.
|
|
|
|
|
You've not provided any requirements that warrant a richedit control. A regular edit control will work just fine.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I think your problem can be solved in both cases. Both of Edit or Rich Edit controls have such programmatic feature.
|
|
|
|
|
can u tell me any examples or any relative links
thank u,
vasu
|
|
|
|
|
If you define a m_cMyEdit control variable for your edit control, then you can delete the selected text using this call:
m_cMyEdit.ReplaceSel("");
Add the above line in the handler for your Delete button.
It will work when something is selected. If your Delete button should delete entire content when nothing is selected, you can try this:
int start, end;
m_cMyEdit.GetSel(start, end);
if( start == end)
{
m_cMyEdit.SetWindowText("");
}
else
{
m_cMyEdit.ReplaceSel("");
}
|
|
|
|
|
thank u,
it's working.
but another small problem.
after deletion if u enter any number all again coming.
please solution for this also
|
|
|
|