[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference abbott::visual_basic

Title:Microsoft Visual Basic
Moderator:TAMARA::DFEDOR::fedor
Created:Thu May 02 1991
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2565
Total number of notes:10453

2358.0. "DOS window doesn't exit in win95" by PCBUOA::sheldon.ako.dec.com::Glickler () Thu Jul 11 1996 12:08

T.RTitleUserPersonal
Name
DateLines
2358.1UNTADE::TOWERSFri Jul 12 1996 05:118
2358.2Nope.PCBUOA::sheldon.ako.dec.com::GlicklerFri Jul 12 1996 09:2915
2358.3more PCBUOA::sheldon.ako.dec.com::GlicklerFri Jul 12 1996 12:158
2358.4Change the properties of your BAT shortcut.POBOXA::KEEFERCraig PK03-1/R11, DTN:223-4902Mon Jul 15 1996 10:4016
2358.5Mine is from code.PCBUOA::sheldon.ako.dec.com::GlicklerMon Jul 15 1996 11:0911
2358.6POBOXA::KEEFERCraig PK03-1/R11, DTN:223-4902Mon Jul 22 1996 12:198
2358.7Still confusedPCBUOA::sheldon.ako.dec.com::GlicklerMon Jul 22 1996 13:5920
2358.8Need more helpPCBUOA::sheldon.ako.dec.com::GlicklerMon Jul 22 1996 14:5023
2358.9all donePCBUOA::sheldon.ako.dec.com::GlicklerMon Jul 22 1996 16:3012
2358.10WIN 95 API callsMSDOA::MCLEODMon Aug 19 1996 12:378
2358.11closing DOS windowsTURRIS::twuwuv.zko.dec.com::howerMon Aug 19 1996 14:357
2358.12Here it is:PCBUOA::sheldon.ako.dec.com::GlicklerMon Aug 19 1996 18:3933
2358.13GetModuleUsageMSDOA::MCLEODMon Aug 19 1996 20:389
2358.14synchronous sheellingHIGHD::MELENDEZFri May 16 1997 14:0639
Hello, I am trying to get the run program  subroutine 
running using Visual Basic version 4,  I have not been
able to get the software to compile, I have defined 
the following types and the declare function, but when
I compile the app I get a type ByRef argument type 
mismatch on the third argument in this line of the sub 
routine: 
  r& = CreateProcess(0&, cmdline$, 0&, 0&, 1&, 
	NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc)
Please note that using the alias CreateProcessA the compiler
said that the function didnt exist. Am I missing something that
would allow the compiler to use the allias. Any examples of how
you have done this would be appreciated.  this is a function that
looks to be something that everyone needs, its hard to believe it
is not a function that is defined in VB. 

Thanks Joe 
The following was added to the general object in the declarations
section.

Type SECURITY_ATTRIBUTES
        nLength As Long
        lpSecurityDescriptor As Long
        bInheritHandle As Boolean
End Type
Type PROCESS_INFORMATION
        hProcess As Long
        hThread As Long
        dwProcessId As Long
        dwThreadId As Long
End Type

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