Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Standard C, C++

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2003, 07:58 PM   #1 (permalink)
ntws01
Registered User
 
ntws01's Avatar
 
Join Date: Mar 2003
Location: Canada
Posts: 15
ntws01 is on a distinguished road
Send a message via Yahoo to ntws01
What would I need to know in order to ...

I am still an newbie at C++ and I was wondering what I would need to know in order to write my own windowing system. Your probably thinking that its to soon for me to take on something like that and I would agree but this is for a long term plan so I won't be doing anything with it for a while I just want to make sure I'm learning the right stuff.

I'm really interested in Operating system development and the like, I have a fascination with FreeDOS (http://www.freedos.org) and Qube (http://www.qubeos.com) and I wanted to learn how to write programs for those environments, and I was hoping that someone could suggest books that would cover all of the above topics although not necessarily all in one book.

BTW. Are there any universities in Canada/U.S. that teach C++ programming on Linux/Unix, after all I gotta plan ahead
ntws01 is offline   Reply With Quote
Old 06-28-2003, 03:36 PM   #2 (permalink)
palin
Code Monkey
 
palin's Avatar
 
Join Date: Jan 2003
Posts: 57
palin is on a distinguished road
As for what you need for the windowing system. Definitely pointers, and some more pointers. And a good grasp of the language and how to apply it.

Generally the classes on C++ in college teach you how to use the language itself there really isn't anything platform specific other than the libraries but that is a compiler thing. I beleive that gcc/g++ is available on all OSes so if you stick with that as your compiler you should be alright.
palin is offline   Reply With Quote
Old 06-28-2003, 06:34 PM   #3 (permalink)
devin
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 9
devin is on a distinguished road
Send a message via ICQ to devin
Well I would suggest taking a look at open source stuff that already works.. Like the X11 souce code. Many people hate X11 but it does work.. It is really large but you will want to limit your review of the code to probably the way events are handled.

How does the window system interpret a left mouse click, or a right mouse click (actually I think X11 passes this functionality onto window managers) ? You may want to take a look at some of the more minimalist window managers (evilwm, aewm, or even WindowLab). aewm is very well commented.

For drawing a GUI you will need to copy pixel data (is it on, and what color is it) onto the video memory. You can use a low level library (Allegro works on DOS and Linux) for drawing windows and lines. Or you could always write your own routines that will copy picture data onto video memory. There are several different ways to do this depending on the operating system. Some older DOS C, and C++ grahic programming books will explain how to do this. Try to avoid the Borland ones since they often rely on a high level driver called BGI (Borland Graphics Interface)

My school teaches Java to beginning CS majors, after your sophomore year you are usually allowed to program in C++ or Java. Some CS majors just end up writing C though in their C++ programs. Some teachers prefer Java and some prefer C++ but they will usually accept programs in either language.

By the way, if you do ever look into the source code of X11 or Allegro or some other lib/program, you need to be aware of the license.. If it is GPL, and you use code or routines from the software you are required to use the GPL as your license as well. (I'm pretty sure)
devin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
someone please help kickerman97 Java 3 10-19-2004 04:19 PM
Using ORDER BY in a select statement Epsilon PHP 3 08-22-2004 03:28 PM
Search -That Can Match Out Of Order Items JBurke All Other Coding Languages 11 09-25-2003 03:09 PM
Order Forms? crystal214 HTML, XML, Javascript, AJAX 4 09-29-2002 11:54 AM


All times are GMT -8. The time now is 11:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting