|
Hi All
I have created a service and when i am trying to run it then it is throughing some run time error and show exception in this vswprint.c file
and the lines is
_SWPRINTFS_ERROR_RETURN_FIX
so what kind of error it is and how will i resolve it.
With Regards
RYK
|
|
|
|
|
Can you more explain about your program?
|
|
|
|
|
VC_RYK wrote: some run time error
That's as specific as you can be?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I developed my application to check if another instance of the application is running, and if it is, I'm trying to bring the 'already' open applications window to the foreground. I have tried this:
I have also tried SetForegroundWindow() without success. Note that this code is executed in the second instance of the application, just before it closes itself.
HWND hWnd = FindWindow(NULL, "Appname");
ShowWindow(hWnd, SW_RESTORE);
[MOD]
What about using: What message can I send????
LRESULT SendMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Many Thanks
Regards,
-- modified at 7:49 Friday 29th June, 2007
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Read this[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks for the link ...
So, when using SendMessage() , what message can I send ??
Many Thanks
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: So, when using SendMessage(), what message can I send ??
In order to do what?
If this is related to your original question the answer can be found in the article I linked to. You will also find an explanation to why you should do it the way the article suggests.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: In order to do what?
To show the window ....
But thanks for the help ... but this works
SendMessage(hWnd, WM_SHOWWINDOW, NULL, NULL);
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
You can use of Semaphore.
|
|
|
|
|
|
You're welcome.
|
|
|
|
|
Hello Guru's
I am making application in vc++ as Modal dialog based. I want to run another application in it. Like.
case 1: When i press ok button a SDI application run.
case 2: When i press ok button a PHP Script run.( I don't know its possible or not , I think we can it )
if any body have any idea please mail me or give a link of such type of article.
Regard's
Kaushik
|
|
|
|
|
Hi,
you can launch the script and the other application via a ShellExecute, but i never heared about
a embedded application in an application.
But propably it exists, but i never see something like this
Good luck
|
|
|
|
|
Do you want to use of CreateProcess or ShellExecute .
|
|
|
|
|
I make a application ( Program )in MFC Modal Dialog based now.
Suppose i make a button in any form . I need when i press it
an SDI Application open ( I don't know Its possible or not)
If Yes How can we call SDI program .
How we will be set depedency between project.
Regard's
Kaushik
|
|
|
|
|
If you want to run a program of your program you can use of those functions is your purpose ? and do you want to send data to that program?
|
|
|
|
|
u can try this
STARTUPINFO Startup;
PROCESS_INFORMATION ProcessInfo;
if (!CreateProcess(NULL,"Your application path",NULL,NULL,TRUE,NORMAL_PRIORITY_CLASS,
NULL,NULL,&Startup,&ProcessInfo))
Regards,
Sakthi
|
|
|
|
|
|
|
There's snails inside your PC. I could be wrong, but I'd have to see your code to know for sure.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Deleting your message (unless it's a duplicate) is considered rude.
______________________
stuff + cats = awesome
|
|
|
|
|
Can anyone tell me how to write des application
|| ART OF LIVING ||
|
|
|
|
|
Hi,
Did you mean: write dos application ??
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Do you want to write Console program?
|
|
|
|