Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple GUI program

Status
Not open for further replies.

steveot

IS-IT--Management
Oct 27, 2003
1,635
US
m just starting out on VB and C++.
Not sure which to use.


Im looking to create a GUI interface program that calls on an external cmd line application to convert a file from xml to html. What I need it just to have the user be able to select the source XML file with a browse button. Then select with another browse button where to output the convrted file. Then hit a "Go" Button run the process




A) Select a file from the hardrive

B) The project would pass the file name to and external application with two arguments(input filename, output directory)

Im assuming I want to use the shell statement

So I would be passing the original XML file name selected (file.xml) and passing the output directory to the application. Then user would select GO and the external appliction would convert file.xml to file.htm and save it to the output directory.
 
unless am wrong, this should be kind of difficult to be done. i did a couple research and i found nothing yet. But i'll let u know if i come accross something like that.

WaZda
 
Also, when you say: "m just starting out on VB and C++." I think you mean VB.NET it is easy to confuse the two, VB 6.0 and VB.NET since Micro$oft dumped VB 6.0 and all its users and named a very different language VB.NET.

If that's the case, try gruop for VB.NET

Have fun.

---- Andy
 
This can easily be done in VB

Use the common dialog control to allow file selection. Put the following in the browse buttons click events.

CommonDialog1.ShowOpen
textBox.text = CommonDialog1.FileName

then use the shell command just as you thought

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top