怎么创建多个进程?注意,不是线程

解决方案 »

  1.   

    编译一个exe,再编译一个exe,继续编译N个exe...就是多进程了
    如果是要创建ActiveX EXE,创建工程时选择ActiveX exe..
      

  2.   

    直接用Shell运行多个EXE文件即可
      

  3.   

    ActiveX EXEcreateprocess() api
      

  4.   

    在当前桌面内创建直接用2楼说的"直接用Shell运行多个EXE文件即可",在其它桌面则可用
    http://allapi.mentalis.org/apilist/CreateProcess.shtml
    Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long如要以其它用户身份启动进程请用CreateProcessWithLogon
    http://allapi.mentalis.org/apilist/CreateProcessWithLogon.shtml
      

  5.   

    我就是用active exe
    还要给他传递参数呢
      

  6.   

    1.shell "xxx.exe"
    2.API:winexec "xxx.exe"
    3.CreateProcess