Solved

Shell is returning a long instead of an integer

Posted on 1998-04-06
1
287 Views
Last Modified: 2013-11-08
I'm trying to use GetModuleUsage to determine when a fortran
program is done running.  My code looks like this

RetVal = shell("fortran.exe")

do while getmoduleusage(retval) > 0
   doevents
loop


The problem is that Shell is returning a long for RetVal
and GetModuleusage expects an integer.

I can't seem to make getmoduleusage accept a long.
so I seem to be stuck.
What do I do?
0
Comment
Question by:PhilHorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
Dalin earned 100 total points
ID: 1460536
PhilHorn:
You can use the createprocess API.
If you use 32 bits VB, check
http://support.microsoft.com/support/kb/articles/q129/7/96.asp

if 16 bits,
http://support.microsoft.com/support/kb/articles/q178/1/16.asp

Any problms, let me know.
Regards
Dalin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question