Click here to Skip to main content
16,014,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: user validation in vb.net Pin
Dave Kreskowiak1-Jun-04 15:08
mveDave Kreskowiak1-Jun-04 15:08 
GeneralSounds-playing in VB 6.0 Pin
Boggahutt871-Jun-04 12:58
Boggahutt871-Jun-04 12:58 
GeneralRe: Sounds-playing in VB 6.0 Pin
Dave Kreskowiak1-Jun-04 15:14
mveDave Kreskowiak1-Jun-04 15:14 
GeneralRe: Sounds-playing in VB 6.0 Pin
Boggahutt871-Jun-04 16:06
Boggahutt871-Jun-04 16:06 
Questionhow to -" Pin
soul.ripper1-Jun-04 11:37
soul.ripper1-Jun-04 11:37 
AnswerRe: how to -" Pin
skoizumi291101-Jun-04 14:54
sussskoizumi291101-Jun-04 14:54 
AnswerRe: how to -" Pin
Dave Kreskowiak2-Jun-04 3:04
mveDave Kreskowiak2-Jun-04 3:04 
GeneralRe: how to -" Pin
soul.ripper2-Jun-04 10:28
soul.ripper2-Jun-04 10:28 
Going to use it for CreateProcessA

<br />
Public Function ExecuteAndWait(cmdline$)<br />
On Error GoTo Error<br />
<br />
    Dim NameOfProc As PROCESS_INFORMATION<br />
    Dim NameStart As STARTUPINFO<br />
    Dim x As Long<br />
    Dim WorkingDirectory As String<br />
    Dim Path As String<br />
<br />
Path = cmdline$<br />
WorkingDirectory = Mid(Path, 1, InStrRev(Path, "\") - 1)<br />
<br />
MsgBox WorkingDirectory<br />
   GoTo Quit<br />
    NameStart.cb = Len(NameStart)<br />
    x = CreateProcessA(0&, cmdline$, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, WorkingDirectory, NameStart, NameOfProc)<br />
    x = WaitForSingleObject(NameOfProc.hProcess, INFINITE)<br />
    x = CloseHandle(NameOfProc.hProcess)<br />
    <br />
Exit Function<br />
Error:     ' Error handling<br />
MsgBox "Run-Time Error number " & Err.Number & vbCrLf & Err.Description, vbOKOnly + vbCritical, "CreateProcess"<br />
GoTo Quit<br />
Quit:<br />
End Function<br />


i cant find declare sampels with api text viewer

<br />
GetFullPath declared like this : ?<br />
<br />
Public Declare Function GetFullPath Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long<br />
<br />
<br />
GetPathRoot declared like this : ?<br />
<br />
Private Declare Function GetPathRoot Lib "gdi32.dll" (ByVal hdc As Long, ByRef lpPoint As POINTAPI, ByRef lpTypes As Byte, ByVal nSize As Long) As Long<br />
<br />
<br />


thanks for helping

jeroen
GeneralRe: how to -&quot; Pin
Dave Kreskowiak2-Jun-04 12:10
mveDave Kreskowiak2-Jun-04 12:10 
GeneralRe: how to -&quot; Pin
soul.ripper3-Jun-04 6:29
soul.ripper3-Jun-04 6:29 
GeneralRe: how to -&quot; Pin
Dave Kreskowiak3-Jun-04 12:17
mveDave Kreskowiak3-Jun-04 12:17 
QuestionHow can I insert a new column in database table at the desired place? Pin
ATC1-Jun-04 11:33
ATC1-Jun-04 11:33 
AnswerRe: How can I insert a new column in database table at the desired place? Pin
Dave Kreskowiak2-Jun-04 2:56
mveDave Kreskowiak2-Jun-04 2:56 
GeneralRe: How can I insert a new column in database table at the desired place? Pin
ATC2-Jun-04 5:15
ATC2-Jun-04 5:15 
AnswerRe: How can I insert a new column in database table at the desired place? Pin
^eleK2-Jun-04 9:23
^eleK2-Jun-04 9:23 
QuestionHow to catch all that is doing on a computer Pin
marclenoir20051-Jun-04 11:22
marclenoir20051-Jun-04 11:22 
AnswerRe: How to catch all that is doing on a computer Pin
Dave Kreskowiak2-Jun-04 2:37
mveDave Kreskowiak2-Jun-04 2:37 
GeneralLet's make it more simple. Pin
Anonymous2-Jun-04 10:31
Anonymous2-Jun-04 10:31 
GeneralRe: Let's make it more simple. Pin
Dave Kreskowiak2-Jun-04 12:06
mveDave Kreskowiak2-Jun-04 12:06 
GeneralMimic rtlMoveMemory for Speed Pin
Pugman8121-Jun-04 9:42
Pugman8121-Jun-04 9:42 
GeneralRe: Mimic rtlMoveMemory for Speed Pin
Dave Kreskowiak1-Jun-04 15:22
mveDave Kreskowiak1-Jun-04 15:22 
Generalwinsock error Pin
GaryKoh1-Jun-04 4:24
GaryKoh1-Jun-04 4:24 
GeneralRe: winsock error Pin
Dave Kreskowiak1-Jun-04 4:31
mveDave Kreskowiak1-Jun-04 4:31 
GeneralRe: winsock error Pin
GaryKoh1-Jun-04 5:24
GaryKoh1-Jun-04 5:24 
GeneralRe: winsock error Pin
Dave Kreskowiak1-Jun-04 5:53
mveDave Kreskowiak1-Jun-04 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.