dev-cpp-users Mailing List for Dev-C++ (Page 585)
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: Luigi S. <gi...@li...> - 2002-05-16 17:58:45
|
At 15:52 15/05/02 +0200, Hongli Lai wrote: >Hm... you're right. There's a bug in Dev-C++ parsing code. >I'm going to fix it now. The next version will include the bugfix. Here are two small things which could be worth a little attention: 1. the command "rm" (used to erase files, when making the "clean" target), is not available on old Win98SE, only "del" is implemented there and it expects one argument (so one may erase: a single file or more than one file but only using wildcards). 2. The Execute->Syntax Check, could have an icon so that it may be used more often, and why not consider the command "gcc -c source.c" in place of "gcc -S source.c -o nul"? The former one would generate the object file (if there is no error during the compilation) which would only need to be linked when one cliks on the "Compile" button to build the executable. -- Luigi gi...@li... |
|
From: Luigi S. <gi...@li...> - 2002-05-16 17:58:43
|
At 02:46 16/05/02 +0000, Nancy Alvarez wrote: >Can somebody help me? > >I dont`t get display the messages whith any program. For example this? I suppose you are using Dev-C++, and running programs from within the IDE. So you only see a flashing black screen. You will hear about putting some line of code in your program that pauses it, allowing you to read the output, I personally believe that no extra line of code should be added to the program, because the problem is related to the OS (Windows) not to the program itself, instead you should run this kind of programs from a DOS box (in fact they are console applications, and as such, the natural way of using them, is within a console). >... >/* Result of execution > >This is a string. > >.gnirts a si sih > >*/ BTW: your program has a small bug. In fact, The 'T' of "This" is not displayed in the reversed string (while the terminating '\0' is displayed twice). I'm tempted to fix it, but that would take the fun away from you :) -- Luigi gi...@li... |
|
From: Hongli L. <h....@ch...> - 2002-05-16 17:07:49
|
vagner.net wrote: > Please, somebody help me. > A need to compile a c file with a def file (that I created) to make a > dll , but I don´t know how to do. > > Thanks for any idea. > Vagner C:\Dev-C++\bin\dllwrap --def foo.def -o bar.dll object1.o object2.o object3.o [....] |
|
From: vagner.net <vag...@ig...> - 2002-05-16 16:56:46
|
Please, somebody help me. A need to compile a c file with a def file (that I created) to make a = dll , but I don=B4t know how to do. Thanks for any idea. Vagner |
|
From: <ste...@ge...> - 2002-05-16 15:52:09
|
I have a question about the new realease... I compile my project, and then if I want to compile straight after again the compiler says; "cannot open output file Clod.exe D:\Dev-C++_4930\mingw32\bin\ld.exe - Permission denied" Then I wait for a while (maybe 10secs or so), and then it compiles fine again. What's the reason for this? I can't either delete my exe until a few second after compilation.. Thanks! - Stein Nygård - http://null.dk/~stein ----- Original Message ----- From: "Colin Laplace" <col...@wa...> To: <dev...@li...> Sent: Tuesday, May 14, 2002 2:33 AM Subject: [Dev-C++] [RELEASE] Dev-C++ 4.9.3.0 beta available ! > Hi !! > > Here it is ! the new Dev-C++ beta :) > This one should really be far more stable than previous 4.9.2.0. > > Here is what's new : > > * Lots of bugfixes !! > * More stable class browser and code completion. > * Dev-C++ now displays the current build progress, instead of printing all > output when compilation has ended. > * New, rewritten conio, for Borland compatibility (read FAQ about how to use > it) > * A new Package Manager is now included. > * Perfect dependency generation; let's say if you have main.c and main.h. > If you change something in main.h, main.c will now get recompiled. > This slows things down a bit, but can be disabled in Compiler Options. > * New syntax checking feature. > * New translations: Chinese, Greek, Germand and Spanish. > * Swap header/source files in Edit and popup menus > * Shortcuts customizing > * Selection of project output directory > * File associations > > Please report bugs to sourceforge bug tracker > (http://sourceforge.net/tracker/?group_id=10639&atid=110639) or to me at > ha...@bl... and to hongli (ho...@te...). > > We will soon release various packages for using with Dev-C++ (SDL, wxWindows, > FLTK...) > > Enjoy :) > Colin > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Mark A. M. <fly...@be...> - 2002-05-16 15:09:47
|
Using beta 3 release on Win98SE.
Whenever I try to start a debug session I receive an error message that says:
"Error with debugging process : GetStdHandle"
Is anyone else experiencing this or is it my setup?
--
Best Regards,
Mark A. Munza <fly...@be...>
Flying Horse Productions, LLC
|
|
From: Andres R. <lo...@ho...> - 2002-05-16 14:25:19
|
Hello! Bob, IMO you are a Bill Gates of that list! HTML is evil and specialy with M$ products. About viruses.. ' active involvement' in not always neceseary. Your precius Outlooks have so much open doors to use to get a virus in! About HTML code generated by M$ products: it's the worst I've ever seen in my entire life! Try generate a webpage using Frontpage or even worst, Word. Then wind up Macromedia DreamWeaver and try clean up code. Then you can see how much irrelavent tags you have in there. For example: Do a usual table (5x5) in word and by hand. Word generates 3k file than handmade is only about 200 bytes! What a waste. Have you ever used some other OP systems than Windows?? You should! Andres. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Bob Wilson Sent: Thursday, May 16, 2002 6:22 AM To: Dev-C++ User Mailing List Subject: Re: [Dev-C++] gotoxy > > > Here's my list of arguments: > > > 1) You're only sending an email here. Markups are completely redundant. > > > All this HTML only waste space and bandwidth. > > >=20 > > > 2) HTML mail with hardcoded fontnames look horrible in my Linux > > > emailclient. > > >=20 > > > 3) HTML mail can contain script viruses. > > >=20 > > > 4) HTML mail mess up the archives. When you try to see a message in the > > > archive, you see all the HTML code instead of the email! Well, that all depends! What follows is better than what is above.=20 Here's my list of arguments:=20 =95 You're only sending an email here. Markups are completely redundant. All this HTML only waste space and bandwidth. =95 HTML mail with hardcoded fontnames look horrible in my Linux emailclient.=20 =95 HTML mail can contain script viruses.=20 =95 HTML mail mess up the archives. When you try to see a message in the archive, you see all the HTML code instead of the email! Let's look at your arguments one-by-one: 1. Yes, I am sending an email, the purpose of which is to transmit information. Understanding is enhanced with good formatting which is allowed with automated html email programs such as Outlook or Outlook Express. The multiple ">" which appear in non html forwarded emails can not only inhibit comprehension, but also the inability of such an email does not have any word wrap which combined with the ">" can make the whole message damn near unintelligible.=20 2. This is the real problem, your environment or at least your email program. 3. It is certainly true that I or anyone else can build an html file which will do nasty things, but the programs that generate html enabled emails (Outlook, Outlook Express) will not activate a virus without the active involvement of the person who receives the email.=20 4. Again it is your environment that is the problem.=20 Regards, =A0 Bob =A0 |
|
From: Brian P. <br...@su...> - 2002-05-16 14:22:27
|
In the end the whole issue boils down to this: It is (and has always been) considered in poor taste to use HTML formating when posting to discussion forums using email. There rarely are ever any written rules to this effect; it has just always been understood. Call it common net-icate. The reasons, the main reasons, people don't want HTML in the emails are two (one stated already): bandwidth and, believe it or not, there are still people using email clients that don't translate HTML coding. So, the word is, be nice and use text-only mode when posting. That's all. No law, no punishment (usually), just be considerate. I really like Dev-C++! (Sorry, I felt that I must say something about the program since that is what this list is for :-) b-- On Thu, 2002-05-16 at 06:43, Santiago Palmier Campos wrote: > Well... I don't want to start a flame-war right now but... > > We can 'take a look to your arguments' also: > > 1 - Information can be send without HTML formatting, and yes, it will be > fully understandable! Just think about C/C++ code, it's written in plain > text and you do not need 'extra formatting' to understand it ;o) > > 2 - While talking about text/document formatting we can say it is like text > editting for coding: you can use graphical IDEs (like Dev-C++ / KDevelop) or > you can use console programs (like aedit / vi). Should I stop using 'vi' > because there is 'emacs'? > > 3 - You're NOT sending e-mails to your friends, you're posting/requesting > information on a mailing list.. I think it is a little bit different ;o) > > 4 - Indentation, word-wrapping, '>' chars... If you do not care about how > your text/document looks like, your mail program / editor will not do that > job for you =8-O > > 5 - 'Plain text vs HTML mail war' is quite similar to 'text editors vs text > processors': Will you use M$ Word, WordPerfect or so to write a simple text? > So 'Plain TEXT vs HTML mail war' is not to be solved by 'change your email > client: it's your problem!' ;o) > We are talking about what is needed: HTML is not needed here, I know it is > fine and funny (web browsing is good and the web is really full of info), > but it is not necessary in a mailing list... Even more, it can become > annoying in certain cases!!! > > BTW: Talking about virusses and so on... Do you really think that 'Melissa > and its friends' will ask the user for confirmation on their actions? > > Just my 2 cents! > Santy > > -----Original Message----- > From: Bob Wilson [mailto:bo...@ph...] > Sent: Thursday, May 16, 2002 5:22 AM > To: Dev-C++ User Mailing List > Subject: Re: [Dev-C++] gotoxy > > > > > > Here's my list of arguments: > > > > 1) You're only sending an email here. Markups are completely > redundant. > > > > All this HTML only waste space and bandwidth. > > > > > > > > 2) HTML mail with hardcoded fontnames look horrible in my Linux > > > > emailclient. > > > > > > > > 3) HTML mail can contain script viruses. > > > > > > > > 4) HTML mail mess up the archives. When you try to see a message in > the > > > > archive, you see all the HTML code instead of the email! > > Well, that all depends! What follows is better than what is above. > Here's my list of arguments: > You're only sending an email here. Markups are completely redundant. All > this HTML only waste space and bandwidth. > HTML mail with hardcoded fontnames look horrible in my Linux emailclient. > HTML mail can contain script viruses. > HTML mail mess up the archives. When you try to see a message in the > archive, you see all the HTML code instead of the email! > > Let's look at your arguments one-by-one: > Yes, I am sending an email, the purpose of which is to transmit information. > Understanding is enhanced with good formatting which is allowed with > automated html email programs such as Outlook or Outlook Express. The > multiple ">" which appear in non html forwarded emails can not only inhibit > comprehension, but also the inability of such an email does not have any > word wrap which combined with the ">" can make the whole message damn near > unintelligible. > This is the real problem, your environment or at least your email program. > It is certainly true that I or anyone else can build an html file which will > do nasty things, but the programs that generate html enabled emails > (Outlook, Outlook Express) will not activate a virus without the active > involvement of the person who receives the email. > Again it is your environment that is the problem. > Regards, > > Bob > > -------------------------------------------------------------------------------------- > This message and any files transmitted with it are confidential and intended solely > for the use of the individual or entity to whom they are addressed. No confidentiality > or privilege is waived or lost by any wrong transmission. > If you have received this message in error, please immediately destroy it and kindly > notify the sender by reply email. > You must not, directly or indirectly, use, disclose, distribute, print, or copy any > part of this message if you are not the intended recipient. Opinions, conclusions and > other information in this message that do not relate to the official business of > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it. > -------------------------------------------------------------------------------------- > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Santiago P. C. <San...@yd...> - 2002-05-16 13:43:43
|
Well... I don't want to start a flame-war right now but... We can 'take a look to your arguments' also: 1 - Information can be send without HTML formatting, and yes, it will be fully understandable! Just think about C/C++ code, it's written in plain text and you do not need 'extra formatting' to understand it ;o) 2 - While talking about text/document formatting we can say it is like text editting for coding: you can use graphical IDEs (like Dev-C++ / KDevelop) or you can use console programs (like aedit / vi). Should I stop using 'vi' because there is 'emacs'? 3 - You're NOT sending e-mails to your friends, you're posting/requesting information on a mailing list.. I think it is a little bit different ;o) 4 - Indentation, word-wrapping, '>' chars... If you do not care about how your text/document looks like, your mail program / editor will not do that job for you =8-O 5 - 'Plain text vs HTML mail war' is quite similar to 'text editors vs text processors': Will you use M$ Word, WordPerfect or so to write a simple text? So 'Plain TEXT vs HTML mail war' is not to be solved by 'change your email client: it's your problem!' ;o) We are talking about what is needed: HTML is not needed here, I know it is fine and funny (web browsing is good and the web is really full of info), but it is not necessary in a mailing list... Even more, it can become annoying in certain cases!!! BTW: Talking about virusses and so on... Do you really think that 'Melissa and its friends' will ask the user for confirmation on their actions? Just my 2 cents! Santy -----Original Message----- From: Bob Wilson [mailto:bo...@ph...] Sent: Thursday, May 16, 2002 5:22 AM To: Dev-C++ User Mailing List Subject: Re: [Dev-C++] gotoxy > > > Here's my list of arguments: > > > 1) You're only sending an email here. Markups are completely redundant. > > > All this HTML only waste space and bandwidth. > > > > > > 2) HTML mail with hardcoded fontnames look horrible in my Linux > > > emailclient. > > > > > > 3) HTML mail can contain script viruses. > > > > > > 4) HTML mail mess up the archives. When you try to see a message in the > > > archive, you see all the HTML code instead of the email! Well, that all depends! What follows is better than what is above. Here's my list of arguments: You're only sending an email here. Markups are completely redundant. All this HTML only waste space and bandwidth. HTML mail with hardcoded fontnames look horrible in my Linux emailclient. HTML mail can contain script viruses. HTML mail mess up the archives. When you try to see a message in the archive, you see all the HTML code instead of the email! Let's look at your arguments one-by-one: Yes, I am sending an email, the purpose of which is to transmit information. Understanding is enhanced with good formatting which is allowed with automated html email programs such as Outlook or Outlook Express. The multiple ">" which appear in non html forwarded emails can not only inhibit comprehension, but also the inability of such an email does not have any word wrap which combined with the ">" can make the whole message damn near unintelligible. This is the real problem, your environment or at least your email program. It is certainly true that I or anyone else can build an html file which will do nasty things, but the programs that generate html enabled emails (Outlook, Outlook Express) will not activate a virus without the active involvement of the person who receives the email. Again it is your environment that is the problem. Regards, Bob -------------------------------------------------------------------------------------- This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. No confidentiality or privilege is waived or lost by any wrong transmission. If you have received this message in error, please immediately destroy it and kindly notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Opinions, conclusions and other information in this message that do not relate to the official business of Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it. -------------------------------------------------------------------------------------- |
|
From: Hongli L. <h....@ch...> - 2002-05-16 12:46:54
|
Frank Wagner wrote: >Hello, > >I tried to build tha OpenGL example that comes with Dev-C++ and I got >the following errormessage: > >ld C:\Programme\Dev-C++\Examples\OpenGL\ld >cannot open crt2.o: No such file or directory. > >It seems to be a Path problem, but the library path for the compilor is >set to /../dev-c++/lib >I set this path again in the project options but this doesn't change >anything. >Where might my problem be located? > >Thanks for any hints. > >Greetings > >Frank > > > Are you sure that you downloaded the *entire* Dev-C++ 5 package and that you're using the default path settings? |
|
From: Hongli L. <h....@ch...> - 2002-05-16 12:43:47
|
Bob Wilson wrote: > 1. Yes, I am sending an email, the purpose of which is to transmit > information. Understanding is enhanced with good formatting > which is allowed with automated html email programs such as > Outlook or Outlook Express. > Your message only contains a few lines of bold text. How does such a formatting "enhance" the understanding. > This is the real problem, your environment or at least your email program. Emails were designed to display well *everywhere*. Which email client I'm using should not matter. This is exactly the problem: you'll have to use Windows just to be able to read emails well. > It is certainly true that I or anyone else can build an html file > which will do nasty things, but the programs that generate html > enabled emails (Outlook, Outlook Express) will not activate a virus > without the active involvement of the person who receives the email. If MS just ditch HTML and script support, invisible script viruses would not exist at all. > > Again it is your environment that is the problem. > ** This is not "my" environment, I'm talking about the mailing list's email archive here! You're messing up the archive, so no matter which browser/OS/computer/whatever you're using, if you look at the HTML mails in the archive, you will only see HTML tags. |
|
From: Hongli L. <h....@ch...> - 2002-05-16 12:35:40
|
Why doesn't anybody read the FAQ or use the Console App template...
Add system("pause"); to the end of your main() function.
Nancy Alvarez wrote:
>
> Can somebody help me?
>
> I dont`t get display the messages whith any program. For example this?
>
> ========================================================
>
> /* Chapter 5 - Program 6 - BACKWARD.C */
> #include <stdio.h> /* Prototypes for standard Input/Output */
> #include <string.h> /* Prototypes for string operations */
>
> void forward_and_backwards(char line_of_char[], int index);
>
> int main()
> {
> char line_of_char[80];
> int index = 0;
>
> strcpy(line_of_char, "This is a string.\n");
>
> forward_and_backwards(line_of_char, index);
>
> return 0;
> }
>
>
> void forward_and_backwards(char line_of_char[], int index)
> {
> if (line_of_char[index])
> {
> printf("%c", line_of_char[index]);
> index++;
> forward_and_backwards(line_of_char, index);
> }
> printf("%c", line_of_char[index]);
> }
>
>
>
>
> /* Result of execution
>
> This is a string.
>
> .gnirts a si sih
>
> */
|
|
From: <tar...@wi...> - 2002-05-16 10:00:14
|
Hi, 1. user code calls function which returns pointer to allocated memory 2. user code uses memory by pointer 3. user code must deallocate memory (by calling function) 4. user code is not allowed to access memory by pointer anymore. make shure that you use same syntax for free comand. Adib. Daniel Glenfield wrote: > I think that memory can be deallocated using free at any time so long as > you have char* still around. So I'm assuming in your function (method) > you have > char* pX; > pX malloc(whatever) ((I do C++)) > return pX; > > you can use pX in the main() function to deallocate with free. > > >> From: "J Miller" <jm...@we...> >> Reply-To: <jm...@we...> >> To: "Dev-C++ Users \(E-mail\)" <dev...@li...> >> Subject: [Dev-C++] Generic C++ question. >> Date: Thu, 16 May 2002 10:32:35 +0930 >> >> Hi all, >> >> If a method returns a char pointer (char*). >> >> If the above method does a malloc() to allocate memory >> for some text (or something) and then fills that memory. >> >> The char* is returned to the user code. >> >> Who (or which code) is responsible for doing a free() on the char*? >> >> John M' >> >> _______________________________________________________________ >> >> Have big pipes? SourceForge.net is looking for download mirrors. We >> supply >> the hardware. You get the recognition. Email Us: >> ban...@so... >> _______________________________________________ >> Dev-cpp-users mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- WIGE DATA GmbH Wiesenring 11, D-04159 Leipzig, Germany Adib Taraben Electronic Engineer PHONE +49 (0)341 - 46 21 100 FAX +49 (0)341 - 46 21 400 E-MAIL tar...@wi... INTERNET www.wige-data.de A company of WIGE MEDIA AG |
|
From: Daniel G. <sp...@ho...> - 2002-05-16 08:19:40
|
I think that memory can be deallocated using free at any time so long as you have char* still around. So I'm assuming in your function (method) you have char* pX; pX malloc(whatever) ((I do C++)) return pX; you can use pX in the main() function to deallocate with free. >From: "J Miller" <jm...@we...> >Reply-To: <jm...@we...> >To: "Dev-C++ Users \(E-mail\)" <dev...@li...> >Subject: [Dev-C++] Generic C++ question. >Date: Thu, 16 May 2002 10:32:35 +0930 > >Hi all, > >If a method returns a char pointer (char*). > >If the above method does a malloc() to allocate memory >for some text (or something) and then fills that memory. > >The char* is returned to the user code. > >Who (or which code) is responsible for doing a free() on the char*? > >John M' > >_______________________________________________________________ > >Have big pipes? SourceForge.net is looking for download mirrors. We supply >the hardware. You get the recognition. Email Us: ban...@so... >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |
|
From: Frank W. <F.W...@wi...> - 2002-05-16 08:12:22
|
Hello, I tried to build tha OpenGL example that comes with Dev-C++ and I got the following errormessage: ld C:\Programme\Dev-C++\Examples\OpenGL\ld cannot open crt2.o: No such file or directory. It seems to be a Path problem, but the library path for the compilor is set to /../dev-c++/lib I set this path again in the project options but this doesn't change anything. Where might my problem be located? Thanks for any hints. Greetings Frank -------------------------------------------------------------------- Dipl.-Ing. (FH) Frank Wagner Systementwicklung WIKA Alexander Wiegand GmbH & Co. KG 63911 Klingenberg/Germany Tel. +49 9372 132-8995 Fax. +49 9372 132-217 E-mail: f.w...@wi... -------------------------------------------------------------------- |
|
From: Arif O. <e1...@me...> - 2002-05-16 06:23:16
|
Hi, I wat to learn that if there is any way to use visual components with Dev-C++. Thank You. |
|
From: Yeoh H. <ye...@ye...> - 2002-05-16 05:58:46
|
Hi, I just checked the URL and it works. My e-mail program truncated the URL. Please try again, the last part of the URL should be rc_6cs3.asp instead of "rc_6". Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ Author of "How to Create an eBook Using Visual C++" Free Downloads at http://www.yeohhs.com ICT eBooks by Yeoh HS ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message ----- From: Bob Wilson <bo...@ph...> To: Dev-C++ User Mailing List <dev...@li...> Sent: Thursday, May 16, 2002 11:35 AM Subject: Re: [Dev-C++] Using the Resource Editor > > ----- Original Message ----- > From: "Yeoh HS" <ye...@ye...> > To: <dev...@li...> > Sent: Monday, May 13, 2002 7:51 PM > Subject: Re: [Dev-C++] Using the Resource Editor > > > > Hi, > > > > Here's a URL that might be useful to you. > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/rc_6c > > s3.asp > > > That link returns: > > Page Cannot Be Found > > > We apologize for the inconvenience, but the page you are seeking cannot be > found in this location. > > |
|
From: Ioannis V. <no...@ho...> - 2002-05-16 04:22:47
|
I have found this interesting article http://www.linux-mag.com/2002-01/compile_01.html regarding GCC supported language extensions in constructs etc. There are many useful things there for our MINGW compiler (which is a GCC port for Windows). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |
|
From: Bob W. <bo...@ph...> - 2002-05-16 03:33:19
|
----- Original Message ----- From: "Yeoh HS" <ye...@ye...> To: <dev...@li...> Sent: Monday, May 13, 2002 7:51 PM Subject: Re: [Dev-C++] Using the Resource Editor > Hi, > > Here's a URL that might be useful to you. > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/rc_6c > s3.asp That link returns: Page Cannot Be Found We apologize for the inconvenience, but the page you are seeking cannot be found in this location. |
|
From: Bob W. <bo...@ph...> - 2002-05-16 03:20:04
|
> > > Here's my list of arguments:
> > > 1) You're only sending an email here. Markups are completely =
redundant.
> > > All this HTML only waste space and bandwidth.
> > >=20
> > > 2) HTML mail with hardcoded fontnames look horrible in my Linux
> > > emailclient.
> > >=20
> > > 3) HTML mail can contain script viruses.
> > >=20
> > > 4) HTML mail mess up the archives. When you try to see a message =
in the
> > > archive, you see all the HTML code instead of the email!
Well, that all depends! What follows is better than what is above.=20
Here's my list of arguments:=20
a.. You're only sending an email here. Markups are completely =
redundant. All this HTML only waste space and bandwidth.
b.. HTML mail with hardcoded fontnames look horrible in my Linux =
emailclient.=20
c.. HTML mail can contain script viruses.=20
d.. HTML mail mess up the archives. When you try to see a message in =
the archive, you see all the HTML code instead of the email!
Let's look at your arguments one-by-one:
1.. Yes, I am sending an email, the purpose of which is to transmit =
information. Understanding is enhanced with good formatting which is =
allowed with automated html email programs such as Outlook or Outlook =
Express. The multiple ">" which appear in non html forwarded emails can =
not only inhibit comprehension, but also the inability of such an email =
does not have any word wrap which combined with the ">" can make the =
whole message damn near unintelligible.=20
2.. This is the real problem, your environment or at least your email =
program.
3.. It is certainly true that I or anyone else can build an html file =
which will do nasty things, but the programs that generate html enabled =
emails (Outlook, Outlook Express) will not activate a virus without the =
active involvement of the person who receives the email.=20
4.. Again it is your environment that is the problem.=20
Regards,
Bob
|
|
From: Nancy A. <nai...@ho...> - 2002-05-16 02:47:04
|
Can somebody help me?
I dont`t get display the messages whith any program. For example this?
========================================================
/* Chapter 5 - Program 6 - BACKWARD.C */
#include <stdio.h> /* Prototypes for standard Input/Output */
#include <string.h> /* Prototypes for string operations */
void forward_and_backwards(char line_of_char[], int index);
int main()
{
char line_of_char[80];
int index = 0;
strcpy(line_of_char, "This is a string.\n");
forward_and_backwards(line_of_char, index);
return 0;
}
void forward_and_backwards(char line_of_char[], int index)
{
if (line_of_char[index])
{
printf("%c", line_of_char[index]);
index++;
forward_and_backwards(line_of_char, index);
}
printf("%c", line_of_char[index]);
}
/* Result of execution
This is a string.
.gnirts a si sih
*/
===================================
_________________________________________________________________
Únase con MSN Hotmail al servicio de correo electrónico más grande del
mundo. http://www.hotmail.com
|
|
From: Ioannis V. <no...@ho...> - 2002-05-16 02:31:15
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of J Miller
> Sent: Thursday, May 16, 2002 4:03 AM
> To: Dev-C++ Users (E-mail)
> Subject: [Dev-C++] Generic C++ question.
>
>
> Hi all,
>
> If a method returns a char pointer (char*).
>
> If the above method does a malloc() to allocate memory
> for some text (or something) and then fills that memory.
>
> The char* is returned to the user code.
>
> Who (or which code) is responsible for doing a free() on the char*?
>
> John M'
In C++ DO NOT USE malloc()/free(). malloc()/free() do not call the
objects' constructors and destructors. In C++ use only new, delete,
new[] and delete[].
The caller of the function is responsible to clear the memory returned
by the called function, if it allocated memory on the free store.
E.g.:
char *something()
{
char *p=new char[100];
for(int i=0; i<100; i++)
p[i]='a';
return p;
}
int main()
{
char *ptr=something();
// play with ptr
delete[] ptr;
}
In C++ avoid programming in such low level. Use the standard library
containers instead which supress any need for explicit resource
allocation and deallocation. For example:
#include <vector>
const std::vector<char> something()
{
using std::vector;
vector<char>p(100);
for(vector<char>::size_type i=0; i<p.size(); i++)
p[i]='a';
return p;
}
int main()
{
using namespace std;
vector<char>array=something();
// play with array
// array is destroyed automatically, all its contents
// are cleared, element desttructors are called. No possibility
// for memory leak (and in general for ANY resource leak!)
}
If you find that the vector<char> return of something() is expensive,
you can pass the "array" vector to something() by reference and fill it
there.
In summary, try to use C++ as a high level language and not as low level
one. There is much to gain from that. Unfortunately it usually is
teached and used in low level style (usually by C programmers since C++
is very newly "official" language, it got standardised just in 1998).
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: J M. <jm...@we...> - 2002-05-16 00:57:21
|
Hi all, If a method returns a char pointer (char*). If the above method does a malloc() to allocate memory for some text (or something) and then fills that memory. The char* is returned to the user code. Who (or which code) is responsible for doing a free() on the char*? John M' |
|
From: Andres R. <lo...@ho...> - 2002-05-15 21:47:16
|
Hello! From thee other letter/thread Hongli Lai wrote: Hm... you're right. There's a bug in Dev-C++ parsing code. I'm going to fix it now. The next version will include the bugfix. My question is: can't you make 'snapshots' to get mid-fixed versions? For example 4.9.3.1 ;) I checked Bloodshed website and 4.9.2.0 wos released exactly 1 month ago. So, wating a new release (alpha, beta, gamma or waht ever) to get some bugs fixed is kinda long IMHO. Andres. |
|
From: <v-...@ou...> - 2002-05-15 16:16:01
|
Hi Ioannis, > clock_t clock(void); It returns the processor time that the program > has spent so far from the beginning of its execution. Ok, that would do, thank you very much.... Chau V-Li |