![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
running my programs EXE from VB will not "printf" to screeni have written a program in C and it works fine when i run its EXE from Windows Command Line (cmd) or just double click it.
but from unknown reason (unknown for me that is) when i run it from a different program i have written in Visual Basic it will not print to screen while it will do its job perfectly. this is my code in VB ArgumentString_Processing = CSVPathString & "\ " & Mid(Extraction_tmpList.Item(j), 5, 4) & " " & Extraction_tmpList.Item(j) Process.Start(EXEPathString & "Proc20.exe", ArgumentString_Processing) the "Proc20.exe" is the program i wrote in C again, it works fine but will not write anything in the window like it would if i run its EXE from the windows cmd or double click in the C program i used "printf" through-out the code. any help / thoughts would be appriciated . thanks |
|
#2
|
||||
|
||||
Re: running my programs EXE from VB will not "printf" to screenVB does not run in a console window, therefore the output won't be displayed in the VB window. The progam is probably opening a console window to run, and when the program exits, the window closes. Try adding getchar() to the bottom of your program just before the return statement.
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#3
|
|||
|
|||
Re: running my programs EXE from VB will not "printf" to screenyes the VB program opens a console window to run
i tried "getch()" i tried fprintf(stdout,"text") tried cout<< "text" , nothing... |
|
#4
|
|||
|
|||
Re: running my programs EXE from VB will not "printf" to screeni am so so stupid...!!!! after all the testings i made i just needed to use cprintf and chage the color with textcolor !!!!
weird! the most obvuise solution is always right there where you would least expect it... this thread is solved, thanks everyone. |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help with a console menu system | BullBuchanan | CPP / C++ Forum | 6 | 20-Aug-2006 14:46 |
| win32 file opening and running other programs | Tomb332 | CPP / C++ Forum | 1 | 17-Aug-2006 08:53 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The