|
PowerBASIC Forums
![]() PowerBASIC for Windows
![]() Tutorial (Page 1)
|
This topic is 2 pages long: 1 2 |
next newest topic | next oldest topic |
| Author | Topic: Tutorial |
|
Steve. T Member |
Does anybody know of any quite basic tutorials for PB/Win ? I used to use PB/DOS some time ago and got into it in a big way; I felt very competent at using it. Looking at the newer Windows version, I'm almost completely stumped at where to start. In my DOS stuff, I generally did it like so: 1. Set global variables. I just can't seem to relate this to the Windows version in quite the same way. Any pointers would be much appreciated!! ------------------ IP: Logged |
|
Bob Zale Administrator |
Steve-- Forum rules require your full name, no handles, nicknames, abbreviations. Please re-register before you post again? Thanks! Bob Zale ------------------ IP: Logged |
|
Steve Thomas Member |
Ok, done, re-registered! Now, can anybody help, please ? ------------------ IP: Logged |
|
Michael Mattias Member |
First thing you have to do is change your mindset. You have to write procedures which RE-act, not PRO-act. In its absolute simplest form, your programs will now look like:
Beaucoup examples of dialogs in help file and here. There, that wasn't so bad now, was it? MCM IP: Logged |
|
Paul Dwyer Member |
Steve, Brad's been getting a few together here ------------------ IP: Logged |
|
Pedro Ramirez Member |
This is going to be tough. The learning curve to windows programing is rather steep but it pays off. I was in the same situation as you and after going through many You must start by readind Hutch's help file. You can get it here: http://www.powerbasic.com/support/forums/Forum10/HTML/000006.html After that don´t fool around and get a copy of Petzold´s Windows Programming. On the side and as reference get the Win32 Helpfile which you can download at http://www.powerbasic.com/files/pub/mstools For up-to-date info on the windows API go to this address: http://msdn.microsoft.com/library/default.asp?url=/li brary/en-us/shellcc/platform/commctls/listview/listview_overview.asp
------------------ [This message has been edited by Pedro Ramirez (edited June 30, 2004).] IP: Logged |
|
Steve Thomas Member |
Thanks guys, I'll take a look at some of these! ------------------ IP: Logged |
|
Tonny Bjorn Member |
Hi Steve, I would like to mention Borje's POFFS: http://www.tolkenxp.com/pb/ Best regards Tonny [This message has been edited by Tonny Bjorn (edited June 30, 2004).] IP: Logged |
|
Roger Rines Member |
Steve, A few years back I was in the same situation that you describe. To make the transition, I began working exclusively with the CONSOLE compiler creating DOS-style screen applications. Many of the applications I have been writing in Power BASIC are tools and programs originally developed in Turbo Pascal, Quick C and in Quick Basic 3 to PDS 7.1. All during the 90s I wrote some stuff in all the various versions of Visual Basic up to VB-6, but never liked how difficult it was to distribute the VB applications. They also ran slower than the programs they replaced so something else was needed. It was that dissatisfaction with the DOS limitations and the size and clutter that goes along with a VB application that drove me to Power BASIC about three+ years ago. Getting started with Power Basic was made easy for me because I had the If the DOS-Style screens are workable for what you want, then the CONSOLE On the surface many people think EZGUI is just a designer or another version From a productivity perspective, I’ve converted more tools and created more With all that said, if you need tutorials to get started, the road is going Here are some links: Good Luck, and Welcome to PB. ------------------ IP: Logged |
|
Brad D Byrne Member |
Steve, hehe, don't let Roger's "two year" comment mis-lead you.. while EZGUI is pretty good.. and may be a dirrection you may wish Brad ------------------ [This message has been edited by Brad D Byrne (edited June 30, 2004).] IP: Logged |
|
Brad D Byrne Member |
Pedro write's: '...DO NOT ENGAGE IN READING CODE SAMPLES. IT WON´T HELP. also ask lots of questions.. for not only will they help you.. ------------------ IP: Logged |
|
Steve Thomas Member |
Thanks again guys for all the info here. Its really going to help, in fact it has already started to help. Mind you, I reckon I found the most important thing I'm likely to come across, ever : #BLOAT Microsoft_Size -or- #BLOAT My_First_App_Was_17K ------------------ IP: Logged |
|
Joe Byrne Member |
Steve, Unlike Brad, I own and use EZGUI and have done things both ways. I can tell you without a doubt, the fastest way to learn Windows programming is with PBWin and EZGUI, period. Since that fact can only be stated from one who has done things both ways, I'm willing to bet you won't find a single EZGUI customer who will disagree. I was in the same place as you a few years back. I did a lot of DOS programming but just couldn't get my mind around the "Windows ways". I looked at all the stuff in the forum (I've been part of this forum since its days on CompuServe and PBs own BBS). There are excellent examples here and un-arguable the finest group of programmers you'd want to meet, but that alone does not always make the jump from DOS to Windows easy or doable. Many people here have used other Windows Compilers (C, C++, and Visual Basic). I had never touch a Windows compiler prior to PB's first Win product. After many months, (14-16?) I still was not able to produce the kind and quality of application I wanted. Then Chris humbly told me about his EZGUI program. I bought it, spent less than 2 weeks playing with it, and wrote my first full-fledged Windows application. That program has sold over 100 copies (not bad since it is only sold by direct sales, not Internet). But after I wrote the initial app the lightbulbs really began to go off. Suddenly I wanted to add some features that EZGUI didn't have "built-in". So, with Chris's help, he showed me how to incorporate the Win API into my EZGUI program and a whole new world opened up. Because I was able to "see" how the function actually worked in MY program, I was able to better understand the whole Windows 'thing'. I wasn't able to see that before EZGUI entered the picture. Now with version 3, I can say that my apps are bigger, faster, more feature rich, and much more polished than ever before, and I'm proud to say that I don't have to include the bloated WinAPI file in any of my programs. Chris has done an absolutely marvelous job at creating a very small DLL engine that gives me all the tools I need. Much like PB programmers like to challenge C programmers to see who can do something easier, faster, and/or smaller, I've seen how much code people use to do "simple" things like using listviews controls, tab controls, and the mystical 'sub-classing'. Its amazing how many lines of code it takes with "traditional" PB style when I only need 1 or 2. I don't know what your needs are professionally, but I can tell you from experience, if you need or want to leverage your DOS skills and jump into the World of Windows, the investment in EZGUI will be well worth the money. Chris's support is second to none also. He has taught me more about how Windows actually works that I have ever learned elsewhere. Truly, the combination of Chris's EZGUI and support with PB and this forum is clearly the best way to get into Windows application development. Hands-down. ------------------ IP: Logged |
|
Russ Srole Member |
Steve, I second & third all that Roger & Joe have written. If your goal is to be a windows guru then you should drink deep in the api cup. However, if you're like me, and have to make a living and get things done then Ezgui is the way to go. You will be able to make your apps much more polished in a lot less time then you think. At one piont Chris had some screen shots on his web site, I don't see them there anymore, but I'd bet he would email them if you asked. If you want to post your email address, I'll email some screen snaps of mine. Russ ------------------ IP: Logged |
|
Elias Montoya Member |
Hello Steve, First off, let me tell you that you have fallen in the hands of VERY GOOD tutors, just dont be afraid of windows and you will know a lot in no time. The sintax of Power basic lets you focus on Windows stuff, if you I dont consider my self one of the geniuses here, but if i can Elias ------------------ Do you need a grid In your App?.... Try the Egrid32 Demo: IP: Logged |
This topic is 2 pages long: 1 2 All times are EasternTime (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1999-2007 PowerBASIC, Inc. All Rights Reserved.