Solved

Shell is returning a long instead of an integer

Posted on 1998-04-06
1
258 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now