Thursday, July 9, 2009

Interfacing c application with VB GUI.?

for e.g. there is one c application called helloworld.exe, which only print "hello world" to stdio. And i want this output to be printed on textbox of my GUI created in visual basic. I don't want to create any dll for that purpose. please help me.

Interfacing c application with VB GUI.?
There might be a way do do that with threading, but good god man why would you want to?
Reply:I don't think you can do that. You can spawn the outside executable to run, but then it's output will just go to std out. I'm not aware of a way to trap that output in VB and put it somewhere else. Generally, you would want a method inside a DLL you can call that just returns a string to the calling VB program.


No comments:

Post a Comment