I've been using an iPaq 3800 & 3900 devices and the code below works just
fine. But on a Toshiba with PPC 2003 runtime files everytime I execute this
code it starts a new instance of the program instead of reactivating the
current instance in memory. Therefore I get several instances of the same
program running at the same time. Can anyone help????

Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW" _
(ByVal pszImageName As String, ByVal pszCmdLine As String, ByVal
psaProcess As Long, _
ByVal psaThread As Long, ByVal fInheritHandles As Long, ByVal fdwCreate As
Long, _
ByVal pvEnvironment As Long, ByVal pszCurDir As Long, ByVal psiStartInfo
As Long, _
ByVal pProcInfo As String) As Long

lResult = CreateProcess("\Windows\pvbload.exe", "\Storage Card\Program_
Files\MobileLink\MobileLink4.vb", 0, 0, 0, 0, 0, 0, 0, "")

PS: I developing in evb until I master c# or vb.net

Thanks in advance,
steve

Re: oops - PocketPC 2003, Toshiba by Mike

Mike
Tue Nov 11 18:54:11 CST 2003

I dunno, but I have Toshiba 755 (PPC2003), and when I use CreateProcess() it
re-activates the existing instance of whatever I'm calling. That
re-activation is the responsibility of the program being called, not the
caller.

---Mike
http://www.todayplayer.com


"Steve" <sblackford@prognote.com> wrote in message
news:gvUrb.45113$Ec1.3184800@bgtnsc05-news.ops.worldnet.att.net...
> I've been using an iPaq 3800 & 3900 devices and the code below works just
> fine. But on a Toshiba with PPC 2003 runtime files everytime I execute
this
> code it starts a new instance of the program instead of reactivating the
> current instance in memory. Therefore I get several instances of the same
> program running at the same time. Can anyone help????
>
> Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW"
_
> (ByVal pszImageName As String, ByVal pszCmdLine As String, ByVal
> psaProcess As Long, _
> ByVal psaThread As Long, ByVal fInheritHandles As Long, ByVal fdwCreate
As
> Long, _
> ByVal pvEnvironment As Long, ByVal pszCurDir As Long, ByVal psiStartInfo
> As Long, _
> ByVal pProcInfo As String) As Long
>
> lResult = CreateProcess("\Windows\pvbload.exe", "\Storage Card\Program_
> Files\MobileLink\MobileLink4.vb", 0, 0, 0, 0, 0, 0, 0, "")
>
> PS: I developing in evb until I master c# or vb.net
>
> Thanks in advance,
> steve
>
>