How can I run another application?

  • Thread starter Thread starter Sven Rutten
  • Start date Start date
S

Sven Rutten

Hello
I want to code this:

by clicking on a button, I want to start another application..
In VB 6 it is:
shell(xxxx)

Can this be done in CF-Framework?

Thanks
 
Hi

You can P/Invoke CreateProcess

Public Declare Function CreateProcess Lib "coredll.dll" Alias "CreateProcess" (ByVal imageName As String, ByVal cmdLine As String, ByVal lpProcessAttributes As Integer, ByVal lpThreadAttributes As Integer, ByVal boolInheritHandles As Int32, ByVal dwCreationFlags As Int32, ByVal lpEnvironment As Integer, ByVal lpszCurrentDir As Integer, ByVal si As Integer, ByVal pi As Integer) As Intege

And then call it in code

CreateProcess("App.exe","",0,0,0,0,0,0,0,0

hth
 
Back
Top