| | |
Window Interface in C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
>could anyone provide me the basic code to display "hello world" in a window?
Does your compiler offer to do this for you?
http://img175.echo.cx/img175/5527/hello4nk.th.jpg
>and if possible a link to the code necessary to use window api for c++ programs.
Have you checked your compiler's documentation? It should be the first source for what it can do.
Could you tell us which compiler you are using?
Does your compiler offer to do this for you?
http://img175.echo.cx/img175/5527/hello4nk.th.jpg
>and if possible a link to the code necessary to use window api for c++ programs.
Have you checked your compiler's documentation? It should be the first source for what it can do.
Could you tell us which compiler you are using?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
>i would like to use a window for user interface instead of dos console.
My first question is "why"? Introducing graphics should be done only after the students have a strong foundation in the core language and standard libraries. Otherwise, they'll find themselves battling C++ as well as whatever graphics API you choose to give them.
Then of course there's the argument that if you don't teach the core skills of programming first, then all your students will be able to do is make pretty windows that do nothing useful. And that's a best case situation. If they get discouraged and quit because they never won the "little" battles on the command line and gained confidence then you won't even see pretty windows that do nothing.
Personally, I think you're trying to do too much, too fast. Especially for a high school course. But if you really want to make learning harder (maybe to weed out anyone who doesn't have a passion for programming) then tell us your compiler and we'll be able to make better suggestions.
Try googling for Allegro or SDL for a generic solution.
My first question is "why"? Introducing graphics should be done only after the students have a strong foundation in the core language and standard libraries. Otherwise, they'll find themselves battling C++ as well as whatever graphics API you choose to give them.
Then of course there's the argument that if you don't teach the core skills of programming first, then all your students will be able to do is make pretty windows that do nothing useful. And that's a best case situation. If they get discouraged and quit because they never won the "little" battles on the command line and gained confidence then you won't even see pretty windows that do nothing.
Personally, I think you're trying to do too much, too fast. Especially for a high school course. But if you really want to make learning harder (maybe to weed out anyone who doesn't have a passion for programming) then tell us your compiler and we'll be able to make better suggestions.
Try googling for Allegro or SDL for a generic solution.
I'm here to prove you wrong.
•
•
Join Date: Mar 2005
Posts: 6
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Dave Sinkula
>could anyone provide me the basic code to display "hello world" in a window?
Does your compiler offer to do this for you?
http://img175.echo.cx/img175/5527/hello4nk.th.jpg
>and if possible a link to the code necessary to use window api for c++ programs.
Have you checked your compiler's documentation? It should be the first source for what it can do.
Could you tell us which compiler you are using?
•
•
Join Date: Mar 2005
Posts: 6
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Narue
>i would like to use a window for user interface instead of dos console.
My first question is "why"? Introducing graphics should be done only after the students have a strong foundation in the core language and standard libraries. Otherwise, they'll find themselves battling C++ as well as whatever graphics API you choose to give them.
Then of course there's the argument that if you don't teach the core skills of programming first, then all your students will be able to do is make pretty windows that do nothing useful. And that's a best case situation. If they get discouraged and quit because they never won the "little" battles on the command line and gained confidence then you won't even see pretty windows that do nothing.
Personally, I think you're trying to do too much, too fast. Especially for a high school course. But if you really want to make learning harder (maybe to weed out anyone who doesn't have a passion for programming) then tell us your compiler and we'll be able to make better suggestions.
Try googling for Allegro or SDL for a generic solution.
•
•
•
•
Originally Posted by mikecoyner
Compiler is Visual C++ 6.0
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
>HS students need more stimulation than hardcore programmers
Then perhaps you should teach a language better suited for students than C++. Java perhaps, or Python. Both have relatively easy to use graphics APIs available right out of the box. C++ is a hardcore language designed for hardcore programmers.
Then perhaps you should teach a language better suited for students than C++. Java perhaps, or Python. Both have relatively easy to use graphics APIs available right out of the box. C++ is a hardcore language designed for hardcore programmers.
I'm here to prove you wrong.
![]() |
Similar Threads
- recovering data from an old parition.... (Troubleshooting Dead Machines)
- new window in Internet Explorer is always blank (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: Phonebook program help
- Next Thread: Nice, Interesting Site
| Thread Tools | Search this Thread |
api array arrays based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion convert count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






