Re: [WIN] run only one instance of selected program

new topic     » goto parent     » topic index » view thread      » older message » newer message

I stuck it in right after the include of win32lib.ew
like this and it works for me..

include win32lib.ew

 if setAppName("Win32Lib IDE") != 0 then
     abort(0)
 end if

include xpm_icon.e
include ide_xpm.ew
include ruler.ew    --Travis Beaty
include shrtPath.ew --Wolf Fritz


With this you wont be able to start another instance
of the IDE as long as both copies your trying to
run have this code in it.

e.g:
If you have an already compiled IDE.exe that doesnt
have this code then sure, it will run.

Euman
euman at bellsouth.net


----- Original Message ----- 
From: "Judith" <camping at txcyber.com>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, June 24, 2001 04:27
Subject: RE: [WIN] run only one instance of selected program


> 
> 
> 
> Euman wrote:
> > Add this to the top of the IDE
> > 
> > if setAppName("Win32Lib IDE") != 0 then
> >     abort(0)
> > end if
> > 
> > this adds only one instance to run at any one time.
> 
> I tried using this and more than one IDE can be started. Where does the 
> "Win32Lib IDE" come from? I use that only in my About box.
> 
> Judith
> > 
> > Euman
> > euman at bellsouth.net
> > 
> > 
> > ----- Original Message ----- 
> > From: <DanMoyer at PRODIGY.NET>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Saturday, June 23, 2001 21:54
> > Subject: [WIN] run only one instance of selected program
> > 
> > 
> > > > 
> > > 
> > > I have a button in my RunDemos which causes the IDE to run, (and another
> > > which causes Wolfgang's Tutorial to run); but if the IDE were already
> > > running, I would want the button *not* to cause another instance of the 
> > > IDE
> > > to run, but just bring up the already running instance.  I've looked at
> > > Wolf's examples which relate (kick-it 1,2&3), but can't figure out how 
> > > to do
> > > it.
> > > 
> > > Help!
> > > 
> > > Dan Moyer
> > > 
> > > 
> > > 
> > > > 
> > > > 
> > > > 
> > 
> > 
> > 
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu