dev-cpp-users Mailing List for Dev-C++ (Page 5)
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(2) |
2
(2) |
3
(9) |
4
(11) |
5
(15) |
6
(5) |
7
|
8
(1) |
9
(2) |
10
(8) |
11
(4) |
12
(4) |
13
(5) |
14
(5) |
15
(10) |
16
(14) |
17
(7) |
18
(2) |
19
|
20
(7) |
21
(12) |
22
(6) |
23
|
24
(4) |
25
(6) |
26
(16) |
27
(9) |
28
(7) |
29
(18) |
30
(9) |
|
|
|
|
|
|
From: Jesper <da...@en...> - 2001-09-17 10:32:45
|
This has nothing to do with C++, but i was wondering if anybody knows a = good mail-list for Java? |
From: Joseph, B. & E. V. <bl...@ho...> - 2001-09-17 02:01:08
|
Thank you both! I tried and tried to get the malloc/free to work, but = apperently the compiler has some "C++ safety": It wouldn't allow me to = use those two. When I used the strictly C++ (new[] and delete[]) it = worked without any problems! Guess I should bone up on my C++ :) Thanks again, Blumojo PS- (To the one requesting info on unraring) WinRar is my favorite = zipping/unzipping utility - try it. |
From: Ray W. <ra...@in...> - 2001-09-17 00:41:45
|
I been using it on windows me, 98 and dos, seems to work fine on all of them, use #include <cstdlib> system ("PAUSE"); to prevent window from closing At 12:55 PM 9/16/01 EDT, you wrote: >Can Dev C++ be used on Windows Me os? >I undestand that MS hid the Dos os on this version. >When I execute a program it opens and closes. >Help.. > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > Ray Witter |
From: Jason <tux...@au...> - 2001-09-16 22:34:17
|
I am sorry if this is a stupid question but: How did you get the first = one to work? Which one did you click on on the bottom of the various = versions of the code? What kind of project type did you use? empty? = Empty Window? Etc... Thx in advance for your help Jason=20 ----- Original Message -----=20 From: Joseph, Brandi, & Elise VanPelt=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 5:38 PM Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you can = call me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp = and am thinking of sending a donation if I can get the following to = work. I am working on NeHe's OpenGL tutorials = (http://nehe.gamedev.net/) which are really good - even for a novice = like me, but the code he gave was for Visual CPP. I have worked through = a couple of the problems, but have become "stumped" on lesson 7 where = the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store = texture data. First of all, has anyone worked through these tutorials and ported = them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to = help me along. Second, is there another (perhaps better) way to free = this memory? Thank you all so much for the help! -Bumojo |
From: Jared <sto...@ya...> - 2001-09-16 21:38:48
|
Thats wrong kind of at least in c it is=20 system ("pause"); you also need to include stdlib.h but if this is c++ it could be = different. Hope this helps ----- Original Message -----=20 From: St0fF 64=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 1:54 PM Subject: Re: [Dev-C++] Windows Me Compatible? use system(pause); before exiting the program ... or just read in a key (#27 looks like a = good key...) cheers, St0fF. ----- Original Message -----=20 From: Jay Silverman=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 7:23 PM Subject: Re: [Dev-C++] Windows Me Compatible? It'll work fine...did you include a getchar(); ( it's in stdlib.h i = think, maybe stdio.h)? Jason ----- Original Message -----=20 From: Caj...@ao...=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 12:55 PM Subject: [Dev-C++] Windows Me Compatible? Can Dev C++ be used on Windows Me os? I undestand that MS hid the Dos os on this version.=20 When I execute a program it opens and closes. Help.. _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: St0fF 6. <st...@gm...> - 2001-09-16 17:54:00
|
use system(pause); before exiting the program ... or just read in a key (#27 looks like a = good key...) cheers, St0fF. ----- Original Message -----=20 From: Jay Silverman=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 7:23 PM Subject: Re: [Dev-C++] Windows Me Compatible? It'll work fine...did you include a getchar(); ( it's in stdlib.h i = think, maybe stdio.h)? Jason ----- Original Message -----=20 From: Caj...@ao...=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 12:55 PM Subject: [Dev-C++] Windows Me Compatible? Can Dev C++ be used on Windows Me os? I undestand that MS hid the Dos os on this version.=20 When I execute a program it opens and closes. Help.. _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Jay S. <mys...@op...> - 2001-09-16 17:23:44
|
It'll work fine...did you include a getchar(); ( it's in stdlib.h i think, maybe stdio.h)? Jason ----- Original Message ----- From: Caj...@ao... To: dev...@li... Sent: Sunday, September 16, 2001 12:55 PM Subject: [Dev-C++] Windows Me Compatible? Can Dev C++ be used on Windows Me os? I undestand that MS hid the Dos os on this version. When I execute a program it opens and closes. Help.. _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: <Caj...@ao...> - 2001-09-16 16:55:30
|
Can Dev C++ be used on Windows Me os? I undestand that MS hid the Dos os on this version. When I execute a program it opens and closes. Help.. |
From: Jason H. <jas...@bt...> - 2001-09-16 12:04:50
|
MessageThanks, I wrote about it of the top of my head, but not using = dynamic allocation of arrays all that often I forgot about the array = version. Only in recent weeks have I started coding again, so I'll = admitt I am a bit rusty, but it's just like riding a bike :) Any more mistakes anyone? Jason. ----- Original Message -----=20 From: Ioannis Vranos=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 4:03 AM Subject: RE: [Dev-C++] Hello I write this because you said to point out the mistakes. :) It is not new() and delete(), they are operators new and delete ( and = new[] and delete[]). Then in your code you do p=3Dnew int[10] and delete p; but it should = be delete[] p; Also new, new[], delete and delete[] are better because you can = define what to do in memory allocation failure of new or new[] using = set_new_handler() and overiding them to define where to place their = objects (placement operators) in already allocated memory (even in the = stack), which is a bit advanced topic. Regards, Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... = [mailto:dev...@li...] On Behalf Of Jason = Hardman Sent: Sunday, September 16, 2001 1:42 AM To: dev...@li... Subject: Re: [Dev-C++] Hello I'm afraid I can't offer you much help with OpenGL and those = tutorials, but I do know something about "free()". When programming in C you use free() allong with malloc() to = dynamically create and *free* up memory. If you want to learn more about = dynamic allocation you should read a good C/C++ book. Any C book should = explain more about malloc() and free(). From what you have said it sounds like you need to include = <stdlib.h>, which is where those functions are declared. If it is = already defined then the problem is elsewhere. As for alternatives... if you are using C++ (as aposed to pure C) = then you can use the dynamic allocation functions that are part of the = C++ language, which are new() and delete(). Again any good C++ book will = explain these. Using malloc() and free() is still valid in C++ (and you = can use the header <cstdlib> instead of <stdlib.h>), but new() and = delete() are better because of the way they are designed to handle = pointers and datatypes as part of the language. i.e. int *p; p =3D new int[10]; // create an int array for(int i=3D0; i<10; ++i) p[i] =3D i*i; // fill array with square of 0 through to 9. for(int i=3D0; i<10; ++i) cout << p[i] << endl; // display contents of dynamic array. // don't forget need to include <iostream> to use cout = etc... delete p; // always free up memory or you will get a memory leak!!! ... This is just a quickie I created off the top of my head, so it = probably won't work ;-) I'm too lazy to actualy test it. p =3D new int[10]; is the same as p =3D (int*) malloc(10*sizeof(int)); in C. delete p; is the same as free(p); in C. Just remember you cannot use one malloc() with delete() and new() = with free().... they don't mix. Hope this helps, and anyone else feel free to point out any mistakes = I may have made. Jason. ----- Original Message -----=20 From: Joseph, Brandi, & Elise VanPelt=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 11:38 PM Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you = can call me Blumojo (or "blu" or "mojo" for short). I really like = Dev-cpp and am thinking of sending a donation if I can get the following = to work. I am working on NeHe's OpenGL tutorials = (http://nehe.gamedev.net/) which are really good - even for a novice = like me, but the code he gave was for Visual CPP. I have worked through = a couple of the problems, but have become "stumped" on lesson 7 where = the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to = store texture data. First of all, has anyone worked through these tutorials and = ported them to Dev-CPP/MinGW? If so, I would greatly appreciate the = code to help me along. Second, is there another (perhaps better) way to = free this memory? Thank you all so much for the help! -Bumojo |
From: St0fF 6. <st...@gm...> - 2001-09-16 10:49:38
|
Why don't you just try using the unsubscribe-link in any of the lists = mails? Also just use a VirusKiller, or maybe LinuX or BSD are better for you = (no chance for Viruses ...). So please don't ever again send a mail like this! Maybe you should try = out uns...@li.... Leave the message = body free and add your eMail-addy in the subject line. there shouldn't = be problems with that. Cheers, St0fF. ----- Original Message -----=20 From: lavi=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 11:43 AM Subject: [Dev-C++] Help HELP I want to UNSUBSCRIB. I have a VIRUPlease let me out |
From: lavi <jl...@ne...> - 2001-09-16 08:48:20
|
I want to UNSUBSCRIB. I have a VIRUPlease let me out |
From: Aaron W. <Aar...@My...> - 2001-09-16 02:39:48
|
I use MASM32, which In my oppinion should have been included with VS 98 but there ya go. Just search Google for MASM32 DOWNLOAD and it will return a couple places. Wilksey ----- Original Message ----- From: "Jared" <sto...@ya...> To: <dev...@li...> Sent: Sunday, September 16, 2001 03:22 Subject: [Dev-C++] c++ and assembly > Where can you get a good pure assembeler? I have the full enterprise > addition of visual studio on my computer but didn't see anything about > assembly in it. Any help wood be appreciated. Thanks for any help. > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Jared <sto...@ya...> - 2001-09-16 02:23:31
|
Where can you get a good pure assembeler? I have the full enterprise addition of visual studio on my computer but didn't see anything about assembly in it. Any help wood be appreciated. Thanks for any help. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
From: Ioannis V. <no...@ya...> - 2001-09-16 02:02:21
|
I write this because you said to point out the mistakes. :) =20 It is not new() and delete(), they are operators new and delete ( and new[] and delete[]). =20 Then in your code you do p=3Dnew int[10] and delete p; but it should be delete[] p; =20 Also new, new[], delete and delete[] are better because you can define what to do in memory allocation failure of new or new[] using set_new_handler() and overiding them to define where to place their objects (placement operators) in already allocated memory (even in the stack), which is a bit advanced topic. =20 =20 Regards, Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Jason Hardman Sent: Sunday, September 16, 2001 1:42 AM To: dev...@li... Subject: Re: [Dev-C++] Hello I'm afraid I can't offer you much help with OpenGL and those tutorials, but I do know something about "free()". =20 When programming in C you use free() allong with malloc() to dynamically create and *free* up memory. If you want to learn more about dynamic allocation you should read a good C/C++ book. Any C book should explain more about malloc() and free(). =20 From what you have said it sounds like you need to include <stdlib.h>, which is where those functions are declared. If it is already defined then the problem is elsewhere. =20 As for alternatives... if you are using C++ (as aposed to pure C) then you can use the dynamic allocation functions that are part of the C++ language, which are new() and delete(). Again any good C++ book will explain these. Using malloc() and free() is still valid in C++ (and you can use the header <cstdlib> instead of <stdlib.h>), but new() and delete() are better because of the way they are designed to handle pointers and datatypes as part of the language. =20 i.e. =20 int *p; p =3D new int[10]; // create an int array =20 for(int i=3D0; i<10; ++i) p[i] =3D i*i; // fill array with square of 0 through to 9. =20 for(int i=3D0; i<10; ++i) cout << p[i] << endl; // display contents of dynamic array. // don't forget need to include <iostream> to use cout etc... =20 delete p; // always free up memory or you will get a memory leak!!! ... =20 This is just a quickie I created off the top of my head, so it probably won't work ;-) I'm too lazy to actualy test it. =20 p =3D new int[10]; =20 is the same as =20 p =3D (int*) malloc(10*sizeof(int)); =20 in C. =20 delete p; =20 is the same as =20 free(p); =20 in C. =20 Just remember you cannot use one malloc() with delete() and new() with free().... they don't mix. =20 Hope this helps, and anyone else feel free to point out any mistakes I may have made. =20 Jason. ----- Original Message -----=20 From: Joseph, <mailto:bl...@ho...> Brandi, & Elise VanPelt=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 11:38 PM Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you can call me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp and am thinking of sending a donation if I can get the following to work. I am working on NeHe's OpenGL tutorials (http://nehe.gamedev.net/) which are really good - even for a novice like me, but the code he gave was for Visual CPP. I have worked through a couple of the problems, but have become "stumped" on lesson 7 where the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store texture data. =20 First of all, has anyone worked through these tutorials and ported them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to help me along. Second, is there another (perhaps better) way to free this memory? =20 Thank you all so much for the help! =20 -Bumojo |
From: Ioannis V. <no...@ya...> - 2001-09-16 01:53:19
|
void free(void *p) is defined in <stdlib.h> nd it ccan be used like this. =20 /* C program (.c) */ =20 #include <stdlib.h> =20 int main() { int *p; p=3Dmalloc(10*sizeof(int)); /* It creates an array of 10 integers on the free store. */ p[0]=3D5; p[3]=3D7; /* ... */ =20 free(p); /* It deallocates the memory allocated for 10 integers */ =20 /* Now p points to nowhere, the array doesn't exist */ return 0; } =20 For C++ file (.cpp) you must use casting in malloc(), that is: =20 p=3D(int *)malloc(10*sizeof(int)); =20 =20 but C++ provides more flexible mechanisms, new, new[], delete, and delete[] so it becomes: =20 p=3Dnew int[10]; p[0]=3D5; p[3]=3D7; // ... delete[] p; =20 =20 =20 Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys =20 =20 =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Joseph, Brandi, & Elise VanPelt Sent: Sunday, September 16, 2001 12:39 AM To: dev...@li... Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you can call me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp and am thinking of sending a donation if I can get the following to work. I am working on NeHe's OpenGL tutorials (http://nehe.gamedev.net/) which are really good - even for a novice like me, but the code he gave was for Visual CPP. I have worked through a couple of the problems, but have become "stumped" on lesson 7 where the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store texture data. =20 First of all, has anyone worked through these tutorials and ported them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to help me along. Second, is there another (perhaps better) way to free this memory? =20 Thank you all so much for the help! =20 -Bumojo |
From: Ioannis V. <no...@ya...> - 2001-09-16 01:43:26
|
It is a compression scheme with better compression and recovery from damaged archives than zip. The program from the company that invented it is WinRAR which can be found at: http://www.rarsoft.com/ =20 WinRAR also supports the zip format, that is it can open, create and extract zip files too. =20 =20 Regards, Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ameer Khan Sent: Saturday, September 15, 2001 6:14 PM To: dev...@li... Subject: [Dev-C++] Programme for 'unrar" friends, I have a Programme installation file with ".rar" extention and the instruction given is to 'unrar' the same and instal. Which proramme is used to 'unrar ' the same and where it is available. With regards sm...@vs... =20 |
From: St0fF 6. <st...@gm...> - 2001-09-16 00:17:56
|
Hi BluMo (What about this Variation?)! I'm really sorry in advance because of what I can tell you 'bout devCPP = and OpenGL examples. I'm a beginner to OpenGL and C++, too. My = advantage: I've got a friend who's been doing this kind a codework for = years. He uses GLUT and C++ on his MAC. So what I was doing is making = his code work under windows. I tried devCPP long time and it nearly = made me capitulate. Then I tried "JensFileEditor & GCC" and guess what: = I didn't have to change more than replacing slashes in paths by = backslashes and {glutGameModeString(...); glutEnterGameMode();} by {glutFullScreen();} = and it compiled and ran without any problems. So I say I stick to the software that meets my needs. DevCPP is great = in style and comfort, but for me it's rather useless. Sorry. St0fF. ----- Original Message -----=20 From: Joseph, Brandi, & Elise VanPelt=20 To: dev...@li...=20 Sent: Sunday, September 16, 2001 12:38 AM Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you can = call me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp = and am thinking of sending a donation if I can get the following to = work. I am working on NeHe's OpenGL tutorials = (http://nehe.gamedev.net/) which are really good - even for a novice = like me, but the code he gave was for Visual CPP. I have worked through = a couple of the problems, but have become "stumped" on lesson 7 where = the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store = texture data. First of all, has anyone worked through these tutorials and ported = them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to = help me along. Second, is there another (perhaps better) way to free = this memory? Thank you all so much for the help! -Bumojo |
From: Jason H. <jas...@bt...> - 2001-09-15 23:57:57
|
I was looking up movw in some Assembler books I have, but couldn't find = it? What processor was that instruction introduced for? My assembler = knowledge is a bit rusty I'm afraid, and those books are probably a bit = old now. An exception like that would probably be an indication of either trying = to access memory that you don't have the rights too, or using an = instruction which you either don't have right's to or on the wrong = processor, e.g. a pentium instruction on a 386 machine. I just mention this as a guide that might help, but mainly out of = curiousity about using asm and such. Jason. ----- Original Message -----=20 From: Santiago Londo=F1o=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 8:11 PM Subject: [Dev-C++] Need help Hello friends: Can anyone help me with this code? I compiled it using Dev C with Mingw32 but when I execute the program = the screen gets blue and I get the typical windows error: critical = exception at bla,bla,bla,lbla #include <stdio.h> int main() { asm("movw $0x0013, %ax\n\t" "int $0x10"); getch(); asm("movw $0x0003, %ax\n\t" "int $0x10"); return 0; } |
From: Jason H. <jas...@bt...> - 2001-09-15 23:42:07
|
I'm afraid I can't offer you much help with OpenGL and those tutorials, = but I do know something about "free()". When programming in C you use free() allong with malloc() to dynamically = create and *free* up memory. If you want to learn more about dynamic = allocation you should read a good C/C++ book. Any C book should explain = more about malloc() and free(). From what you have said it sounds like you need to include <stdlib.h>, = which is where those functions are declared. If it is already defined = then the problem is elsewhere. As for alternatives... if you are using C++ (as aposed to pure C) then = you can use the dynamic allocation functions that are part of the C++ = language, which are new() and delete(). Again any good C++ book will = explain these. Using malloc() and free() is still valid in C++ (and you = can use the header <cstdlib> instead of <stdlib.h>), but new() and = delete() are better because of the way they are designed to handle = pointers and datatypes as part of the language. i.e. int *p; p =3D new int[10]; // create an int array for(int i=3D0; i<10; ++i) p[i] =3D i*i; // fill array with square of 0 through to 9. for(int i=3D0; i<10; ++i) cout << p[i] << endl; // display contents of dynamic array. // don't forget need to include <iostream> to use cout etc... delete p; // always free up memory or you will get a memory leak!!! ... This is just a quickie I created off the top of my head, so it probably = won't work ;-) I'm too lazy to actualy test it. p =3D new int[10]; is the same as p =3D (int*) malloc(10*sizeof(int)); in C. delete p; is the same as free(p); in C. Just remember you cannot use one malloc() with delete() and new() with = free().... they don't mix. Hope this helps, and anyone else feel free to point out any mistakes I = may have made. Jason. ----- Original Message -----=20 From: Joseph, Brandi, & Elise VanPelt=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 11:38 PM Subject: [Dev-C++] Hello Hello all, This is my first post to this list. My name is Joseph, you can = call me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp = and am thinking of sending a donation if I can get the following to = work. I am working on NeHe's OpenGL tutorials = (http://nehe.gamedev.net/) which are really good - even for a novice = like me, but the code he gave was for Visual CPP. I have worked through = a couple of the problems, but have become "stumped" on lesson 7 where = the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store = texture data. First of all, has anyone worked through these tutorials and ported = them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to = help me along. Second, is there another (perhaps better) way to free = this memory? Thank you all so much for the help! -Bumojo |
From: Joseph, B. & E. V. <bl...@ho...> - 2001-09-15 22:37:52
|
Hello all, This is my first post to this list. My name is Joseph, you can call = me Blumojo (or "blu" or "mojo" for short). I really like Dev-cpp and am = thinking of sending a donation if I can get the following to work. I am = working on NeHe's OpenGL tutorials (http://nehe.gamedev.net/) which are = really good - even for a novice like me, but the code he gave was for = Visual CPP. I have worked through a couple of the problems, but have = become "stumped" on lesson 7 where the compiler has given me: "implicit declaration of function int free()" In his explanation, this function is used to free memory used to store = texture data. First of all, has anyone worked through these tutorials and ported = them to Dev-CPP/MinGW? If so, I would greatly appreciate the code to = help me along. Second, is there another (perhaps better) way to free = this memory? Thank you all so much for the help! -Bumojo |
From: <st...@ep...> - 2001-09-15 19:06:03
|
Hello friends: Can anyone help me with this code? I compiled it using Dev C with Mingw32 but when I execute the program = the screen gets blue and I get the typical windows error: critical = exception at bla,bla,bla,lbla #include <stdio.h> int main() { asm("movw $0x0013, %ax\n\t" "int $0x10"); getch(); asm("movw $0x0003, %ax\n\t" "int $0x10"); return 0; } |
From: Jared <sto...@ya...> - 2001-09-15 16:23:01
|
Go to www.download.com and type in winrar there you will be able to = download it for either windows, macs, linux, and I think some others. = Also if you want I'll send you the setup file for it it's about 750k = it's a nice archive utility that will want to take up zip files to. ----- Original Message -----=20 From: Ameer Khan=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 12:14 PM Subject: [Dev-C++] Programme for 'unrar" friends, I have a Programme installation file with ".rar" extention and the instruction given is to 'unrar' the same and instal. Which proramme is used to 'unrar ' the same and where it is available. With regards sm...@vs... |
From: Terrell D L. <ter...@ya...> - 2001-09-15 16:22:07
|
It's a kind of "zip" file. ZipnAll will take care of it = http://www.zipnall.com/ presently freeware. Terrell ----- Original Message -----=20 From: Ameer Khan=20 To: dev...@li...=20 Sent: Saturday, September 15, 2001 11:14 AM Subject: [Dev-C++] Programme for 'unrar" friends, I have a Programme installation file with ".rar" extention and the instruction given is to 'unrar' the same and instal. Which proramme is used to 'unrar ' the same and where it is available. With regards sm...@vs... |
From: Ameer K. <sm...@vs...> - 2001-09-15 16:12:32
|
friends, I have a Programme installation file with ".rar" extention and the instruction given is to 'unrar' the same and instal. Which proramme is used to 'unrar ' the same and where it is available. With regards sm...@vs... |
From: Scone S. <sc...@ho...> - 2001-09-15 10:03:02
|
Hi, I'm trying to write a program that is it the system tray, and that performs an action when a joystick button is pressed, e.g. it launches a program, or activates the screensaver. But I need to know how to make the program control the joystick for actions, so it can actually know when a button is pressed. How can I do that? Thanx, Sconed _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |