|
|
hello all ...
how can i run external app when pressing a button or click on menu ...
iam work in win32 and i need to run flash file
thank you
|
|
|
|
|
F.Smadi wrote:
how can i run external app when pressing a button or click on menu ...
iam work in win32 and i need to run flash file
Try using ShellExecute or CreateProcess API
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
like this:
::ShellExecute(NULL, "open", "iexplore.exe", "your_url.htm", NULL, NULL, SW_SHOWNORMAL);
whitesky
|
|
|
|
|
Look up ShellExecute , ShellExecuteEx , CreateProcess .
Nibu thomas
Software Developer
Programming Tips[^]
|
|
|
|
|
Hi,
U can try this ..
WinExec("pbrush.exe", SW_SHOW);
|
|
|
|
|
F.Smadi wrote: how can i run external app when pressing a button or click on menu ...iam work in win32 and i need to run flash file thank you
try this article:-
http://www.codeproject.com/system/newbiespawn.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
please see MSDN:
This function is provided only for compatibility with 16-bit Windows.
Applications should use the CreateProcess function.
whitesky
|
|
|
|
|
WhiteSky wrote: only for compatibility with 16-bit Windows
But still working though ...
Maxwell Chen
|
|
|
|
|
its in MSDN
whitesky
|
|
|
|
|
WhiteSky wrote: This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Thats good for starting, as user seems to beginner in Windows Programing
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I only said in MSDN was this title right!?
whitesky
|
|
|
|
|
WhiteSky wrote: I only said in MSDN was this title right!?
Right
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thank you for your support
whitesky
|
|
|
|
|
WhiteSky wrote: Thank you for your support
ABA no Thanks please!, i am always there for friend!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
exactly me too
whitesky
|
|
|
|
|
Hi,
I am using following code in MFC ActiveX to handle Exception,
try
{
}
catch(CException *objException)
{
}
But i couldnt find any option to have Exception messages.
Please explain me....
|
|
|
|
|
didn't u see?
CException::GetErrorMessage()
nave
|
|
|
|
|
Naveen R wrote: CException::GetErrorMessage()
Com based error cannot be catched by cException class!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
he didn't asked that
nave
|
|
|
|
|
Naveen R wrote: he didn't asked that
But you can see, where is actual problem is... as you very well know, com exception cannot be caught from CException Class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ok ok
nave
|
|
|
|
|
sivaprakashshanmugam wrote: ry
{
}
catch(CException *objException)
{
}
try catching com based error through _com_error wrapper class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Is there any subset of Win32API that is capable of dealing with TrueType Fonts like picking up a Glyph from the TrueType and rasterizing it.... (While the font is'nt installed in Fonts folder)
Please let me know...
Best regards,
Mohsin Hijazee
Polite Programmer
More Object Oriented then C#
|
|
|
|
|
See AddFontResourceEx( , R_PRIVATE, ) to load a font from a file into the application space.
Once the font is added to the application space you can get a font handle just like you would for a system font, load it into a DC (bitmap), and then write the required text to the DC.
...cmk
Save the whales - collect the whole set
|
|
|
|