Thread: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #668 - 8 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Urmila S. <ums...@cc...> - 2002-03-20 14:13:13
|
What's a good book on learning how to C? For a course i will be taking in the summer, the language that will be used is C. Urmila On Tue, 19 Mar 2002 dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > =09d...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > =09https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > =09d...@li... > > You can reach the person managing the list at > =09d...@li... > > When replying, please edit your Subject line so it is more specific > 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; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hello! > > Anybody knows how to read ONLY one character in DEV-C++?? I (logically) = =3D > tried with getch() and getche() but these two functions read input from = =3D > the keyboard until find a carriage return, i DO NOT 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 DEV-C++?? Ya he = =3D > tratado con getch() y getche() pero estas funciones leen una serie de =3D > caracteres hasta encontrar un retorno (enter), lo que yo necesito 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; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <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 ONLY one = =3D > character in=3D20 > DEV-C++?? I (logically) tried with getch() and getche() but these two =3D > functions=3D20 > read input from the keyboard until find a carriage return, i DO NOT need = =3D > that, i=3D20 > need to read only one char (be a 'A', a 'W', a TAB, etc).</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Please anybody helpme!!</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches M.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > 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 carac= ter =3D > del teclado=3D20 > en DEV-C++?? Ya he tratado con getch() y getche() pero 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 > 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; > =09charset=3D"us-ascii" > Content-Transfer-Encoding: quoted-printable > > Before you use getche() did you #include <conio.h>? I think you did 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 Behalf Of Daniel > 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 (logically) > tried with getch() and getche() but these two functions read input from > the keyboard until find a carriage return, i DO NOT need that, i need to > read only one char (be a 'A', a 'W', a TAB, etc). > =3D20 > Please anybody helpme!! > Daniel Wilches M. > d_w...@ho... > =3D20 > =3D20 > Hola!! > =3D20 > Alguien sabe como leer solo un caracter del teclado en DEV-C++?? Ya he > tratado con getch() y getche() pero estas funciones leen una serie de > caracteres hasta encontrar un retorno (enter), lo que yo 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; > =09charset=3D"us-ascii" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META HTTP-EQUIV=3D3D"Content-Type" CONTENT=3D3D"text/html; =3D > charset=3D3Dus-ascii"> > <TITLE>Message</TITLE> > > <META content=3D3D"MSHTML 6.00.2713.1100" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><SPAN class=3D3D135031302-19032002><FONT face=3D3DArial color=3D3D#0= 00080 =3D > > size=3D3D2><STRONG>Before you use getche() did you #include =3D > <conio.h>? I think=3D20 > you did 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 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: #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 Message-----<BR><B>From:</B>= =3D20 > dev...@li...=3D20 > [mailto:dev...@li...] <B>On 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 read ONLY one= =3D > character in=3D20 > DEV-C++?? I (logically) tried with getch() and getche() but these two= =3D20 > functions read input from the keyboard until find a carriage return, i = =3D > DO NOT=3D20 > need that, i need to read only one char (be a 'A', a 'W', a TAB,=3D20 > etc).</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Please anybody helpme!!</FONT></DI= V> > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches M.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > =3D > 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 > caracter del=3D20 > teclado en DEV-C++?? Ya he tratado con getch() y getche() pero estas = =3D > funciones=3D20 > leen una serie de caracteres hasta encontrar un retorno (enter), lo =3D > que yo=3D20 > necesito es que lean tan solo un caracter, como una 'C', 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 > href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A></FONT><= /D=3D > IV> > <DIV><FONT face=3D3DArial =3D > 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. Please report th= em > to ha...@bl... with the subject : [Dev-C++ 4.9.1.0 report]. > > Here is the download page for Dev-C++ 4.9.1.0 (package without Mingw is a= lso > available) : > http://www.bloodshed.net/dev/download.html > > There is currently only two download sites, so the servers may be a littl= e > 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; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > But if i launch a windows program with winexec it works, its just when i = =3D > tried to run a dos one like edit.com that it didnt show up! why is that? > > ------=3D_NextPart_000_0023_01C1CE8E.5227C320 > Content-Type: text/html; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <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 program wi= th =3D > winexec it=3D20 > works, its just when i tried to run a dos one like edit.com 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; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Thanx to kevin I was able to display text in fullscreen, but i have two = =3D > new problems now: > One is that the text gets these flashing white 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 dont = =3D > show untill I press alt! > > ------=3D_NextPart_000_0015_01C1CE8E.2494E460 > Content-Type: text/html; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <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 > WM_PAINT:<BR> = =3D > if=3D20 > (first)<BR> = =3D20 > {<BR> &n= =3D > bsp;=3D20 > TextOut(GetDC(hWnd),100,30,"hello",5);<BR> &= =3D > nbsp; =3D20 > first =3D3D =3D > false;<BR> =3D= 20 > }</FONT></DIV> > <DIV> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Is that what i must do or did i do = =3D > something=3D20 > wrong?</FONT></DIV> > <DIV> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Secondly, ever 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: http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.htm= l > > It's a good book, especially for free. > > Benjamin Wheeless > Network Systems - Delta AirLines, Inc. > Atlanta, Georgia - USA > > _________________________________________________________________ > Join the world=92s largest e-mail service with MSN Hotmail. > 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 sounds like your > paint message is working overtime. It sounds like you are painting and > repainting over and over... > > -- this would produce "flashing white lines in the text" (the text is be= ing > 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 > assumption...maybe a path to investigate. > > If I am way off base, my apologies for leading you astray. Good luck. > > Benjamin Wheeless > Network Systems - Delta AirLines, Inc. > Atlanta, Georgia - USA > > _________________________________________________________________ > Join the world=92s largest e-mail service with MSN Hotmail. > 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; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I'm fairly new to Dev-C++ and C++ in general, and one thing I haven't =3D > been able to program is the do-while loop. I have tried to implement one = =3D > in many different ways and have copied numerous examples to the letter, = =3D > but none have worked. Is this a problem with Dev-C++ or the Minigw =3D > compiler, or is it a problem with my installation? > I would appreciate any input. > > ------=3D_NextPart_000_0009_01C1CF3A.56CB4760 > Content-Type: text/html; > =09charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <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++ and C++ in= =3D > general, and=3D20 > one thing I haven't been able to program is the do-while loop. I have =3D > tried to=3D20 > implement one in many different ways and have copied numerous examples = =3D > to the=3D20 > letter, but none have worked. Is this a problem with 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 > |
|
From: Brian P. <br...@su...> - 2002-03-20 15:25:00
|
Deitel & Deitel, "C: How to Program" Covers C, C++ and Java. I went through the C section (and am doing the c++ section now). If you read the text and do the assignments it will get you far. I loved it. I think it was the best book I ever read on the subject. The assignments are actually quite fun and informative. It is a bit pricey but it is well worth it! Brian On Wed, 2002-03-20 at 07:12, Urmila Samanta wrote: > What's a good book on learning how to C? For a course i will 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 > > 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 (logically)= =3D > > tried with getch() and getche() but these two functions read input from= =3D > > the keyboard until find a carriage return, i DO NOT need that, i need t= o =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 DEV-C++?? Ya he = =3D > > tratado con getch() y getche() pero estas funciones leen una serie de = =3D > > caracteres hasta encontrar un retorno (enter), lo que yo necesito es qu= e =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"> > > <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 ONLY one= =3D > > character in=3D20 > > DEV-C++?? I (logically) tried with getch() and getche() but these two = =3D > > functions=3D20 > > read input from the keyboard until find a carriage return, i DO NOT nee= d =3D > > that, i=3D20 > > need to read only one char (be a 'A', a 'W', a TAB, etc).</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Please anybody helpme!!</FONT></DI= V> > > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches M.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > > 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 car= acter =3D > > del teclado=3D20 > > en DEV-C++?? Ya he tratado con getch() y getche() pero 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 > > 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 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 Behalf Of Daniel > > 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 (logically) > > tried with getch() and getche() but these two functions read input from > > the keyboard until find a carriage return, i DO NOT need that, i need t= o > > read only one char (be a 'A', a 'W', a TAB, etc). > > =3D20 > > Please anybody helpme!! > > Daniel Wilches M. > > d_w...@ho... > > =3D20 > > =3D20 > > Hola!! > > =3D20 > > Alguien sabe como leer solo un caracter del teclado en DEV-C++?? Ya he > > tratado con getch() y getche() pero estas funciones leen una serie de > > caracteres hasta encontrar un retorno (enter), lo que yo necesito es qu= e > > 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"> > > <HTML><HEAD> > > <META HTTP-EQUIV=3D3D"Content-Type" CONTENT=3D3D"text/html; =3D > > charset=3D3Dus-ascii"> > > <TITLE>Message</TITLE> > > > > <META content=3D3D"MSHTML 6.00.2713.1100" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><SPAN class=3D3D135031302-19032002><FONT face=3D3DArial color=3D3D= #000080 =3D > > > > size=3D3D2><STRONG>Before you use getche() did you #include =3D > > <conio.h>? I think=3D20 > > you did 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 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=3D= 20 > > 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: #000080 2p= x =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 Message-----<BR><B>From:</B>= =3D20 > > dev...@li...=3D20 > > [mailto:dev...@li...] <B>On 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 read ONLY o= ne =3D > > character in=3D20 > > DEV-C++?? I (logically) tried with getch() and getche() but these two= =3D20 > > functions read input from the keyboard until find a carriage return, = i =3D > > DO NOT=3D20 > > need that, i need to read only one char (be a 'A', a 'W', a TAB,=3D20 > > etc).</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Please anybody helpme!!</FONT></= DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Daniel Wilches M.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><A=3D20 > > =3D > > 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 > > caracter del=3D20 > > teclado en DEV-C++?? Ya he tratado con getch() y getche() pero estas = =3D > > funciones=3D20 > > leen una serie de caracteres hasta encontrar un retorno (enter), lo = =3D > > que yo=3D20 > > necesito es que lean tan solo un caracter, como una 'C', una 'a',=3D2= 0 > > 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 > > href=3D3D"mailto:d_w...@ho...">d_w...@ho...</A></FONT= ></D=3D > > IV> > > <DIV><FONT face=3D3DArial =3D > > 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. Please report = them > > to ha...@bl... with the subject : [Dev-C++ 4.9.1.0 report]. > > > > Here is the download page for Dev-C++ 4.9.1.0 (package without Mingw is= also > > available) : > > http://www.bloodshed.net/dev/download.html > > > > There is currently only two download sites, so the servers may be a lit= tle > > 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, its just when = i =3D > > tried to run a dos one like edit.com that it didnt show up! why is 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"> > > <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 program = with =3D > > winexec it=3D20 > > works, its just when i tried to run a dos one like edit.com 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 two= =3D > > new problems now: > > One is that the text gets these flashing white 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 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"> > > <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 > > WM_PAINT:<BR> &nbs= p;=3D > > if=3D20 > > (first)<BR> = =3D20 > > {<BR> = &n=3D > > bsp;=3D20 > > TextOut(GetDC(hWnd),100,30,"hello",5);<BR>  = ;&=3D > > nbsp; =3D20 > > first =3D3D =3D > > false;<BR> = =3D20 > > }</FONT></DIV> > > <DIV> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Is that what i must do or did i do= =3D > > something=3D20 > > wrong?</FONT></DIV> > > <DIV> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Secondly, ever since I put th= e =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: http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.h= tml > > > > It's a good book, especially for free. > > > > Benjamin Wheeless > > Network Systems - Delta AirLines, Inc. > > Atlanta, Georgia - USA > > > > _________________________________________________________________ > > Join the world=92s largest e-mail service with MSN Hotmail. > > 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 sounds like yo= ur > > paint message is working overtime. It sounds like you are painting and > > repainting over and over... > > > > -- this would produce "flashing white lines in the text" (the text is = 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 > > assumption...maybe a path to investigate. > > > > If I am way off base, my apologies for leading you astray. Good luck. > > > > Benjamin Wheeless > > Network Systems - Delta AirLines, Inc. > > Atlanta, Georgia - USA > > > > _________________________________________________________________ > > Join the world=92s largest e-mail service with MSN Hotmail. > > 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 I haven't = =3D > > been able to program is the do-while loop. I have tried to implement on= e =3D > > in many different ways and have copied numerous examples to the letter,= =3D > > but none have worked. Is this a problem with Dev-C++ or the Minigw =3D > > compiler, or is it a problem with my installation? > > I would 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"> > > <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++ and C++ = in =3D > > general, and=3D20 > > one thing I haven't been able to program is the do-while loop. I have = =3D > > tried to=3D20 > > implement one in many different ways and have copied numerous examples = =3D > > to the=3D20 > > letter, but none have worked. Is this a problem with 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: 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 |
|
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 |