Hello everybody,
I have run into a difficult situation. My administrator has some C programs that he just converted from DJGPP to Dev. Since the conversion, he has been having some problems with mouse response in one certain situation. One of the projects starts another instance of itself. He has tried using spawnlp and system to start the second instance. The second instance will start up with no problem, but the mouse input will not work until he clicks off of the window and then back on the window. It is weird, because the scroll wheel on the mouse will work as soon as the second instance opens. I know this is pretty vague, but I will supply all the information I am able to. Anyone have any ideas what would cause mouse input to react that way???????? Here is a snippet from the program that starts another instance of itself. This program is not a true windows program, but it has been designed to have some window functionality. It might have some code that does not make sense, mostly for testing purposes:
Thanks,Code:case KEY_F3 : // spawnlp ( _P_NOWAIT | _P_DETACH, "ragcalc.exe", "ragcalc.exe", NULL ); system ( "start ragcalc.exe" ); sleep ( 2000 ); enable_mouse (); //mc_goto ( ptr ); break;
Kendal



LinkBack URL
About LinkBacks


