delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/23/13:15:16

From: gvector1 AT bellsouth DOT net (Kendal)
Newsgroups: comp.os.msdos.djgpp
Subject: Processes
Date: 23 Apr 2003 10:03:09 -0700
Organization: http://groups.google.com/
Lines: 35
Message-ID: <d84670e0.0304230903.52da35a5@posting.google.com>
NNTP-Posting-Host: 65.83.91.34
X-Trace: posting.google.com 1051117390 13678 127.0.0.1 (23 Apr 2003 17:03:10 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 23 Apr 2003 17:03:10 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello fellow programmers.

I have a question for anyone who might can answer it.  Actually it is
2 questions.  Here we go.

Question 1??
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????????

Question 2??
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,
Kendal

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019