dev-cpp-users Mailing List for Dev-C++ (Page 611)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ioannis V. <no...@ho...> - 2002-03-22 21:49:36
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Brian McCall
> Sent: Friday, March 22, 2002 11:37 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] Getch()? How???
>
>
> To use getch() properly, you must have cout << endl; be the
> last statement you make before using getch(). Otherwise it
> will either wait for an endline, or it will output everything
> after the last cout << endl; statement AFTER the user presses a key.
>
> Ex:
>
> void main() {
> cout << "Daniel" << endl;
> getch();
> }
>
> displays "Daniel", advances to next line, then waits for user
> to strike a key.
>
>
> void main() {
> cout << "Daniel";
> getch();
> }
>
> presents user with a blank console and waits for user to
> press any key before displaying "Daniel".
This displays "Daniel" first and then waits for a key in my system.
>
>
> void main() {
> cout << "Daniel" << endl << "Bob";
> getch();
> }
>
> displays "Daniel", advances to next line, waits for user to
> press a key, then displays "Bob" (does not display the
> character pressed by the user).
endl flashes the stream, so to guarantee that the output is displayed
before the getch() we could use endl indeed. But getch() is not portable
anyway.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|
|
From: Brian M. <str...@ho...> - 2002-03-22 21:37:18
|
To use getch() properly, you must have cout << endl; be the last statement
you make before using getch(). Otherwise it will either wait for an
endline, or it will output everything after the last
cout << endl; statement AFTER the user presses a key.
Ex:
void main() {
cout << "Daniel" << endl;
getch();
}
displays "Daniel", advances to next line, then waits for user to strike a
key.
void main() {
cout << "Daniel";
getch();
}
presents user with a blank console and waits for user to press any key
before displaying "Daniel".
void main() {
cout << "Daniel" << endl << "Bob";
getch();
}
displays "Daniel", advances to next line, waits for user to press a key,
then displays "Bob" (does not display the character pressed by the user).
>From: "Daniel Wilches" <d_w...@ho...>
>To: dev...@li...
>Subject: [Dev-C++] Getch()? How???
>Date: Thu, 21 Mar 2002 12:51:52 -0500
>
>
>
>How to capture only a keystroke from the keyboard?? getch(), getchar() and
>getche() doesnt seem to work how they should... This is what im doing::
>
>#include<iostream>
>#include<conio.h>
>void main()
>{
>cout<<"Daniel";
>getch();
>}
>
>and i add in further objects to be searched in the project options this:
>C:\Dev-c++\lib\conio.o
>
>The getch in this program continue reading keystroke until it finds a
>Return, but what i want is only to read a keystroke...
>
>Please, anybody can help me??
>
>ThanXX
>Daniel Wilches
>
>_________________________________________________________________
>Hable con sus amigos en línea, pruebe MSN Messenger:
>http://messenger.msn.es
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
|
|
From: Ioannis V. <no...@ya...> - 2002-03-22 17:45:54
|
Dear friends, my email address has changed to no...@ho... . Regards, Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys |
|
From: Ricardo R. <ri...@po...> - 2002-03-22 17:06:22
|
strange, but Ioannis' code only works in my Dev-C++ installation if I change #include <conio.h> by #include <conio.c>, and finally, the functions getch() and getche() are waiting to strike RETURN to read the characters... (=BF?), and I think this is the same problem thta Daniel was pointed out. some other help about this point ??. Ricardo. |
|
From: <sb...@ka...> - 2002-03-22 16:31:33
|
Hi I'm new about C language. I read a lot of good comments about Dev-C++ and also wxWindows. I have downloaded and installed both of them. I have tried to compile wxWindows set with Dev-C++. But I couldn't get success. (There is some makefiles for bcc,watcom compilers. But I couldn't find a file for Dev-C++) Any comment ? Best Regards Serkan BEKTA=DE |
|
From: Benjamin W. <ben...@ho...> - 2002-03-22 16:13:09
|
Turbo C++ is a product of Borland (or rather was a product). Before Borland went into the RAD (Rapid Application Development) business with C++ Builder, their main C++ environment was Turbo C++. Turbo C++ ran in DOS and had a DOS IDE (very similar if not identical to that of the Borland Turbo Debugger IDE, as they are from the same era). In a nutshell, it was Borland's C++ environment which included IDE, integrated debugger, etc. for the DOS world. We used it alot in college...that and the Borland Turbo Pascal environment which is the same thing, just for the Pascal language. It was a great product and I still have a copy of it...but never use it anymore. After all, we are in a Windows world now...and bigger and better environments have come out. Anyway, I hope that gives you some insight on what it is/was. Ben Benjamin Wheeless Network Systems - Delta AirLines, Inc. Atlanta, Georgia - USA _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |
|
From: Ioannis V. <no...@ya...> - 2002-03-22 15:50:39
|
This is not happening to me and has never happened to me with every
version of Dev-C++ (only getche() did not work in previous versions).
But i did not mess with any conio.o, i am working with the compiler
defaults.
The code:
#include <iostream>
#include <conio.h>
int main()
{
std::cout<<"getch(): Waiting for key press...";
getch();
=20
std::cout<<"\n\ngetche(): Waiting for key press...";
getche();
=20
std::cout<<endl;
}
produces in Dev-C++ 4.9.1.0 the attached exe. Check it.
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Ricardo L=F3pez Ruiz
> Sent: Friday, March 22, 2002 4:50 PM
> To: dev...@li...
> Subject: [Dev-C++] Re: about getch() , getche()
>=20
>=20
> effectively, I agree with Daniel:
> it seems that getch() and getche()
> are not 'well implemented' in Dev-C++,
> at least as in Schildt-book are explained
> and as in Turbo-C++ are so implemented.
> In Dev-C++, they need to find a RETURN to read the
> characters and this is not the objective of these functions.=20
> Precisely it is to allow to capture the characters directly,=20
> without striking the RETURN.
>=20
> Also it seems that it is needed as header
> #include <conio.c> instead of
> #include <conio.h>.
>=20
> somebody could clarify these points ??.
>=20
> Thanks in advance,
> Ricardo.
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Daniel G. <sp...@ho...> - 2002-03-22 15:07:55
|
<html><div style='background-color:'><DIV>I saw a book on it, heard a bit about it, but what IS Turbo C++ ? How is it different to C++?</DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a href='http://g.msn.com/1HM305301/11'>Click Here</a><br></html> |
|
From: Ricardo R. <ri...@po...> - 2002-03-22 14:50:37
|
effectively, I agree with Daniel: it seems that getch() and getche() are not 'well implemented' in Dev-C++, at least as in Schildt-book are explained and as in Turbo-C++ are so implemented. In Dev-C++, they need to find a RETURN to read the characters and this is not the objective of these functions. Precisely it is to allow to capture the characters directly, without striking the RETURN. Also it seems that it is needed as header #include <conio.c> instead of #include <conio.h>. somebody could clarify these points ??. Thanks in advance, Ricardo. |
|
From: Ioannis V. <no...@ya...> - 2002-03-22 14:24:11
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ioannis Vranos Sent: Friday, March 22, 2002 7:07 AM To: Dev-C++ Subject: RE: [Dev-C++] Namespaces We must try to keep the using namespace name_space; and using name_space::facility_name; as in local scope as possible. Declaring these in the global namespace is an effort to defeat the namespace system (bad for you). Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys Sorry for the large letters, before i press "send" everything was looking normal! Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys |
|
From: Daniel G. <sp...@ho...> - 2002-03-22 14:13:59
|
<html><div style='background-color:'><DIV>Hi all,</DIV> <DIV>I have an interview coming up, for a Junior Developer role in a company who specialise in printer drivers. Part of the job may well be writing automation programs to test their software's compatability with dozens of PCs and printers.</DIV> <DIV> </DIV> <DIV>Question 1) is what questions do you think they'll ask me, and</DIV> <DIV>Question 2) how on earth do you begin to write an automation program like this? Most of my coding has been towards games, so I'm not too sure on this!</DIV> <DIV> </DIV> <DIV>Daniel</DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM305301/14'>Click Here</a><br></html> |
|
From: <Dan...@ao...> - 2002-03-22 11:51:34
|
In a message dated 3/21/2002 3:03:14 PM Central Standard Time, no...@ya... writes: Don't take it personally but you probably make programming (logical) mistakes Also a parse error such as an unclosed string quote, missing compound statement (;), etc. can also cause these problems. Danny |
|
From: <Dan...@ao...> - 2002-03-22 11:30:59
|
Daniel Wilches wrote;
< How to capture only a keystroke from the keyboard?? getch(), getchar() and
<getche() doesnt seem to work how they should... This is what im doing:
<#include<iostream>
<#include<conio.h>
<void main()
<{
<cout<<"Daniel";
<getch();
<}
<and i add in further objects to be searched in the project options this:
<C:\Dev-c++\lib\conio.o
<The getch in this program continue reading keystroke until it finds a
<Return, but what i want is only to read a keystroke...
<Please, anybody can help me??
<ThanXX
<Daniel Wilches
After looking at the code the only problem I see is the use of getch(), try
writing it this way:
#include<iostream>
#include<conio.h>
void main()
{
Int ch;
cout<<"Daniel";
ch = getch();
}
What will happen is when you press any key it is stored in the variable ch,
this is very useful when event trapping in a console program.
As far as I know you should be able to modify conio.o but before doing so
make a copy of the original someplace else, E.G. Temp folder, CD, floppy,
etc. in the event that any changes would cause problems and you need to
restore the original.
Good Luck
Danny
|
|
From: Ioannis V. <no...@ya...> - 2002-03-22 05:07:36
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Daniel
Glenfield
Sent: Thursday, March 21, 2002 8:13 PM
To: dev...@li...
Subject: [Dev-C++] Namespaces
Could someone explain this to me a little bit clearer? Is it just saying
you need to write the namespace declaration to write headers without the
.h extention? If so what's the point in that?
Thanks,
Daniel
=20
Things are slightly different:
=20
=20
C++ also supports namespaces. Namespaces simplify the writing of
programs that combine libraries from various members. The namespace
feature is not available in C. The statement that must be included in
the program when using namespaces is using namespace std;.
=20
or std::facility.=20
=20
=20
e.g.
// This is a program to demonstrate the use of namespace.
#include <iostream>
using namespace std;=20
=20
Bad use of namespace in global scope.=20
void main()=20
void main() is not valid C++ anymore.
=20
{
cout << "Using Namespace";
}
In C++, if you use iostream instead of iostream.h, the namespace
directive is used to make the definitions in iostream available to your
program.
=20
iostream.h is not valid C++ anymore. The .h exttension is valid for the
C subset header files only.
=20
=20
Now lets explain what is a namespace. Namespace are name-scopes and its
purpose is to help using various libraries. As all features of C++ this
is a great feature too.
=20
Consider the code:
=20
#include <iostream>
#include <string>
=20
#include <daniel.h> // Contains Daniel's implementation of cout in the
daniel namespace.
=20
int main()
{
using namespace std;
=20
string s;
=20
cin>>s;
=20
daniel::cout<<s<<daniel::endl;
}
=20
=20
We could also write
=20
using daniel::cout;
using daniel::endl;=20
=20
inside main().
=20
=20
We must try to keep the using namespace name_space; and using
name_space::facility_name; as in local scope as possible. Declaring
these in the global namespace is an effort to defeat the namespace
system (bad for you).
=20
=20
Ioannis
=20
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
|
|
From: Ioannis V. <no...@ya...> - 2002-03-22 04:55:40
|
The code:
#include <iostream>
#include <conio.h>
int main()
{
std::cout<<"Daniel";
getch();
}
produces Daniel and waits for one keystroke in my system using Dev-C++
4.9.1.0 . I suggest upgrade Dev-C++ or upgrade the MINGW.
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Daniel Wilches
> Sent: Thursday, March 21, 2002 7:52 PM
> To: dev...@li...
> Subject: [Dev-C++] Getch()? How???
>=20
>=20
>=20
>=20
> How to capture only a keystroke from the keyboard?? getch(),=20
> getchar() and=20
> getche() doesnt seem to work how they should... This is what=20
> im doing::
>=20
> #include<iostream>
> #include<conio.h>
> void main()
> {
> cout<<"Daniel";
> getch();
> }
>=20
> and i add in further objects to be searched in the project=20
> options this:=20
> C:\Dev-c++\lib\conio.o
>=20
> The getch in this program continue reading keystroke until it finds a=20
> Return, but what i want is only to read a keystroke...
>=20
> Please, anybody can help me??
>=20
> ThanXX
> Daniel Wilches
>=20
> _________________________________________________________________
> Hable con sus amigos en l=EDnea, pruebe MSN Messenger:=20
> http://messenger.msn.es
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Jason H. <jas...@bt...> - 2002-03-22 02:38:52
|
The use of .h headers is depreciated, meaning that in future C++ =
implementations it may not exist. It is only available for backward =
compatibilty at the moment.
Saying using namespace std; in the global scope is actualy bad =
programming practice. What you might do in a proper program is put =
something like using std::cout; in global scope and occasionally using =
namespace std; in a method, class or block of code that it would be of =
benefit for. You should avoid elevating as much as possible to the =
global scope. Elevating cout would be reasonable as it is used such a =
great deal.
One of the reasons for namespaces is, as mentioned, when multiple =
libraries are added to one project. The different libraries can each =
have thier own namespace so that if both librarys have an "add()" =
function they can be accessed seperatly and won't collide. If you had =
std in the global scope (as it used to be) then everything in that =
namespace that collides with the common names in any other global space =
library will cause the compiler to have a fit. In big projects it makes =
it easier to ensure that method names don't collide.
Jason.
----- Original Message -----=20
From: Daniel Glenfield=20
To: dev...@li...=20
Sent: Thursday, March 21, 2002 6:13 PM
Subject: [Dev-C++] Namespaces
Could someone explain this to me a little bit clearer? Is it just =
saying you need to write the namespace declaration to write headers =
without the .h extention? If so what's the point in that?
Thanks,
Daniel
C++ also supports namespaces. Namespaces simplify the writing of =
programs that combine libraries from various members. The namespace =
feature is not available in C. The statement that must be included in =
the program when using namespaces is using namespace std;.
e.g.
// This is a program to demonstrate the use of namespace.
#include <iostream>
using namespace std;
void main()
{
cout << "Using Namespace";
}
In C++, if you use iostream instead of iostream.h, the namespace =
directive is used to make the definitions in iostream available to your =
program.
-------------------------------------------------------------------------=
-----
MSN Photos is the easiest way to share and print your photos: Click =
Here
_______________________________________________ Dev-cpp-users mailing =
list Dev...@li... =
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Kevin W. <ke...@me...> - 2002-03-21 23:31:33
|
getc(stdin) (in stdio.h) reads a character from a stream (stdin) ,
converts it to an integer, but does not echo it to screen.
example...
int c;
do
{
c= getc(stdin);
}while(c!=13);
Kev.
----- Original Message -----
From: Daniel Wilches <d_w...@ho...>
To: <dev...@li...>
Sent: Thursday, March 21, 2002 5:51 PM
Subject: [Dev-C++] Getch()? How???
>
>
> How to capture only a keystroke from the keyboard?? getch(), getchar() and
> getche() doesnt seem to work how they should... This is what im doing::
>
> #include<iostream>
> #include<conio.h>
> void main()
> {
> cout<<"Daniel";
> getch();
> }
>
> and i add in further objects to be searched in the project options this:
> C:\Dev-c++\lib\conio.o
>
> The getch in this program continue reading keystroke until it finds a
> Return, but what i want is only to read a keystroke...
>
> Please, anybody can help me??
>
> ThanXX
> Daniel Wilches
>
> _________________________________________________________________
> Hable con sus amigos en línea, pruebe MSN Messenger:
http://messenger.msn.es
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Ioannis V. <no...@ya...> - 2002-03-21 20:55:48
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of vijay basha > Sent: Thursday, March 21, 2002 12:05 PM > To: dev...@li... > Subject: [Dev-C++] errors in Dev-C++ in WindowsXP > > > sir, > I have Dev-C++ on WindowsXP .Whenever I try to > run a program that has some pointer manipulation or > memmory allocation(like malloc) an error is reported > by the OS during the run time. What could be the > reason? Don't take it personally but you probably make programming (logical) mistakes. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |
|
From: Daniel G. <sp...@ho...> - 2002-03-21 18:13:27
|
<html><div style='background-color:'><DIV></DIV>
<DIV>
<P>Could someone explain this to me a little bit clearer? Is it just saying you need to write the namespace declaration to write headers without the .h extention? If so what's the point in that?</P>
<P>Thanks,</P>
<P>Daniel</P>
<P> </P>
<P>C++ also supports namespaces. Namespaces simplify the writing of programs that combine libraries from various members. The namespace feature is not available in C. The statement that must be included in the program when using namespaces is<FONT color=#ff0000> using namespace std</FONT>;.</P>
<P>e.g.</P><FONT color=#ff0000>
<P>// This is a program to demonstrate the use of namespace.</P></FONT><FONT color=#0000ff>
<P>#include <iostream></P>
<P>using namespace std;</P></FONT><FONT color=#ff0000>
<P>void main()</P>
<P>{</P>
<P>cout << "Using Namespace";</P>
<P>}</P></FONT>
<P>In C++, if you use iostream instead of iostream.h, the namespace directive is used to make the definitions in iostream available to your program.</P></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM305301/14'>Click Here</a><br></html>
|
|
From: Daniel W. <d_w...@ho...> - 2002-03-21 17:52:10
|
How to capture only a keystroke from the keyboard?? getch(), getchar() and
getche() doesnt seem to work how they should... This is what im doing::
#include<iostream>
#include<conio.h>
void main()
{
cout<<"Daniel";
getch();
}
and i add in further objects to be searched in the project options this:
C:\Dev-c++\lib\conio.o
The getch in this program continue reading keystroke until it finds a
Return, but what i want is only to read a keystroke...
Please, anybody can help me??
ThanXX
Daniel Wilches
_________________________________________________________________
Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es
|
|
From: <fc...@ya...> - 2002-03-21 10:04:51
|
sir,
I have Dev-C++ on WindowsXP .Whenever I try to
run a program that has some pointer manipulation or
memmory allocation(like malloc) an error is reported
by the OS during the run time. What could be the
reason?
Yours
Shashang
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
|
|
From: anon <an...@pu...> - 2002-03-21 03:03:24
|
Check out this site for your programming books needs: http://pcbook.51soft.com |
|
From: Ioannis V. <no...@ya...> - 2002-03-20 19:50:10
|
If you know the basics, i suggest "The C Programming Language" Second Edition by Brian Kernighan, Dennis Ritchie (the creator of C). We are talking for C right? Not C++. Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Urmila Samanta > Sent: Wednesday, March 20, 2002 4:13 PM > To: dev...@li... > Subject: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #668 - 8 msgs >=20 >=20 > What's a good book on learning how to C? For a course i will=20 > be taking in the summer, the language that will be used is C. >=20 > Urmila >=20 > On Tue, 19 Mar 2002 > dev...@li... wrote: >=20 > > Send Dev-cpp-users mailing list submissions to > > dev...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > or, via email, send a message with subject or body 'help' to > > dev...@li... > > > > You can reach the person managing the list at > > dev...@li... > > > > When replying, please edit your Subject line so it is more specific=20 > > than "Re: Contents of Dev-cpp-users digest..." > > > > > > Today's Topics: > > > > 1. Getch??? How?? (Daniel Wilches Maradei) > > 2. RE: Getch??? How?? (Ioannis Vranos) > > 3. [RELEASE] Dev-C++ 5 Beta released !!! (Colin Laplace) > > 4. winexec (christiaan scholtz) > > 5. message box not showing up (christiaan scholtz) > > 6. RE: learn windows... (Benjamin Wheeless) > > 7. Re: message box not showing up (Benjamin Wheeless) > > 8. Do-While Loops (L H) > > > > --__--__-- > > > > Message: 1 > > From: "Daniel Wilches Maradei" <d_w...@ho...> > > To: <dev...@li...> > > Date: Mon, 18 Mar 2002 16:32:28 -0500 > > Subject: [Dev-C++] Getch??? How?? > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0009_01C1CE9A.7EDBBD20 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > Hello! > > > > Anybody knows how to read ONLY one character in DEV-C++?? I=20 > > (logically) =3D tried with getch() and getche() but these two=20 > functions=20 > > read input from =3D the keyboard until find a carriage=20 > return, i DO NOT=20 > > need that, i need to =3D read only one char (be a 'A', a 'W', a TAB, = > > etc). > > > > Please anybody helpme!! > > Daniel Wilches M. > > d_w...@ho... > > > > > > Hola!! > > > > Alguien sabe como leer solo un caracter del teclado en=20 > DEV-C++?? Ya he=20 > > =3D tratado con getch() y getche() pero estas funciones leen=20 > una serie=20 > > de =3D caracteres hasta encontrar un retorno (enter), lo que=20 > yo necesito=20 > > es que =3D lean tan solo un caracter, como una 'C', una 'a', etc... > > > > Por favor: ayuda!! > > Daniel Wilches M. > > d_w...@ho... > > > > > > ------=3D_NextPart_000_0009_01C1CE9A.7EDBBD20 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=20 > > <HTML><HEAD> <META http-equiv=3D3DContent-Type = content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 5.50.4611.1300" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>Hello!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Anybody knows how to read=20 > ONLY one =3D > > character in=3D20 > > DEV-C++?? I (logically) tried with getch() and getche() but=20 > these two=20 > > DEV-C++=3D > > functions=3D20 > > read input from the keyboard until find a carriage return, i DO NOT=20 > > need =3D that, i=3D20 need to read only one char (be a 'A', a=20 > 'W', a TAB,=20 > > etc).</FONT></DIV> <DIV><FONT face=3D3DArial=20 > > size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial=20 > size=3D3D2>Please=20 > > anybody helpme!!</FONT></DIV> <DIV><FONT face=3D3DArial=20 > size=3D3D2>Daniel=20 > > Wilches M.</FONT></DIV> <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > >=20 > href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A > ></FONT></D=3D > > IV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT=20 > > face=3D3DArial size=3D3D2></FONT> </DIV> <DIV><FONT = face=3D3DArial=20 > > size=3D3D2>Hola!!</FONT></DIV> <DIV><FONT face=3D3DArial=20 > > size=3D3D2></FONT> </DIV> <DIV><FONT face=3D3DArial=20 > size=3D3D2>Alguien=20 > > sabe como leer solo un caracter =3D del teclado=3D20 > > en DEV-C++?? Ya he tratado con getch() y getche() pero=20 > estas funciones =3D > > leen una=3D20 > > serie de caracteres hasta encontrar un retorno (enter), lo que yo = =3D > > necesito es=3D20 > > que lean tan solo un caracter, como una 'C', una 'a', =3D > > etc...</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Por favor: ayuda!!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches M.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > >=20 > href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A > ></FONT></D=3D > > IV> > > <DIV><FONT face=3D3DArial = size=3D3D2></FONT> </DIV></BODY></HTML> > > > > ------=3D_NextPart_000_0009_01C1CE9A.7EDBBD20-- > > > > > > --__--__-- > > > > Message: 2 > > From: "Ioannis Vranos" <no...@ya...> > > To: "Dev-C++" <dev...@li...> > > Subject: RE: [Dev-C++] Getch??? How?? > > Date: Tue, 19 Mar 2002 04:13:50 +0200 > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0003_01C1CEFC.79F319E0 > > Content-Type: text/plain; > > charset=3D"us-ascii" > > Content-Transfer-Encoding: quoted-printable > > > > Before you use getche() did you #include <conio.h>? I think you did=20 > > not. =3D20 =3D20 > > =3D20 > > Ioannis > > =3D20 > > * Ioannis Vranos > > * Programming pages: <http://www.noicys.d2g.com/> > > http://www.noicys.d2g.com > > * Alternative URL: <http://run.to/noicys> http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On=20 > Behalf Of Daniel=20 > > Wilches Maradei > > Sent: Monday, March 18, 2002 11:32 PM > > To: dev...@li... > > Subject: [Dev-C++] Getch??? How?? > > > > > > Hello! > > =3D20 > > Anybody knows how to read ONLY one character in DEV-C++?? I=20 > > (logically) tried with getch() and getche() but these two functions=20 > > read input from the keyboard until find a carriage return, i DO NOT=20 > > need that, i need to read only one char (be a 'A', a 'W', a=20 > TAB, etc).=20 > > =3D20 Please anybody helpme!! > > Daniel Wilches M. > > d_w...@ho... > > =3D20 > > =3D20 > > Hola!! > > =3D20 > > Alguien sabe como leer solo un caracter del teclado en=20 > DEV-C++?? Ya he > > tratado con getch() y getche() pero estas funciones leen=20 > una serie de > > caracteres hasta encontrar un retorno (enter), lo que yo=20 > necesito es que > > lean tan solo un caracter, como una 'C', una 'a', etc... > > =3D20 > > Por favor: ayuda!! > > Daniel Wilches M. > > d_w...@ho... > > =3D20 > > > > > > ------=3D_NextPart_000_0003_01C1CEFC.79F319E0 > > Content-Type: text/html; > > charset=3D"us-ascii" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=20 > > <HTML><HEAD> <META HTTP-EQUIV=3D3D"Content-Type"=20 > CONTENT=3D3D"text/html; =3D > > charset=3D3Dus-ascii"> > > <TITLE>Message</TITLE> > > > > <META content=3D3D"MSHTML 6.00.2713.1100" name=3D3DGENERATOR>=20 > > <STYLE></STYLE> </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><SPAN class=3D3D135031302-19032002><FONT face=3D3DArial=20 > color=3D3D#000080 =3D > > > > size=3D3D2><STRONG>Before you use getche() did you #include =3D=20 > > <conio.h>? I think=3D20 you did=20 > not.</STRONG></FONT></SPAN></DIV> > > <DIV><STRONG><FONT face=3D3DArial color=3D3D#000080 =3D > > size=3D3D2></FONT></STRONG> </DIV> > > <DIV> </DIV> > > <DIV> </DIV> > > <DIV align=3D3Dleft> > > <DIV align=3D3Dleft><STRONG><FONT face=3D3DArial = color=3D3D#000080=3D20 > > size=3D3D2>Ioannis</FONT></STRONG></DIV> > > <DIV align=3D3Dleft> </DIV> > > <DIV align=3D3Dleft><STRONG><FONT face=3D3DArial=20 > color=3D3D#000080 size=3D3D2>* =3D > > Ioannis=3D20 > > Vranos</FONT></STRONG></DIV> > > <DIV><FONT color=3D3D#000080><STRONG><FONT face=3D3DArial = size=3D3D2>* =3D > > Programming pages:=3D20 > > </FONT><A href=3D3D"http://www.noicys.d2g.com/"><FONT = face=3D3DArial=3D20 > > = size=3D3D2>http://www.noicys.d2g.com</FONT></A></STRONG></FONT></DIV> > > <DIV><STRONG><FONT color=3D3D#000080><FONT face=3D3DArial = size=3D3D2>* =3D > > Alternative URL:=3D20 > > </FONT><A href=3D3D"http://run.to/noicys"><FONT face=3D3DArial=3D20 > > = size=3D3D2>http://run.to/noicys</FONT></A></FONT></STRONG></DIV></DIV> > > <BLOCKQUOTE dir=3D3Dltr=3D20 > > style=3D3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:=20 > #000080 2px =3D > > solid; MARGIN-RIGHT: 0px"> > > <DIV></DIV> > > <DIV class=3D3DOutlookMessageHeader lang=3D3Den-us dir=3D3Dltr =3D > > align=3D3Dleft><FONT=3D20 > > face=3D3DTahoma size=3D3D2>-----Original=20 > Message-----<BR><B>From:</B>=3D20 > > dev...@li...=3D20 > > [mailto:dev...@li...] <B>On=20 > Behalf Of =3D > > </B>Daniel=3D20 > > Wilches Maradei<BR><B>Sent:</B> Monday, March 18, 2002 11:32 =3D > > PM<BR><B>To:</B>=3D20 > > dev...@li...<BR><B>Subject:</B> [Dev-C++] = =3D > > Getch???=3D20 > > How??<BR><BR></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Hello!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Anybody knows how to=20 > read ONLY one =3D > > character in=3D20 > > DEV-C++?? I (logically) tried with getch() and getche()=20 > but these two=3D20 > > functions read input from the keyboard until find a=20 > carriage return, i =3D > > DO NOT=3D20 > > need that, i need to read only one char (be a 'A', a 'W',=20 > a TAB,=3D20 > > etc).</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Please anybody=20 > helpme!!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches = M.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > > =3D > >=20 > href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A > ></FONT></D=3D > > IV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Hola!!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Alguien sabe como leer solo = un =3D=20 > > caracter del=3D20 > > teclado en DEV-C++?? Ya he tratado con getch() y getche()=20 > pero estas=20 > > =3D funciones=3D20 > > leen una serie de caracteres hasta encontrar un retorno=20 > (enter), lo=20 > > =3D que yo=3D20 > > necesito es que lean tan solo un caracter, como una 'C',=20 > una 'a',=3D20 > > etc...</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Por favor: = ayuda!!</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches = M.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > > =3D=20 > >=20 > = href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A></FONT> > > </D=3D > > IV> > > <DIV><FONT face=3D3DArial =3D=20 > > size=3D3D2></FONT> </DIV></BLOCKQUOTE></BODY></HTML> > > > > ------=3D_NextPart_000_0003_01C1CEFC.79F319E0-- > > > > > > > > --__--__-- > > > > Message: 3 > > From: Colin Laplace <col...@wa...> > > Reply-To: col...@wa... > > To: dev...@li... > > Date: Tue, 19 Mar 2002 04:56:58 +0100 > > Subject: [Dev-C++] [RELEASE] Dev-C++ 5 Beta released !!! > > > > Hello !! > > > > We are very happy to announce that a beta of Dev-C++ 5 is > > now available for download ! > > The version number is 4.9.1.0, and current features are : > > > > - Support GCC-based compilers (Mingw 1.1 included) > > - Integrated debugging (using GDB - version 5 included) > > - Project Manager > > - Customizable syntax highlighting editor > > - Quickly create Windows, console, static libraries and DLLs > > - Support of templates for creating your own project types > > - Makefile creation > > - Edit and compile Resource files > > - Tool Manager > > - Print support > > - Find and replace facilities > > - Themes > > - Package Manager > > > > As this version is beta, it will probably contains bugs.=20 > Please report=20 > > them to ha...@bl... with the subject : [Dev-C++ 4.9.1.0=20 > > report]. > > > > Here is the download page for Dev-C++ 4.9.1.0 (package=20 > without Mingw=20 > > is also > > available) : > > http://www.bloodshed.net/dev/download.html > > > > There is currently only two download sites, so the servers may be a=20 > > little busy. If you want to mirror Dev-C++, please contact me. > > > > We are waiting for your feedbacks :) > > > > Hope you will enjoy it ! > > Colin Laplace > > > > > > --__--__-- > > > > Message: 4 > > From: "christiaan scholtz" <ck...@ia...> > > To: <dev...@li...> > > Date: Mon, 18 Mar 2002 15:05:20 +0200 > > Subject: [Dev-C++] winexec > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0023_01C1CE8E.5227C320 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > But if i launch a windows program with winexec it works,=20 > its just when=20 > > i =3D tried to run a dos one like edit.com that it didnt show=20 > up! why is=20 > > that? > > > > ------=3D_NextPart_000_0023_01C1CE8E.5227C320 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=20 > > <HTML><HEAD> <META content=3D3D"text/html; charset=3D3Diso-8859-1" = =3D > > http-equiv=3D3DContent-Type> > > <META content=3D3D"MSHTML 5.00.2614.3500" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>But if i launch a windows=20 > program with =3D > > winexec it=3D20 > > works, its just when i tried to run a dos one like edit.com=20 > that it =3D > > didnt show=3D20 > > up! why is that?</FONT></DIV></BODY></HTML> > > > > ------=3D_NextPart_000_0023_01C1CE8E.5227C320-- > > > > > > > > --__--__-- > > > > Message: 5 > > From: "christiaan scholtz" <ck...@ia...> > > To: <dev...@li...> > > Date: Mon, 18 Mar 2002 15:04:03 +0200 > > Subject: [Dev-C++] message box not showing up > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0015_01C1CE8E.2494E460 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > Thanx to kevin I was able to display text in fullscreen, but i have=20 > > two =3D new problems now: One is that the text gets these=20 > flashing white=20 > > lines in it, i solved =3D this as follows: > > > > case WM_PAINT: > > if (first) > > { > > TextOut(GetDC(hWnd),100,30,"hello",5); > > first =3D3D false; > > } > > > > Is that what i must do or did i do something wrong? > > > > Secondly, ever since I put the WM_PAINT message in my messageboxes=20 > > dont =3D show untill I press alt! > > > > ------=3D_NextPart_000_0015_01C1CE8E.2494E460 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=20 > > <HTML><HEAD> <META content=3D3D"text/html; charset=3D3Diso-8859-1" = =3D > > http-equiv=3D3DContent-Type> > > <META content=3D3D"MSHTML 5.00.2614.3500" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>Thanx to kevin I was able = to =3D > > display text in=3D20 > > fullscreen, but i have two new problems now:</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>One is that the text gets these = =3D > > flashing white=3D20 > > lines in it, i solved this as follows:</FONT></DIV> > > <DIV> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>case=3D20 > >=20 > WM_PAINT:<BR> & > nbsp; =3D > > if=3D20 > >=20 > (first)<BR> &nb > sp; =3D20 > >=20 > {<BR> &nb > sp; &n=3D > > bsp;=3D20 > >=20 > TextOut(GetDC(hWnd),100,30,"hello",5);<BR> &n > bsp; &=3D > > nbsp; =3D20 > > first =3D3D =3D > >=20 > false;<BR> &nbs > p; =3D20 > > }</FONT></DIV> > > <DIV> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Is that what i must do or=20 > did i do =3D > > something=3D20 > > wrong?</FONT></DIV> > > <DIV> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Secondly, ever=20 > since I put the =3D > > WM_PAINT=3D20 > > message in my messageboxes dont show untill I press=3D20 > > alt!</FONT></DIV></BODY></HTML> > > > > ------=3D_NextPart_000_0015_01C1CE8E.2494E460-- > > > > > > > > --__--__-- > > > > Message: 6 > > From: "Benjamin Wheeless" <ben...@ho...> > > To: lde...@ya..., dev...@li... > > Subject: RE: [Dev-C++] learn windows... > > Date: Tue, 19 Mar 2002 10:26:56 -0500 > > > > Have you tried the free book "Thinking in C++" ? > > > > The web site is: =20 > > http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html > > > > It's a good book, especially for free. > > > > Benjamin Wheeless > > Network Systems - Delta AirLines, Inc. > > Atlanta, Georgia - USA > > > > _________________________________________________________________ > > Join the world's largest e-mail service with MSN Hotmail.=20 > > http://www.hotmail.com > > > > > > > > --__--__-- > > > > Message: 7 > > From: "Benjamin Wheeless" <ben...@ho...> > > To: ck...@ia..., dev...@li... > > Subject: Re: [Dev-C++] message box not showing up > > Date: Tue, 19 Mar 2002 11:02:58 -0500 > > > > I'm not sure if I have a full grasp of the issue, but it=20 > sounds like=20 > > your paint message is working overtime. It sounds like you are=20 > > painting and repainting over and over... > > > > -- this would produce "flashing white lines in the text" =20 > (the text is=20 > > being repainted faster than you can see). > > > > -- this would also make your message boxes seem to not appear. > > > > I may be off base here, but from what I read, this would be my=20 > > assumption...maybe a path to investigate. > > > > If I am way off base, my apologies for leading you astray. =20 > Good luck. > > > > Benjamin Wheeless > > Network Systems - Delta AirLines, Inc. > > Atlanta, Georgia - USA > > > > _________________________________________________________________ > > Join the world's largest e-mail service with MSN Hotmail.=20 > > http://www.hotmail.com > > > > > > > > --__--__-- > > > > Message: 8 > > From: "L H" <kry...@ho...> > > To: <dev...@li...> > > Date: Tue, 19 Mar 2002 11:36:41 -0800 > > Subject: [Dev-C++] Do-While Loops > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0009_01C1CF3A.56CB4760 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > I'm fairly new to Dev-C++ and C++ in general, and one thing=20 > I haven't=20 > > =3D been able to program is the do-while loop. I have tried=20 > to implement=20 > > one =3D in many different ways and have copied numerous=20 > examples to the=20 > > letter, =3D but none have worked. Is this a problem with=20 > Dev-C++ or the=20 > > Minigw =3D compiler, or is it a problem with my installation? I = would=20 > > appreciate any input. > > > > ------=3D_NextPart_000_0009_01C1CF3A.56CB4760 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=20 > > <HTML><HEAD> <META http-equiv=3D3DContent-Type = content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 5.50.4134.600" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>I'm fairly new to Dev-C++=20 > and C++ in =3D > > general, and=3D20 > > one thing I haven't been able to program is the do-while=20 > loop. I have =3D > > tried to=3D20 > > implement one in many different ways and have copied=20 > numerous examples =3D > > to the=3D20 > > letter, but none have worked. Is this a problem with=20 > Dev-C++ or the =3D > > Minigw=3D20 > > compiler, or is it a problem with my installation?</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>I would appreciate any=3D20 > > input.</FONT></DIV></BODY></HTML> > > > > ------=3D_NextPart_000_0009_01C1CF3A.56CB4760-- > > > > > > > > --__--__-- > > > > _______________________________________________ > > Dev-cpp-users mailing list Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > End of Dev-cpp-users Digest > > >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Kevin W. <ke...@me...> - 2002-03-20 18:36:46
|
You have to use BeginPaint() to get the handle of the device context when
handling the WM_PAINT message, and EndPaint() when you've done.
PAINTSTRUCT ps ;
HDC hdc;
case WM_PAINT
{
hdc = BeginPaint (hwnd, &ps) ;
TextOut(hdc,100,30,"hello",5);
EndPaint (hwnd, &ps) ;
return 0 ;
}
That way, Windows knows that the painting is done and should not call your
handler until the window needs painting again.
Try that, and let us know if your message box problem is solved as well.
Kev.
----- Original Message -----
From: christiaan scholtz <ck...@ia...>
To: <dev...@li...>
Sent: Monday, March 18, 2002 1:04 PM
Subject: [Dev-C++] message box not showing up
Thanx to kevin I was able to display text in fullscreen, but i have two new
problems now:
One is that the text gets these flashing white lines in it, i solved this as
follows:
case WM_PAINT:
if (first)
{
TextOut(GetDC(hWnd),100,30,"hello",5);
first = false;
}
Is that what i must do or did i do something wrong?
Secondly, ever since I put the WM_PAINT message in my messageboxes dont show
untill I press alt!
|
|
From: Brian P. <br...@su...> - 2002-03-20 17:13:17
|
Hey all: I am really sorry! I just realized the last message I replied to had the entire digest in it. I am reeeeealy sorry! Brian |