Click here to Skip to main content
16,008,954 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Documenting .NET classes Pin
Mike Ellison27-Jan-04 14:31
Mike Ellison27-Jan-04 14:31 
GeneralComparing the cells of DataGrid Pin
KennyGreg27-Jan-04 11:34
KennyGreg27-Jan-04 11:34 
GeneralRe: Comparing the cells of DataGrid Pin
gpa200029-Jan-04 21:16
gpa200029-Jan-04 21:16 
GeneralAny idea about editing mpeg2 files Pin
habiburrehman27-Jan-04 4:17
habiburrehman27-Jan-04 4:17 
QuestionRun a Visual C++ program from VB Script and get a return value ?? Pin
bjolletts27-Jan-04 2:14
bjolletts27-Jan-04 2:14 
AnswerRe: Run a Visual C++ program from VB Script and get a return value ?? Pin
TheAphextwin27-Jan-04 10:41
TheAphextwin27-Jan-04 10:41 
GeneralRe: Run a Visual C++ program from VB Script and get a return value ?? Pin
bjolletts28-Jan-04 21:08
bjolletts28-Jan-04 21:08 
AnswerRe: Run a Visual C++ program from VB Script and get a return value ?? Pin
Dave Kreskowiak28-Jan-04 3:43
mveDave Kreskowiak28-Jan-04 3:43 
You can do that using the Exec method of the WScript.Shell object. The Exec method will return a WshScriptExec object that can be used to monitor the status of the running program, its exit code, and get to it StdIn, StdOut, and StdErr streams.

The docs on the WshShell.Exec method start here[^].

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("MyCApp.exe")

Do While oExec.Status = 0
     WScript.Sleep 100
Loop

WScript.Echo oExec.ExitCode



RageInTheMachine9532
GeneralRe: Run a Visual C++ program from VB Script and get a return value ?? Pin
bjolletts28-Jan-04 21:09
bjolletts28-Jan-04 21:09 
GeneralDatagrid related question ? (vb.net) Pin
Tridip Bhattacharjee27-Jan-04 0:38
professionalTridip Bhattacharjee27-Jan-04 0:38 
GeneralRe: Datagrid related question ? (vb.net) Pin
KennyGreg27-Jan-04 11:30
KennyGreg27-Jan-04 11:30 
GeneralReading image data within an IPicture Pin
Toxsophilus26-Jan-04 22:47
Toxsophilus26-Jan-04 22:47 
GeneralExport to microsoft excel Pin
Lim Goh Tong26-Jan-04 22:20
Lim Goh Tong26-Jan-04 22:20 
GeneralVB.NET and Images Pin
prasams26-Jan-04 17:23
prasams26-Jan-04 17:23 
GeneralForm problem Pin
RJGCarey26-Jan-04 11:43
RJGCarey26-Jan-04 11:43 
GeneralShow Open file dialog after MDI window is shown Pin
.NET Guy26-Jan-04 11:37
.NET Guy26-Jan-04 11:37 
Generalexcel to C++ Pin
Goh Hui Beng26-Jan-04 4:02
Goh Hui Beng26-Jan-04 4:02 
GeneralRe: excel to C++ Pin
Lim Goh Tong26-Jan-04 22:03
Lim Goh Tong26-Jan-04 22:03 
GeneralCrystal Report - Error... Pin
Sarvesvara (BVKS) Dasa25-Jan-04 23:47
Sarvesvara (BVKS) Dasa25-Jan-04 23:47 
GeneralGet shared folders Pin
radhika8125-Jan-04 18:02
radhika8125-Jan-04 18:02 
GeneralMap & disconnect drives Pin
radhika8125-Jan-04 18:00
radhika8125-Jan-04 18:00 
GeneralRe: Map & disconnect drives Pin
Mike Dimmick26-Jan-04 3:16
Mike Dimmick26-Jan-04 3:16 
GeneralGet all directories and subdirectories Pin
ltt1925-Jan-04 13:18
ltt1925-Jan-04 13:18 
GeneralRe: Get all directories and subdirectories Pin
Colin Angus Mackay25-Jan-04 13:26
Colin Angus Mackay25-Jan-04 13:26 
GeneralRe: Get all directories and subdirectories Pin
ltt1925-Jan-04 13:41
ltt1925-Jan-04 13:41 

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.