Teen Programmers Unite  
 

 

Return to forum top

perl for windows OS

Posted by have_dinner [send private reply] at July 22, 2001, 07:13:01 PM

apart from the obvious fact that perl is used in CGI scripting... can you use it to create windows programs at all??? like, when i'm trying to teach myself a few languages, i get so uninterested as all they show you how to do is print to the page and do maths... i already know that... but what I want is to create actually programs, like, programs for windows... any help would be much appreciated.

Sam
have_dinner@hotmail.com

Posted by taubz [send private reply] at July 22, 2001, 07:56:02 PM

No.

Posted by lordaerom [send private reply] at July 22, 2001, 08:11:05 PM

Yes.
One example (I'm sure there are others....) is using Perl with Tk, a widget set/windowing system, from what I understand.

http://www.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html#ActiveState
^-- That may help get you started.

Posted by have_dinner [send private reply] at July 22, 2001, 10:36:39 PM

another thing... what about C++??? how far into a beginners book until you're acgtually making programs for windows?

Posted by gian [send private reply] at July 22, 2001, 10:44:58 PM

have_dinner: Well, here's a nice little example:
A few years back I went out and bought a Java book - Java for dummies, with the intention of learning Java. This book, as it turned out was actually about getting applets off other peoples pages, it didn't even contain any Java code!

The point of this story: Sometimes very quickly, sometimes... never.

Posted by lordaerom [send private reply] at July 22, 2001, 11:35:42 PM

A book about learning C++ will nearly invariably contain nothing about GUI programming. Your first 'program' will be for windows, however. It will just be a console program, not a graphical one. Using C++ to write Windows applications ca be simplified beyond the windows API, but, even that requires a good understanding of C++, so, if you want to use it, you will be a while learning it. I can't think of any books off hand that teach C++ via graphical programs, because it adds a lot more, unnecessarily when you're just learning language constructs.

But Java's fun too.
And a lot easier to make graphical stuff in, as well as being an 'easier' language to learn, though that's very subjective.

Posted by grandsnafu [send private reply] at July 23, 2001, 05:13:33 PM

You can use c/c++ with gtk+ for windows. I don't know if it's the same as coding for linux, but that's the point of the project so it probably is.
http://user.sgic.fi/~tml/gimp/win32/

Oh yeah. The front page of tpu has Psion's article on win32 gui programming.
http://www.tpu.org/tea/Article./cg-20/id-39/sc-1

Posted by shroomrefic29 [send private reply] at July 27, 2001, 05:20:04 PM

Well the reason for very scarce information on GUI programming is it's variance across OS's. The Window API can be complicated when making GUI programs. A minimal skeletal program is 50 lines long, and a full blown application is thousands.

However, there is help. Microsoft and other 3rd party vendors have made wrappers for making Windows GUI programs, Which greatly reduces the amount of time you spend writing code.

I suggest you master C++ well before heading into Serious Windows GUI programming, It's not that it's hard but rather complicated.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.