Visual languages

Post Reply
GORDON
Site Admin
Posts: 56735
Joined: Sun Jun 06, 2004 10:43 pm
Location: DTManistan
Contact:

Post by GORDON »

I've never used visual basic/visual c++ etc.

How do they work?

If I have a program with a shitty dos prompt interface, can visual basic put a nice interface over it?
"Be bold, and mighty forces will come to your aid."
TPRJones
Posts: 13418
Joined: Fri May 21, 2004 2:05 pm
Location: Houston
Contact:

Post by TPRJones »

Yes, but I don't know how to do it.
"ATTENTION: Customers browsing porn must hold magazines with both hands at all times!"
User avatar
Cakedaddy
Posts: 9298
Joined: Thu May 20, 2004 6:52 pm

Post by Cakedaddy »

Yes you can, it's not hard. I'd describe it as assigning all the parts of your program to buttons or gui fields on the form you create. So, pushing button A executes code chunk A, etc. My first app was just a console app, so it appeared as a dos type game. My next one was all gui and stuff. Was a very easy transition. Now, there were no directx graphics and stuff like that. It was just buttons and fields. But, it was not hard to figure out at all. Obviously, it was C++. Visual and C# work the same. What ever your dos app is written in, use the visual version of that language and you'll find it an easy transition, I'm sure.
GORDON
Site Admin
Posts: 56735
Joined: Sun Jun 06, 2004 10:43 pm
Location: DTManistan
Contact:

Post by GORDON »

I had a project in mind about gui'ing the serious sam 2 server.

If we could figure out all the dos commands, we could gui it up so I could run an honest-to-god password protected server.
"Be bold, and mighty forces will come to your aid."
User avatar
Cakedaddy
Posts: 9298
Joined: Thu May 20, 2004 6:52 pm

Post by Cakedaddy »

Except that the game is buggy as hell and damn near unplayable in multi player mode. . .

But, other than that, it sounds like a good idea!! Are you modifying an .ini file, or are they command line parms?

If it's a dos looking app that you are typing things into to change settings once the server is up, then it's beyond the scope of what I've done. But if it's creating/modifying an .ini file by clicking on buttons or selecting check boxes, it would be easy.
GORDON
Site Admin
Posts: 56735
Joined: Sun Jun 06, 2004 10:43 pm
Location: DTManistan
Contact:

Post by GORDON »

Not 100% sure, but I think there's a bunch of DOS commands. I figure learning them once and putting them into a VBasic interface would be the best way to go instead of trying to remember 10 commands each time the game launched.

And there was another SS2 patch a couple weeks ago, and there's not been a lot of whining about it... though it is entirely possible that's because people have given up on it and moved on.
"Be bold, and mighty forces will come to your aid."
TPRJones
Posts: 13418
Joined: Fri May 21, 2004 2:05 pm
Location: Houston
Contact:

Post by TPRJones »

I don't know how to make buttons and stuff outside Excel, but I do know there are commands in Visual Basic that will call up other programs just like you would from a command prompt. If you need help, I can dig up what those commands are, and Cake could tell you how to tie them to buttons. Piece of cake.
"ATTENTION: Customers browsing porn must hold magazines with both hands at all times!"
Vince
Posts: 8624
Joined: Thu May 20, 2004 10:00 pm
Location: In bed with your mom

Post by Vince »

Probably easier to use Visual Basic for something that straight forward.
"... and then I was forced to walk the Trail of Tears." - Elizabeth Warren
DoctorChaos
Posts: 1579
Joined: Fri Oct 08, 2004 7:58 pm

Post by DoctorChaos »

I've always liked using CGI's to put an interface on something. That way you could run it from a remote machine using any operating system with a browser. And html is a simple gui language without a pack command. Personal problem there.
Wadda mean? Other people can read this?!
Malcolm
Posts: 32040
Joined: Fri May 21, 2004 1:04 pm
Location: Minneapolis

Post by Malcolm »

Yea, usually, I'd err on the side of trying HTML/cgi first. VB sucks.
Diogenes of Sinope: "It is not that I am mad, it is only that my head is different from yours."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."
GORDON
Site Admin
Posts: 56735
Joined: Sun Jun 06, 2004 10:43 pm
Location: DTManistan
Contact:

Post by GORDON »

But it wouldn't need to be anything robust. Just some radio buttons and check boxes and a "Launch" button.
"Be bold, and mighty forces will come to your aid."
Malcolm
Posts: 32040
Joined: Fri May 21, 2004 1:04 pm
Location: Minneapolis

Post by Malcolm »

But it wouldn't need to be anything robust. Just some radio buttons and check boxes and a "Launch" button.
Connect a simple html form to a simple-ass python or perl script.
Diogenes of Sinope: "It is not that I am mad, it is only that my head is different from yours."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."
TheCatt
Site Admin
Posts: 57665
Joined: Thu May 20, 2004 11:15 pm
Location: Cary, NC

Post by TheCatt »

or, use ASP or VB.Net behind an ASPX page.
It's not me, it's someone else.
Post Reply