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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top