|
From: Per W. <pw...@ia...> - 2005-07-11 12:51:03
|
It's a bit hard to read the output you cut from the display - and I guess
it is even harder for you to get an idea of the output by the use of a
screen reader.
Note that DevC++ can generate both graphical Windows applications, and
text-only console applications.
The line "return DefWindowProc(...)" is part of a graphical application.
It looks from your dump that you have both a couple of lines remaining
from a graphical application (automatically created by DevC++ when you
created a new project) and your new lines for the "hello world"
application. This results in a lot of strange error messages, since the
compiler doesn't know what you are trying to do.
DevC++ is an IDE for generating applications. For a blind, it might
actually be better to write the code in a normal text editor instead of
using a full IDE. Compilation can then be made directly from the command
line in another window.
A graphical environment often "helps" with a lot of automatic actions that
are hard to notice by the use of a screen reader. When writing code, the
IDE can pop up code-completion dialogs above the source code. The
syntax highlighting changes the look of the text to describe
variables, numeric constants and so on. When writing a parenthesis,
the corresponding parenthesis is automatically visually enhanced and
so on. When compiling, the output gets filtered and put in different
output tabs etc.
When starting to learn a new language, it is easiest to write command line
applications. Then it is possible to focus on the language, instead of
learning how to code for a specific target system. With increased
knowledge of language and tools, it is then easier to start targeting a
specific platform.
The book file you have with extension pdf is read using a program called
Acrobat Reader. However, it isn't so simple to give a link for direct
download - when reaching the web page for Adobe, you have to answer a
number of questions before finally being able to download and install the
reader software. There are a couple of freeware applications that can
display pdf files, but they are not so simple to install or use. Adobe
have a lot of money available to make the reader easy to use - they charge
a lot for the application that creates pdf files.
The compiler available with DevC++ is very good. It's called MinGW, and is
a Windows version of the gcc compiler that exists for just about all
computer systems in existence. The only compiler I know about that can
auto-correct errors is a IBM-developed compiler that makes guesses when
finding incorrectly spelled symbols. However, even if this feature might
sound nice, you don't want it. It isn't too hard to manually correct any
errors, and by doing so, the code can build using onther compilers too.
In short: I would say simplicity is best. Use the available tools in a way
that your screen reader can perform to it's best. My guess is that this
means to ignore the use of an integrated development environment and make
use of the build tools directly.
If a "hello world" application is stored in the file "hello.cpp", it is
possible to build it with the command:
g++ hello.cpp -o hello.exe
and then run it with the command
hello
from the commad line.
/Per W
On Mon, 11 Jul 2005, yakir arbib wrote:
> Hi to all
> So I tried compiling again "hello world"
> I went to new project, and there was another pees of code before what I
> rote ,witch I didn't know what to do with
> And hear is the result:
> Dev-C++ 4.9.9.2 - [ Project1 ] - starting.dev
> File Edit Search View Project Execute Debug Tools CVS Window Help
> New Insert Toggle Goto
> (globals)
> Project main.cClasses Debug
> Project1 return DefWindowProc (hwnd, message, wParam,
> lParam);
> }
> return 0;
> }
> include <iostream>
> include <csdlib>
> using namespace std;
> int main();
> Compiler Resources Compile Log Debug Find Results Close
> Line File Message
> 89 C:\Dev-Cpp\main.c syntax error before '<' token
> 94 C:\Dev-Cpp\main.c syntax error before '{' token
> 96 C:\Dev-Cpp\main.c syntax error before string constant
> 96 C:\Dev-Cpp\main.c [Warning] data definition has no type or storage
> class
> C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1
> 91: 1 Insert 99 Lines in file
> Now,it is all like chinese to me[smile],but can you help me
> With understanding what the errors wher,and what I have to do in order
> to get it right?
> Thanks a lot
> Best regards
> yakir
>
|