Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Shell is returning a long instead of an integer

Posted on 1998-04-06
1
Medium Priority
?
306 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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 …
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

688 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