I was beginning to worry when I couldn't access the forum yesterday and this morning. It is good to see it back up and running. Anyway, to the questions at hand.
I have a question for anyone who might can answer it. Actually it is 2 questions. Here we go.
My administrator and I are building a Medical Records system. He has used a lot of his old code written in DJGPP to basically design a command line version of a MRS(Medical Records System). The problem comes in when he calls an Image viewing program that is written in Visual C++.NET. This is a true windows app written using MFC. He can run his program fine and call the image viewer okay. But he does not have focus back on his program. We have tried using SPAWNLP with a P_NOWAIT option. The program compiles and runs, but the image view window does not come up at all. We have also tried the System command Start ImageViewer, still the same results. When calls it normal without returning focus, it works. Why would SpawnLP and System command Start, not work with DJGPP????????
We have designed a workaround for this problem. We used a console program designed in DEV C++. The DJGPP program calls the DEV program which in turn "SPAWN"'s or "START"'s the image view program. When that happens, the program runs, process is returned to the main program(DJGPP) and the imageview window opens, but it takes about 10 to 15 seconds to open. We think the problem is that the main program receives focus directly back and takes up memory causing the imageview window to open slowly. The question is, How can we control Process Priority? How can we adjust the priority that a program is running in? Say for instance, we wanted to give the Image Viewing program higher running priority than the main application. Can anyone tell me or even refer me in the direction to learn how???
Thanks a million in advance,