application already running

  • Thread starter Thread starter Kenneth Windish
  • Start date Start date
K

Kenneth Windish

Hi,

Using VB6 the following code checks for the application running:

stra = CStr(App.EXEName)
If App.PrevInstance Then
'App = App.UnattendedApp
AppActivate ("MyApplication")

Y = ShowWindow(MyApplication.hwnd, 10)
'App.UnattendedAp

End
End If

What are the evequivalants for the compactframe work?

TIA

Ken
 
Pocket PC will do this automatically for you. For CE, you generated a named
mutex and check to see if it already exists.

-Chris
 
A detailed discussion on the subject for the *full* dot net framework is
given here:
http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx

On PPCs you don't have to do anything to achieve that behaviour; it is the
default. Alex F explains on his blog how it is done, but the internals
shouldn't matter to you anyway.

On custom WinCE devices you have to do extra work similar to what is
described in the first link above. Searching the archives is good:
http://groups.google.com/group/micr...e+instance&qt_g=1&searchnow=Search+this+group

Cheers
Daniel
 
Hi,

Thanks for the info, I appreciate you guys time in answering my question.

Ken
 
Back
Top