Click here to Skip to main content
16,006,768 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ActiveX VB Pin
Michael.Weiss20-Mar-02 0:25
Michael.Weiss20-Mar-02 0:25 
GeneralRe: ActiveX VB Pin
David Wengier20-Mar-02 1:11
David Wengier20-Mar-02 1:11 
GeneralRe: ActiveX VB Pin
Michael.Weiss20-Mar-02 1:18
Michael.Weiss20-Mar-02 1:18 
GeneralRe: ActiveX VB Pin
Gerosa9-Apr-02 8:58
Gerosa9-Apr-02 8:58 
QuestionHow to convert 16-Bit colors to 32-Bit: Pin
18-Mar-02 12:42
suss18-Mar-02 12:42 
AnswerRe: How to convert 16-Bit colors to 32-Bit: Pin
Paul M Watt21-Apr-02 13:31
mentorPaul M Watt21-Apr-02 13:31 
Generalcatching string from DOS shell Pin
mohith18-Mar-02 6:37
mohith18-Mar-02 6:37 
GeneralRe: catching string from DOS shell Pin
Jeremy Falcon18-Mar-02 10:47
professionalJeremy Falcon18-Mar-02 10:47 
The easiest way I know of is to have the standard output (STDOUT) redirected to a text file. You could use some console functions or the ReadFile() API, but that involves more work on your part. Anway, to be able to have the output in VB use the ShellExecute() API.

Private Const SW_HIDE = 0

Private Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, _
    ByVal lpParameters As String, ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) As Long

Then, call your exe make sure to redirect the output in the parameter parameter.

ShellExecute Me.hwnd, "open", "my.exe", "> output.txt", "C:\", SW_HIDE

The program's output will be in output.txt, which will reside in the same dir as the exe you called.

Good luck,


Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
GeneralRe: catching string from DOS shell Pin
mohith19-Mar-02 12:07
mohith19-Mar-02 12:07 
GeneralRe: catching string from DOS shell Pin
Jeremy Falcon20-Mar-02 4:26
professionalJeremy Falcon20-Mar-02 4:26 
GeneralRe: catching string from DOS shell Pin
mohith20-Mar-02 11:44
mohith20-Mar-02 11:44 
GeneralRe: catching string from DOS shell (phew) Pin
Jeremy Falcon22-Mar-02 5:33
professionalJeremy Falcon22-Mar-02 5:33 
GeneralRe: catching string from DOS shell (phew) Pin
mohith23-Mar-02 11:27
mohith23-Mar-02 11:27 
GeneralRe: catching string from DOS shell (phew) Pin
Jeremy Falcon25-Mar-02 3:25
professionalJeremy Falcon25-Mar-02 3:25 
GeneralActiveX with VB Pin
Jerome Conus17-Mar-02 21:28
Jerome Conus17-Mar-02 21:28 
GeneralRe: ActiveX with VB Pin
Jeremy Falcon18-Mar-02 10:02
professionalJeremy Falcon18-Mar-02 10:02 
GeneralJava/Swing Pin
fsb6617-Mar-02 17:56
fsb6617-Mar-02 17:56 
Questionhow can i send picture on plotter through VB programe Pin
talha17-Mar-02 10:17
talha17-Mar-02 10:17 
Generalhelp with downloading from a login/pass web using php (repost) Pin
17-Mar-02 6:45
suss17-Mar-02 6:45 
GeneralPlease help me ! answer something! Pin
31-Mar-02 11:19
suss31-Mar-02 11:19 
Generalconerting path Pin
mohith17-Mar-02 2:57
mohith17-Mar-02 2:57 
GeneralRe: conerting path Pin
Jeremy Falcon18-Mar-02 3:22
professionalJeremy Falcon18-Mar-02 3:22 
QuestionHow can I pass animation from Flash5 to VB6 ?? Pin
Ahuva14-Mar-02 2:31
Ahuva14-Mar-02 2:31 
GeneralVBS & Excel Files Pin
king_ging13-Mar-02 23:18
king_ging13-Mar-02 23:18 
Questionhow to create a reusable control program for web database. Pin
11-Mar-02 1:42
suss11-Mar-02 1:42 

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.