Re: instance()???

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

> > > I thought instance() was supposed to give me a unique handle to the
> > > program?  On my
> > > system, instance() returns the value 4194304 seemingly in all
> > > circumstances in any
> > > program, even if the programs are running simulatenously.  ???
> > > 
> > 
> > Andy:
> > 
> > if you don't think instance() is returning the right value,
> > you can check it with the following function by passing it a NULL.
> > 
> > hInst = GetModuleHandle(null)
> > 
> Same result.  Shouldn't it be different for different programs and different
> instances
> of the same program running at the same time.  It returns 4194304 always. 
> What API
> function would I use to get the unique process id?

Umm, I couuld be waaaay off base here, but if you are running interpreted
code (ie non-compiled) wouldnt it use the same exw.exe every time? =)


Don Phillips - aka Graebel
     National Instruments
     mailto: eunexus @ yahoo.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu