dev-cpp-users Mailing List for Dev-C++ (Page 309)
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: Massimo B. <kb...@ce...> - 2003-10-03 15:39:31
|
On Fri, Oct 03, 2003 at 11:25:23AM -0400, Alvin Thompson <al...@th...> wrote: > i get to answer 2 problems with one email! :) > > 1. go to 'Tools-->Configure Tools' > 2. click Add > 3. for Title, add "Run Program" > 4. for Program, add: > "cmd" (windows nt,2k,xp) or > "command" (windows 9x,me) > 5. for Working Directory, add "<PROJECTPATH>" > 6. for Parameters, add: "/K <EXENAME>" > 7. Click OK > > now whenever you need to run, go to 'Tools-->Run Program' Yup! nice solution! Thanks, Massimo -- Massimo Bertozzi Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735 Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723 WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE... |
|
From: Alvin T. <al...@th...> - 2003-10-03 15:25:31
|
i get to answer 2 problems with one email! :)
1. go to 'Tools-->Configure Tools'
2. click Add
3. for Title, add "Run Program"
4. for Program, add:
"cmd" (windows nt,2k,xp) or
"command" (windows 9x,me)
5. for Working Directory, add "<PROJECTPATH>"
6. for Parameters, add: "/K <EXENAME>"
7. Click OK
now whenever you need to run, go to 'Tools-->Run Program'
hth,
alvin
|
|
From: Daniel K. O. <dan...@ya...> - 2003-10-03 15:00:47
|
Just to add...
The C++ programs get bigger cause they use static C++ libraries, as it
was not feasible to make MinGW work with Microsoft's C++ Runtime
library. MinGW users decided they didn't want to ship a DLL for their
C++ programs, so it gets linked staticaly. (but I don't know if the
latest MinGW 3.1 has an option to compile it dimamically, with a
separated DLL)
About what Zelst wrote, could you please tell why stripping (with the -s
linker flag) is not recommended?
And about the PrintCpp.exe... damn, 1 MB for a hello world? You probably
activated the debug info. Try disabling it, setting an optimization
level, and adding the -s to the linker flags. Here it compiled with 209 KB.
AND last, but not least, a request for the Devs: add a button in the
compile window saying: "Wanna reduce your exe's size? Click here", and
popup the tip-of-the-day window with those explanations.
Daniel K. O.
P.D. van Zelst wrote:
>First off: The C++ code you used is evil and non-standard. ".h" for C++
>standard headers are deprecated (should not be used anymore, have been
>replaced by something better)... use the extensionless headers instead. Like
>"#include <iomanip>".
>
>And now for the filesize matter: Who gives a ***. This issue has come up way
>too many times now. If you're so concerned about the executable size, either
>avoid using the iostreams library altogether, strip your executables after
>compiling (not recommended), use an executable packing program, or wait for
>the new GCC release (which is said to have shorter compile times and
>generates smaller executables). The initial size difference does not scale.
>Huge software projects using thousands of lines of code do not become
>linearly larger. The few hundred kilobytes that get added to the executable
>are caused by the iostreams library implementation. This is a one-time size
>increase... when your applications become larger, you'll see that the size
>doesn't increase much more after that. Comparing executable sizes based on
>trivial "Hello World" applications is a bad idea.
>
>Regards,
>
>
>Paul
>
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...] On Behalf Of Roger
>Chrispim
>Sent: Friday, October 03, 2003 3:11 PM
>To: dev...@li...
>Subject: [Dev-C++] exe file size
>
>Dear sir,
>
>I wrote some programs using Dev-C++ using C coding and C++ coding. I realize
>a too big difference between the size generated by each coding way. Is there
>a way to generate smaller executable C++ files. Bellow, there is an example
>showing this:
>
>Example using C:
>#include <stdio.h>
>#include <stdlib.h>
>main()
>{
> printf("\nHello\n");
>}
>
>The size of the generated by Dev-C++ PrintC.exe file is 27,856 bytes.
>
>Example using C++:
>#include <iomanip.h>
>main()
>{
> cout << endl << "Hello" << endl;
>}
>
>The size of the generated by Dev-C++ PrintCpp.exe file is 1,268,542 bytes.
>
>Thank you for your help
>
>Roger
>
>
>
|
|
From: Michael D. S. <for...@hi...> - 2003-10-03 14:30:06
|
> Windows is responsible for the rest. In Windows, when a > console program has finished executing, its console is closed as well. Well, yes but there is a /K option to the DOS statement "command" that should keep the window open. I've just been, unsuccessfully, trying to figure a way to get it to recognize that option. Most anything can be done if you want it bad enough. Does that mean it's easy -- that it's worth doing -- that we'll ever figure it out :) ms At 09:05 AM 10/3/03, you wrote: >On Fri, Oct 03, 2003 at 03:43:28PM +0200, "P.D. van Zelst" ><pa...@my...> wrote: > > > How about the simplest solution of them all. Simply open a command prompt > > yourself, go to your project directory, and execute your console program > > from the command line. All those code workarounds are evil. Your "output > >Yes, probably I will be forced to do so if I do not want to change 100 >code examples :) > > > window" (console) closes because Dev-C++ simply launches the executable it > > just compiled. Windows is responsible for the rest. In Windows, when a > > console program has finished executing, its console is closed as well. This > > is normal, standard behaviour, and has nothing to do with Dev-C++ (and > > Dev-C++ isn't responsible for fixing this either). The solution to this > >I do not agree with this. Of course, it is the standard behaviour but I >do not find it very confortable. In particular, from a developer point >of view, I would like to see my output. At the same time I am much more >used to press compile&run, than compile - switch window - execute. > >Moreover, other compilers behave in a different manner (anyway for all >other aspects I like dev c++ a bit more). > >M. >-- >Massimo Bertozzi >Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735 >Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723 >WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE... > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: chea s. o. <y2k...@ya...> - 2003-10-03 14:21:39
|
thanks,"Per Westermark" <pw...@ia...> http://mrsimon.tripod.com/DevC.html i went to the above web page and followed exactly the instructions inside to add the winbgim.h and etc.. into the include folder... but what i got was just error which intercepted with the conio.h .Then i remove the conio.h into another folder, but still i couldn't find the winbgim.h... can anyone try it and tell me what u got? for your information i am under window XP environment. --- dev...@li... wrote: > 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. RE: How to not close output win? (Reid > Thompson) > 2. RE: How to not close output win? (Reid > Thompson) > 3. graphic using Dev c++ (chea sin ong) > 4. RE: How to not close output win? (Rossi > Giovanni) > 5. RE: How to not close output win? (P.D. van > Zelst) > 6. Re: graphic using Dev c++ (Per Westermark) > > --__--__-- > > Message: 1 > Subject: RE: [Dev-C++] How to not close output win? > Date: Fri, 3 Oct 2003 07:45:16 -0400 > From: "Reid Thompson" <Rei...@at...> > To: "Natalie Bryant" > <nap...@lo...>, > <ber...@ce...> > Cc: "devc++" <dev...@li...> > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C389A3.D04AABD8 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Create an exit function that has the system pause in > it. Then, > everywhere you wish to exit, call the exit function. > Only have to have > it in one place. > =20 > =20 > > reid=20 > > -----Original Message----- > From: Natalie Bryant > [mailto:nap...@lo...]=20 > Sent: Friday, October 03, 2003 7:03 AM > To: ber...@ce... > Cc: devc++ > Subject: Re: [Dev-C++] How to not close output win? > =09 > =09 > Thankyou Massimo, > =20 > I'll bear that in mind for later when I need it. > =20 > Kind regards > =20 > Natalie > > ----- Original Message -----=20 > From: Massimo Bertozzi <mailto:kb...@ce...> =20 > To: Natalie Bryant > <mailto:nap...@lo...> =20 > Cc: devc++ > <mailto:dev...@li...> > > Sent: Friday, October 03, 2003 11:55 AM > Subject: Re: [Dev-C++] How to not close output > win? > > On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie > Bryant > <nap...@lo...> wrote: > =09 > > Hi Neszt, > >=20 > > Reid sent me this solution yesterday to the same > problem. It instantly made everything work > properly... Shown below. > =09 > Yes, until you have a single exit in your > program. > When you have more > possibilities you have to replicate the > system("pause") > everywhere. > =09 > M. > --=20 > Massimo Bertozzi =20 > Dipartimento di Ingegneria dell'Informazione > Voice: > +39 0521 90 5735 > Parco Area delle Scienze, 181A, Parma, ITALY > Fax: > +39 0521 90 5723 > WWW: http://www.ce.unipr.it/people/bertozzi > E-mail: > ber...@CE... > =20 > =09 > > > ------_=_NextPart_001_01C389A3.D04AABD8 > Content-Type: text/html; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 > Transitional//EN"> > <HTML><HEAD><TITLE>Message</TITLE> > <META http-equiv=3DContent-Type > content=3D"text/html; = > charset=3Dus-ascii"> > <META content=3D"MSHTML 6.00.2800.1226" > name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><SPAN class=3D821374411-03102003><FONT > face=3D"Courier New"=20 > color=3D#0000ff>Create an exit function that has the > system pause in = > it. =20 > Then, everywhere you wish to exit, call the exit > function. Only = > have to=20 > have it in one place.</FONT></SPAN></DIV> > <DIV> </DIV> > <DIV> </DIV><!-- Converted from text/rtf format > --> > <P><SPAN lang=3Den-us><FONT face=3D"Courier New" > color=3D#0000ff=20 > size=3D2>reid</FONT></SPAN> </P> > <BLOCKQUOTE dir=3Dltr=20 > style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; > BORDER-LEFT: #0000ff 2px = > solid; MARGIN-RIGHT: 0px"> > <DIV></DIV> > <DIV class=3DOutlookMessageHeader lang=3Den-us > dir=3Dltr = > align=3Dleft><FONT=20 > face=3DTahoma size=3D2>-----Original > Message-----<BR><B>From:</B> = > Natalie Bryant=20 > [mailto:nap...@lo...] > <BR><B>Sent:</B> Friday, = > October 03,=20 > 2003 7:03 AM<BR><B>To:</B> > ber...@ce...<BR><B>Cc:</B>=20 > devc++<BR><B>Subject:</B> Re: [Dev-C++] How to not > close output=20 > win?<BR><BR></FONT></DIV> > <DIV>Thankyou Massimo,</DIV> > <DIV> </DIV> > <DIV>I'll bear that in mind for later when I need > it.</DIV> > <DIV> </DIV> > <DIV>Kind regards</DIV> > <DIV> </DIV> > <DIV>Natalie</DIV> > <BLOCKQUOTE=20 > style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; > MARGIN-LEFT: 5px; = > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> > <DIV style=3D"FONT: 10pt arial">----- Original > Message ----- </DIV> > <DIV=20 > style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; > font-color: = > black"><B>From:</B>=20 > <A tit...@ce... > href=3D"mailto:kb...@ce...">Massimo = > Bertozzi</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 > tit...@lo...=20 > > href=3D"mailto:nap...@lo...">Natalie > Bryant</A> = > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A=20 > tit...@li...=20 > === message truncated === __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Roger C. <rc...@ic...> - 2003-10-03 14:12:52
|
Dear sir,
I wrote some programs using Dev-C++ using C coding and C++ coding. I realize a
too big difference between the size generated by each coding way. Is there a
way to generate smaller executable C++ files. Bellow, there is an example
showing this:
Example using C:
#include <stdio.h>
#include <stdlib.h>
main()
{
printf("\nHello\n");
}
The size of the generated by Dev-C++ PrintC.exe file is 27,856 bytes.
Example using C++:
#include <iomanip.h>
main()
{
cout << endl << "Hello" << endl;
}
The size of the generated by Dev-C++ PrintCpp.exe file is 1,268,542 bytes.
Thank you for your help
Roger
------------------------------------------
Mensagem enviada atraves do WebMail ICONet
|
|
From: Massimo B. <ber...@ce...> - 2003-10-03 14:05:45
|
On Fri, Oct 03, 2003 at 03:43:28PM +0200, "P.D. van Zelst" <pa...@my...> wrote: > How about the simplest solution of them all. Simply open a command prompt > yourself, go to your project directory, and execute your console program > from the command line. All those code workarounds are evil. Your "output Yes, probably I will be forced to do so if I do not want to change 100 code examples :) > window" (console) closes because Dev-C++ simply launches the executable it > just compiled. Windows is responsible for the rest. In Windows, when a > console program has finished executing, its console is closed as well. This > is normal, standard behaviour, and has nothing to do with Dev-C++ (and > Dev-C++ isn't responsible for fixing this either). The solution to this I do not agree with this. Of course, it is the standard behaviour but I do not find it very confortable. In particular, from a developer point of view, I would like to see my output. At the same time I am much more used to press compile&run, than compile - switch window - execute. Moreover, other compilers behave in a different manner (anyway for all other aspects I like dev c++ a bit more). M. -- Massimo Bertozzi Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735 Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723 WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE... |
|
From: Per W. <pw...@ia...> - 2003-10-03 13:44:03
|
1: gotoxy isn't graphics but nonstandard code used for text output to console. 2: check the history of this list. there have quite resently - even today - been a lot of discussion about a port of borland graphics interface bgi for use by Windows programs. 3: you might use windows graphics. Just create a device context, select a pen and then draw with it. /Per W On Fri, 3 Oct 2003, chea sin ong wrote: > may i know how can i use graphic in Dev C++? > > do i need to find any library??? any suggestion? > > i just want some function like "gotoxy" which is in > conio.h header file. > > i just need simple graphic. if can i want to use mouse > under window. > > any suggestion please let me know. > > thanks ! > > ping > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: P.D. v. Z. <pa...@my...> - 2003-10-03 13:42:56
|
How about the simplest solution of them all. Simply open a command prompt
yourself, go to your project directory, and execute your console program
from the command line. All those code workarounds are evil. Your "output
window" (console) closes because Dev-C++ simply launches the executable it
just compiled. Windows is responsible for the rest. In Windows, when a
console program has finished executing, its console is closed as well. This
is normal, standard behaviour, and has nothing to do with Dev-C++ (and
Dev-C++ isn't responsible for fixing this either). The solution to this
'problem' is to simply open a command prompt yourself (which you have to
close by yourself as well, will not be automatically closed), and execute
your program in there. Or has the Windows age alienated everyone from
anything having to do with command prompts?
Regards,
Paul
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Rossi
Giovanni
Sent: Friday, October 03, 2003 2:45 PM
To: 'Reid Thompson'; Natalie Bryant; ber...@ce...
Cc: devc++
Subject: RE: [Dev-C++] How to not close output win?
You can use "atexit" :
atexit()
Prototype: int atexit(void (_USERENTRY * func)(void)); Header File: stdlib.h
ANSI: C and C++
Explanation: Use atexit to have a function called when the program exits.
The parameter it accepts is a function name, without the typical () of a
function call. It must return void and accept no values (hence the use of
void in the prototype of atexit). If atexit is called more than once, the
last function passed to it will be the first one executed. It can be used up
to 32 times.
Example:
#include <iostream.h>
#include <stdlib.h>
//Program calls atexit with FinalFunction //FinalFunction is executed before
program ends void FinalFunction(void) {
cout<<"Final function called - Press enter to exit";
cin.get(); // or system("pause")
}
int main()
{
atexit(FinalFunction);
return 0;
}
Best Regards
Gianni
> -----Original Message-----
> From: Reid Thompson [SMTP:Rei...@at...]
> Sent: Friday, October 03, 2003 1:45 PM
> To: Natalie Bryant; ber...@ce...
> Cc: devc++
> Subject: RE: [Dev-C++] How to not close output win?
>
> Create an exit function that has the system pause in it. Then,
> everywhere you wish to exit, call the exit function. Only have to
> have it in one place.
>
>
>
> reid
>
> -----Original Message-----
> From: Natalie Bryant [mailto:nap...@lo...]
> Sent: Friday, October 03, 2003 7:03 AM
> To: ber...@ce...
> Cc: devc++
> Subject: Re: [Dev-C++] How to not close output win?
>
>
> Thankyou Massimo,
>
> I'll bear that in mind for later when I need it.
>
> Kind regards
>
> Natalie
>
> ----- Original Message -----
> From: Massimo Bertozzi <mailto:kb...@ce...>
> To: Natalie Bryant <mailto:nap...@lo...>
> Cc: devc++ <mailto:dev...@li...>
> Sent: Friday, October 03, 2003 11:55 AM
> Subject: Re: [Dev-C++] How to not close output win?
>
> On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant <
> nap...@lo... <mailto:nap...@lo...>>
> wrote:
>
> > Hi Neszt,
> >
> > Reid sent me this solution yesterday to the same problem.
> It instantly made everything work properly... Shown below.
>
> Yes, until you have a single exit in your program. When
you have
> more
> possibilities you have to replicate the system("pause")
everywhere.
>
> M.
> --
> Massimo Bertozzi
> Dipartimento di Ingegneria dell'Informazione Voice:
> +39 0521 90 5735
> Parco Area delle Scienze, 181A, Parma, ITALY Fax:
> +39 0521 90 5723
> WWW: <http://www.ce.unipr.it/people/bertozzi> E-mail:
> ber...@CE... <mailto:ber...@CE...>
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Rossi G. <Gio...@el...> - 2003-10-03 12:46:46
|
You can use "atexit" :
atexit()
Prototype: int atexit(void (_USERENTRY * func)(void));
Header File: stdlib.h
ANSI: C and C++
Explanation: Use atexit to have a function called when the program exits.
The parameter it accepts is a function name, without the typical () of a
function call. It must return void and accept no values (hence the use of
void in the prototype of atexit). If atexit is called more than once, the
last function passed to it will be the first one executed. It can be used up
to 32 times.
Example:
#include <iostream.h>
#include <stdlib.h>
//Program calls atexit with FinalFunction
//FinalFunction is executed before program ends
void FinalFunction(void)
{
cout<<"Final function called - Press enter to exit";
cin.get(); // or system("pause")
}
int main()
{
atexit(FinalFunction);
return 0;
}
Best Regards
Gianni
> -----Original Message-----
> From: Reid Thompson [SMTP:Rei...@at...]
> Sent: Friday, October 03, 2003 1:45 PM
> To: Natalie Bryant; ber...@ce...
> Cc: devc++
> Subject: RE: [Dev-C++] How to not close output win?
>
> Create an exit function that has the system pause in it. Then, everywhere
> you wish to exit, call the exit function. Only have to have it in one
> place.
>
>
>
> reid
>
> -----Original Message-----
> From: Natalie Bryant [mailto:nap...@lo...]
> Sent: Friday, October 03, 2003 7:03 AM
> To: ber...@ce...
> Cc: devc++
> Subject: Re: [Dev-C++] How to not close output win?
>
>
> Thankyou Massimo,
>
> I'll bear that in mind for later when I need it.
>
> Kind regards
>
> Natalie
>
> ----- Original Message -----
> From: Massimo Bertozzi <mailto:kb...@ce...>
> To: Natalie Bryant <mailto:nap...@lo...>
> Cc: devc++ <mailto:dev...@li...>
> Sent: Friday, October 03, 2003 11:55 AM
> Subject: Re: [Dev-C++] How to not close output win?
>
> On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant <
> nap...@lo... <mailto:nap...@lo...>>
> wrote:
>
> > Hi Neszt,
> >
> > Reid sent me this solution yesterday to the same problem.
> It instantly made everything work properly... Shown below.
>
> Yes, until you have a single exit in your program. When
> you have more
> possibilities you have to replicate the system("pause")
> everywhere.
>
> M.
> --
> Massimo Bertozzi
> Dipartimento di Ingegneria dell'Informazione Voice:
> +39 0521 90 5735
> Parco Area delle Scienze, 181A, Parma, ITALY Fax:
> +39 0521 90 5723
> WWW: <http://www.ce.unipr.it/people/bertozzi> E-mail:
> ber...@CE... <mailto:ber...@CE...>
>
>
>
|
|
From: chea s. o. <y2k...@ya...> - 2003-10-03 12:44:49
|
may i know how can i use graphic in Dev C++? do i need to find any library??? any suggestion? i just want some function like "gotoxy" which is in conio.h header file. i just need simple graphic. if can i want to use mouse under window. any suggestion please let me know. thanks ! ping __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Reid T. <Rei...@at...> - 2003-10-03 12:09:48
|
EX.=20
=20
#include <stdio.h>=20
#include <stdlib.h>=20
=20
static void myExit(void);=20
static void myFirstExitLocation(int myExitFlag);=20
static void mySecondExitLocation(int myExitFlag);=20
int main(void)=20
{=20
int myExitFlag;=20
myExitFlag =3D 0; /* set to 0 to exit from myFirstExitLocation */=20
/* set to 1 to exit from mySecondExitLocation */=20
/* set to anything else to exit from main */=20
myFirstExitLocation(myExitFlag);=20
mySecondExitLocation(myExitFlag);=20
=20
=20
printf("Exiting from main\n");=20
myExit();=20
return(0); /* never reachable */=20
}=20
=20
void myExit(void)=20
{=20
system("PAUSE");=20
exit(0);=20
}=20
void myFirstExitLocation(int myExitFlag)=20
{=20
printf("In myFirstExitLocation\n");=20
if (myExitFlag =3D=3D 0)=20
{=20
printf("Exiting In myFirstExitLocation\n");=20
myExit();=20
}=20
}=20
void mySecondtExitLocation(int myExitFlag)=20
{=20
printf("In mySecondExitLocation\n");=20
if (myExitFlag =3D=3D 1)=20
{=20
printf("Exiting In mySecondExitLocation\n");=20
myExit();=20
}=20
}=20
=20
=20
reid=20
-----Original Message-----=20
From: Reid Thompson=20
Sent: Friday, October 03, 2003 7:45 AM=20
To: Natalie Bryant; ber...@ce...=20
Cc: devc++=20
Subject: RE: [Dev-C++] How to not close output win?=20
Create an exit function that has the system pause in it. Then,
everywhere you wish to exit, call the exit function. Only have to have
it in one place.
=20
reid=20
-----Original Message-----=20
From: Natalie Bryant [mailto:nap...@lo...]=20
Sent: Friday, October 03, 2003 7:03 AM=20
To: ber...@ce...=20
Cc: devc++=20
Subject: Re: [Dev-C++] How to not close output win?=20
Thankyou Massimo,=20
=20
I'll bear that in mind for later when I need it.=20
=20
Kind regards=20
=20
Natalie=20
----- Original Message -----=20
From: HYPERLINK "mailto:kb...@ce..."Massimo Bertozzi=20
To: HYPERLINK "mailto:nap...@lo..."Natalie Bryant=20
Cc: HYPERLINK "mailto:dev...@li..."devc++=20
Sent: Friday, October 03, 2003 11:55 AM=20
Subject: Re: [Dev-C++] How to not close output win?=20
On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant <HYPERLINK
"mailto:nap...@lo..."nap...@lo...>
wrote:
> Hi Neszt,=20
>=20
> Reid sent me this solution yesterday to the same problem. It instantly
made everything work properly... Shown below.=20
Yes, until you have a single exit in your program. When you have more
possibilities you have to replicate the system("pause") everywhere.=20
M.=20
--=20
Massimo Bertozzi =20
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90
5735=20
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90
5723=20
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: HYPERLINK
"mailto:ber...@CE..."ber...@CE...=20
=20
|
|
From: Reid T. <Rei...@at...> - 2003-10-03 11:46:05
|
Create an exit function that has the system pause in it. Then,
everywhere you wish to exit, call the exit function. Only have to have
it in one place.
=20
=20
reid=20
-----Original Message-----
From: Natalie Bryant [mailto:nap...@lo...]=20
Sent: Friday, October 03, 2003 7:03 AM
To: ber...@ce...
Cc: devc++
Subject: Re: [Dev-C++] How to not close output win?
=09
=09
Thankyou Massimo,
=20
I'll bear that in mind for later when I need it.
=20
Kind regards
=20
Natalie
----- Original Message -----=20
From: Massimo Bertozzi <mailto:kb...@ce...> =20
To: Natalie Bryant
<mailto:nap...@lo...> =20
Cc: devc++ <mailto:dev...@li...>
Sent: Friday, October 03, 2003 11:55 AM
Subject: Re: [Dev-C++] How to not close output win?
On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant
<nap...@lo...> wrote:
=09
> Hi Neszt,
>=20
> Reid sent me this solution yesterday to the same
problem. It instantly made everything work properly... Shown below.
=09
Yes, until you have a single exit in your program.
When you have more
possibilities you have to replicate the system("pause")
everywhere.
=09
M.
--=20
Massimo Bertozzi =20
Dipartimento di Ingegneria dell'Informazione Voice:
+39 0521 90 5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax:
+39 0521 90 5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail:
ber...@CE...
=20
=09
|
|
From: Natalie B. <nap...@lo...> - 2003-10-03 11:04:04
|
Thankyou Massimo,
I'll bear that in mind for later when I need it.
Kind regards
Natalie
----- Original Message -----=20
From: Massimo Bertozzi=20
To: Natalie Bryant=20
Cc: devc++=20
Sent: Friday, October 03, 2003 11:55 AM
Subject: Re: [Dev-C++] How to not close output win?
On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant =
<nap...@lo...> wrote:
> Hi Neszt,
>=20
> Reid sent me this solution yesterday to the same problem. It =
instantly made everything work properly... Shown below.
Yes, until you have a single exit in your program. When you have =
more
possibilities you have to replicate the system("pause") everywhere.
M.
--=20
Massimo Bertozzi =20
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 =
5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 =
5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: =
ber...@CE...
=20
|
|
From: Massimo B. <kb...@ce...> - 2003-10-03 10:55:40
|
On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant <nap...@lo...> wrote:
> Hi Neszt,
>
> Reid sent me this solution yesterday to the same problem. It instantly made everything work properly... Shown below.
Yes, until you have a single exit in your program. When you have more
possibilities you have to replicate the system("pause") everywhere.
M.
--
Massimo Bertozzi
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE...
|
|
From: Natalie B. <nap...@lo...> - 2003-10-03 10:39:48
|
Hi Neszt,
Reid sent me this solution yesterday to the same problem. It instantly =
made everything work properly... Shown below.
Kind rgeards
Natalie
-------------------------------------------------------------------
add the following line just before the return in your main function
system("PAUSE");=20
If you create a new project in Dev-cpp it gens an intial main function =
with this in it by default:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
=20
system("PAUSE");=20
return 0;
}
This should remedy the closing of the window.
reid=20
----- Original Message -----=20
From: Neszt Tibor=20
To: Massimo Bertozzi=20
Cc: Dev...@li...=20
Sent: Friday, October 03, 2003 11:18 AM
Subject: Re: [Dev-C++] How to not close output win?
> I am using Dev-C++ to teach C++ at my university. The first =
examples I
> discuss in class are very very simple (like hello word). Anyway I =
would
> like to show the output. Unfortunately, Dev-C++ close immediately =
the
> output window. I did not find any options to change this behaviour.
:-)))))))
I recommend the dev-c++ develoopers to make a new example witch show =
this
to avoid these questions in the future..=20
Neszt Tibor
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
=20
|
|
From: Massimo B. <kb...@ce...> - 2003-10-03 10:32:23
|
On Fri, Oct 03, 2003 at 12:15:54PM +0200, Tim Schumacher <ti...@we...> wrote:
>
> void wait ()
> {
> ~ cin.clear ();
> ~ cin.ignore ( cin.rdbuf () -> in_avail () );
> ~ cin.get ();
> }
More elegant than mine, but still not very confortable. I had to put a
wait() at every exit point.
M.
--
Massimo Bertozzi
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE...
|
|
From: Neszt T. <ne...@ss...> - 2003-10-03 10:31:32
|
Hello!
> I am new to Dev-cpp. Actually just started 2 days back. I am trying to
> run an opengl program from Dev-cpp as a console window. Along with the
> opengl program, I also have some "printf" statements based on certain
> actions happening in opengl window. Now the problem is I cant figure out
> where the text with the "printf" command is being printed out.
> .
> .
> .
If You are debugging Your program, You can execute:
yourprogram.exe > debug.txt
and the printf output will be stored to the debug.txt file.
Another way to write an opengl function, to display your txt on the opengl
screen. Like this:
void txtout(char *txt) {
int i;
for (i=0 ; txt[i]!='\0' ; i++) {
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_10, txt[i]);
}
}
Regards,
Neszt Tibor
|
|
From: Neszt T. <ne...@ss...> - 2003-10-03 10:21:58
|
> I am using Dev-C++ to teach C++ at my university. The first examples I > discuss in class are very very simple (like hello word). Anyway I would > like to show the output. Unfortunately, Dev-C++ close immediately the > output window. I did not find any options to change this behaviour. :-))))))) I recommend the dev-c++ develoopers to make a new example witch show this to avoid these questions in the future.. Neszt Tibor |
|
From: Tim S. <ti...@we...> - 2003-10-03 10:15:03
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Massimo and hi list,
Massimo Bertozzi wrote:
| Is there any solution (apart to use kludges like
system("pause"); at the
| end of my code)?
I have found the following, works fine for me, but don't ask me
what it realy means ;)
void wait ()
{
~ cin.clear ();
~ cin.ignore ( cin.rdbuf () -> in_avail () );
~ cin.get ();
}
so long
Tim
- --
WE ARE TEH BORG!
~ RESSISTANCE IS FUTILE!
~ http://we-are-teh-b.org/~tim/borg.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
iD8DBQE/fUxXsMXChvH2qP0RAvoLAJ9oS4A+mR1N0NE0cc9wmDN5Uorq+wCfS18G
hfgV7I5f9mTYnMn2NW++17A=
=WQIR
-----END PGP SIGNATURE-----
|
|
From: Massimo B. <kb...@ce...> - 2003-10-03 09:56:53
|
Hi,
I am using Dev-C++ to teach C++ at my university. The first examples I
discuss in class are very very simple (like hello word). Anyway I would
like to show the output. Unfortunately, Dev-C++ close immediately the
output window. I did not find any options to change this behaviour.
Is there any solution (apart to use kludges like system("pause"); at the
end of my code)?
Thanks,
Massimo
--
Massimo Bertozzi
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE...
|
|
From: Daniel G. <sp...@ho...> - 2003-10-03 08:39:38
|
From a quick look on MSDN.com, isn't RAS to do with Server 2003 ? >From: "Michael D. Smith" <for...@hi...> >To: Dev...@li... >Subject: Re: [Dev-C++] Best place to find header files >Date: Thu, 02 Oct 2003 17:12:58 -0500 > > > I have some code that has: > >#include<ras.h> >#include<raserror.h> > >And I don't have those two files on my computer. I thought I would just >find those two files and be OK but, now that you mention libraries... > >There is a Windows RAS API. Perhaps there is a whole RAS API library? Since >I don't have these two header files yet, for all I know they call ten >others that I also don't have. So, I may need a library. May not :) > >Anyone have any experience with dialing the modem, dial-up networking, that >sort of thing? > >ms > > > > >At 10:50 AM 10/2/03, you wrote: >>What do you want header files for? >> >>Your compiler already comes stocked with all header files needed for >>using the supplied libraries. >> >>If you install additional libraries, the installation package will also >>contain any extra header files needed. >> >>/Per W >> >>On Thu, 2 Oct 2003, Michael D. Smith wrote: >> >> > >> > Where is the best place to find header files? Is there a good >>collection >> > somewhere, like cpan is for perl? >> > >> > ms >> > >> > >> > >> > ------------------------------------------------------- >> > This sf.net email is sponsored by:ThinkGeek >> > Welcome to geek heaven. >> > http://thinkgeek.com/sf >> > _______________________________________________ >> > Dev-cpp-users mailing list >> > Dev...@li... >> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Mark S. <mar...@li...> - 2003-10-03 08:18:35
|
Hi all Well here is a little more info which I obtained from Konstantin Knizhnik the original author of the windows port of winbgi. On win98 if I set the display properties settings to 256 colors then the software works OK on the win98 machine, does this suggest a possible fix? Thanks in advance for any suggestions. Regards mark -----Original Message----- From: Mark Smith [mailto:mar...@li...] Sent: 30 September 2003 13:24 To: Dev-Cpp-Users (E-mail) Subject: [Dev-C++] dev BGI library OS dependant behaviour Hi all firstly thanks to Yeoh for the dev project files for the static library & bgidemo ( http://www.yeohhs.com/shareware/winbgi_DevCpp.zip ) When I use the outtext() function & run on win2000 the text is in the colour set by setcolor and the background colour is as set by setbkcolour as one would expect, but if I rebuild & run it on a win98 machine the text colour is OK but the background colour goes to black irrespective of what I set the background colour to. Does anyone have a fix or must I live with the performance difference between the OS ? P.S. I'm not familiar with windows API programming :-( TIA Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |
|
From: <gen...@ya...> - 2003-10-03 06:46:09
|
hello all, i posted this in the gimpwindev (or something like that) Yahoo! group, but i want to post this here too. quite a few of the mirrors for the packages for Dev-C++ are, shall i say, MIA. http://devcpp.everfloyd.com is down, and www.softnews.ro doesn't host dev-c++ anymore. planetmirror still does, but doesn't have the updated GTK devpak. lastly, if you created a devpak, you might want to share it with us. i found a few devpaks that weren't listed on the Bloodshed software devpak page, such as one for the FOX tooklit, a real, live Allegro devpak (not a zipfile/installer), and an updated wxWindows (v 2.4.0) devpak, all by searching for devpaks on google. PS. i'm not sure if anyone knows that zlib comes with the imagelib devpaks. thanks, though Yeoh --------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger |
|
From: Chris S. <CS...@Ai...> - 2003-10-03 02:21:47
|
Damian,=20
=20
Please could you also provide the code with the full path name - there =
may be some incorrect syntax there.=20
=20
Chris=20
-----Original Message-----
From: damian knight [mailto:kni...@ho...]
Sent: Friday, 3 October 2003 8:21 AM
To: Chris Sroka
Subject: RE: [Dev-C++] opening files
Chris
This is the code when a Game object is instantiated. the file =
"instructions.txt" is located in the same folder as the .cpp files. All =
I get when i run the program though is the "Data not found..." error =
messages that are in the else statement. I did try putting the full =
path name in the code with the same result, the "Data not found..." =
error message. The bizarre thing is, the code below works perfectly on =
my Win 98SE partition!
Game::Game()=20
{=20
char ch;=20
ifstream inFile;=20
inFile.open("instructions.txt");=20
if(!inFile.fail())=20
{=20
system("CLS");=20
while(!inFile.eof())=20
{=20
ch =3D inFile.get();=20
if(ch =3D=3D '@') // end of page=20
{=20
cout << endl;=20
system("PAUSE");=20
system("CLS");=20
}=20
else=20
cout << ch;=20
}=20
inFile.close();=20
}=20
else=20
{=20
cout << "Data file not found..." << endl;=20
cout << "Fatal error..." << endl;=20
cout << "Terminating program..." << endl;=20
system("PAUSE");=20
exit(1);=20
}=20
}=20
>From: "Chris Sroka"=20
>To: "damian knight" ,=20
>Subject: RE: [Dev-C++] opening files=20
>Date: Thu, 2 Oct 2003 05:39:33 +0100=20
>=20
>Damian,=20
>=20
>When you run DevC++ from the IDE (ie the development environment) and =
don't specify a file path when opening files, then DevC++ uses the =
default path, ie the location of your DevC++ program files, usually =
"C:\Program Files\Dev-C++\Bin" or similar. So this is where your =
application will look when trying to open a file.=20
>=20
>To get around this. either specify the full path of the files you are =
trying to open, or put the files in the same place as your DevC++ =
application. The first suggestion is the more elegant and efficient.=20
>=20
>Chris=20
>=20
>=20
>=20
>-----Original Message-----=20
>From: damian knight [mailto:kni...@ho...]=20
>Sent: Thursday, 2 October 2003 11:59 AM=20
>To: dev...@li...=20
>Subject: [Dev-C++] opening files=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>Hi=20
>=20
>I am currently running Dev C++ v.4. I have XP home edition as my OS. =
When i compile and run my program, the files I am trying to read from =
are not being found. They are located in the same directory as my .cpp =
files and the program works at a different location running Win 2000!=20
>=20
>Any ideas?=20
>=20
>Damian=20
>=20
>=20
> _____=20
>=20
>Get less junk mail with ninemsn Premium. Upgrade now! =
------------------------------------------------------- This sf.net =
email is sponsored by:ThinkGeek Welcome to geek heaven. =
http://thinkgeek.com/sf _______________________________________________ =
Dev-cpp-users mailing list Dev...@li... TO =
UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm =
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20
>=20
_____ =20
Protect your inbox from harmful viruses with new ninemsn Premium. =
Upgrade now! <http://g.msn.com/8HMAENAU/2746??PS=3D> =20
|