Programming Question

Place to talk about all that new hardware and decaying software you have.

Moderator: General Mods

Post Reply
Bent
Lurker
Posts: 193
Joined: Wed Jul 28, 2004 5:16 am

Programming Question

Post by Bent »

I have a small console app written in C that I need to make into a Win32 GUI version. All it needs to do is accept a string, a file name, preferably with a browse button, and have an execute button. I have never written a graphical program in C before and I am having difficulty finding info about it. My coding skills are extremely rusty. Does anyone have any suggestions for places to look for tutorials or code samples?
~Bent
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

Just look up 'win32 tutorial' in Google... tons of information.

It's much easier to make a Win32 GUI program using the Visual C/C++ compiler because you can use a resource editor for the GUI design.

After you've done some research via Google, I'll be happy to answer any specific questions you may have.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
Bent
Lurker
Posts: 193
Joined: Wed Jul 28, 2004 5:16 am

Post by Bent »

Hmm, it appears I was searching too specific earlier, this gives me a lot more useful information. Hopefully this can be done fairly quickly, it's for work but they don't want me speding a whole day on it. If I have questions I will ask, thanks.
~Bent
Bent
Lurker
Posts: 193
Joined: Wed Jul 28, 2004 5:16 am

Post by Bent »

I am having problems creating objects in my main window. I have a menu bar and about box and everything (not really necessary, but good for learning) but my main window is blank and I am a little confused how to change this. I need a simple text box, a browse button, and execute button, then I am pretty much done, most of the actual code is already in place.
~Bent
MisterJones
Trooper
Posts: 387
Joined: Fri Jul 30, 2004 6:25 am
Location: Mexico
Contact:

Post by MisterJones »

You could do a dialog through a resource editor: http://www.relisoft.com/win32/windlg.html
Or perhaps adding them through the program: http://www.foosyerdoos.fsnet.co.uk/
_-|-_
funkyass
"God"
Posts: 1128
Joined: Tue Jul 27, 2004 11:24 pm

Post by funkyass »

yeah, just use a dialog window, not one with a menubar(MDI parent window)
Does [Kevin] Smith masturbate with steel wool too?

- Yes, but don’t change the subject.
Bent
Lurker
Posts: 193
Joined: Wed Jul 28, 2004 5:16 am

Post by Bent »

I have mostly completed it. I ended up going the dialog way, although I edited all the resources by hand since it's a small program. Thanks to everyone who offered/helped :)
~Bent
Post Reply