[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 > |