dev-cpp-users Mailing List for Dev-C++ (Page 652)
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: St0fF 6. <st...@gm...> - 2001-11-02 14:08:12
|
What'ya mean it doesn't work? I mean I don't know if you can get it to = work with devcpp, but actually it should. If not, try GL_LINES and = insert a second glVertex2f(x+e,y+e). If you work in 2d-space, then you = probably know your maxX,maxY, so make e=3DmaxY/maxX, so it's less than a = real pixel but I believe oGL should do it. But as we all know, oGL = sometimes doesn't behave as expected. So try around a bit. St0fF. ----- Original Message -----=20 From: JS=20 To: dev...@li...=20 Sent: Friday, November 02, 2001 1:15 PM Subject: speaking in here was : [Dev-C++] Drawing lines Sorry, guys in here ! No please !=20 1 christians remark "assh..." is not nice=20 2. daniel's "ok" to it is even worse ! @daniel,=20 I agree to you in asking for many questions, even if not too DEV CPP = related. I do not agree that is it a nice comment ! @Christiaan You should stay away with these words ! If you want to ciritize, do it = the correct way or leave it, and simply ignore such emails of Mr Hamze. = Better post more of your knowledge and your thoughts. I like those = questions, since some of them also hit my interest. back to topic : I also would like to see some example code for printing graphics = (DEVCPP) I am working with the opengl example, and did not yet find out how to = place points. The way descirbed diod not work. (sqares do work), however. j.s. On 1 Nov 2001, at 23:19, Daniel Glenfield wrote: This is a programming list regarding DEV, which is underused as it is. = I encourage people to put any programming question forward - there have = been enough people unsubscribing as it is. btw nice reply Christiaan - short and to the point ;)=0F =0F >From: Christiaan Scholtz=20 >To: dev...@li...=20 >Subject: [Dev-C++] Drawing lines=20 >Date: Thu, 01 Nov 2001 20:38:24 +0200=20 >=20 >Asshole.=20 >=20 >-----Original Message-----=20 >From: Maan M. Hamze=20 >To: dev...@li...=20 >Date: Wednesday, October 31, 2001 11:02 PM=20 >Subject: Re: [Dev-C++] Drawing lines=20 >=20 >=20 > >You need a graphics library. And the last time I checked this e- = mail list=20 > >is not concerned with graphics. This is the Dev-C++ list.=20 > >Maan=20 > >----- Original Message -----=20 > >From: Christiaan Scholtz=20 > >To: dev...@li...=20 > >Sent: Wednesday, October 31, 2001 2:09 PM=20 > >Subject: [Dev-C++] Drawing lines=20 > >=20 > >=20 > >How do you put a pixel on the screen?=20 > >=20 > >=20 > >_______________________________________________=20 > >Dev-cpp-users mailing list=20 > >Dev...@li...=20 > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 Get your FREE download of MSN Explorer at http://explorer.msn.com=0F = _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-11-02 12:28:18
|
Now all, stop using bad words and start writing code. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/> * Alternative URL: http://run.to/noicys |
|
From: JS <jsc...@gm...> - 2001-11-02 12:18:20
|
<FontFamily><param>Times New Roman</param><bigger>Sorry, guys in here ! No please ! 1 christians remark "assh..." is not nice 2. daniel's "ok" to it is even worse ! @daniel, I agree to you in asking for many questions, even if not too DEV CPP related. I do not agree that is it a nice comment ! @Christiaan You should stay away with these words ! If you want to ciritize, do it the correct way or leave it, and simply ignore such emails of Mr Hamze. Better post more of your knowledge and your thoughts. I like those questions, since some of them also hit my interest. back to topic : I also would like to see some example code for printing graphics (DEVCPP) I am working with the opengl example, and did not yet find out how to place points. The way descirbed diod not work. (sqares do work), however. j.s. On 1 Nov 2001, at 23:19, Daniel Glenfield wrote: This is a programming list regarding DEV, which is underused as it is. I encourage people to put any programming question forward - there have been enough people unsubscribing as it is. btw nice reply Christiaan - short and to the point ;) >From: Christiaan Scholtz >To: dev...@li... >Subject: [Dev-C++] Drawing lines >Date: Thu, 01 Nov 2001 20:38:24 +0200 > >Asshole. > >-----Original Message----- >From: Maan M. Hamze >To: dev...@li... >Date: Wednesday, October 31, 2001 11:02 PM >Subject: Re: [Dev-C++] Drawing lines > > > >You need a graphics library. And the last time I checked this e- mail list > >is not concerned with graphics. This is the Dev-C++ list. > >Maan > >----- Original Message ----- > >From: Christiaan Scholtz > >To: dev...@li... > >Sent: Wednesday, October 31, 2001 2:09 PM > >Subject: [Dev-C++] Drawing lines > > > > > >How do you put a pixel on the screen? > > > > > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Get your FREE download of MSN Explorer at <underline><color><param>0000,0000,FF00</param>http://explorer.msn.com</underline></color> _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: JS <jsc...@gm...> - 2001-11-02 10:01:22
|
Well I used gotoxy so far - and it worked mostly apart from some strange rections. But you are right with getch - i did not find out how to make use of it ! :-( On 1 Nov 2001, at 15:33, mi...@ju... wrote: > I'm really having a tough time with C++. One of the great things about > it was that it was supposed to be extremely portable. Being a student > taking AP Computer Science, I do my programming in one of two places; > home and school. I use the free Dev C++ compiler at home, and at school > I use a Borland IDE. I always have to convert my programs to get them to > work to and fro, if at all. BUT CONIO PISSES ME OFF! I use conio.h that > I found somewhere in Dev C++. Not only does getch() act all wrong, but > it doesn't even have gotoxy()! I'm sorry if I seem a little over > reactive, but it is excruciatingly aggravating. |
|
From: St0fF 6. <st...@gm...> - 2001-11-02 00:11:42
|
Try http://nehe.gamedev.net, if it doesn't work: http://nehe.gamdev.org=20 This is a pretty complete oGL tutorial. Else use google to search for = other tutorials. But I think the links-page on nehe's is about enough = ... St0fF. ----- Original Message -----=20 From: Nick Easler=20 To: dev...@li...=20 Sent: Thursday, November 01, 2001 1:30 AM Subject: [Dev-C++] A Good OpenGL Game Programming Guide? Can anyone recommend a good OpenGL programming guide? I'm considering = buying the SuperBible (which edition is better?) or the OpenGL = Programming Guide by Woo, Neider, Davis, et al. =20 Thanks! easlern |
|
From: St0fF 6. <st...@gm...> - 2001-11-02 00:11:21
|
I think you're damn right. This guy doesn't seem to know a lot 'bout = coding if he thinks, that devcpp excludes graphics programming... Some people should sometimes just shut up, Mr. Hamze! Now an answer: at first choose a graphics library (openGL -> GLUT, = directX, whatever), then try to find a tutorial on it. example: in openGL you'll have to do: glBegin(GL_POINTS); // Tell oGL 2 make points out of the next = vertices glVertex2f(float x,float y); // draw your dots ... ... glEnd(); // finish drawing dots ... The problem now is, that you need the surrounding code like = initialization of oGL, redraw, reshape, and all the neccessary stuff for = making it all work. That's why you should read a tutorial (even if the = purpose is "just a dot"). The DOS-years are over, it's more complex, = now. Hopefully you're helped a bit, now ... St0fF. ----- Original Message -----=20 From: Christiaan Scholtz=20 To: dev...@li...=20 Sent: Thursday, November 01, 2001 7:38 PM Subject: [Dev-C++] Drawing lines Asshole. =20 -----Original Message----- From: Maan M. Hamze <mm...@pl...> To: dev...@li... = <dev...@li...> Date: Wednesday, October 31, 2001 11:02 PM Subject: Re: [Dev-C++] Drawing lines >You need a graphics library. And the last time I checked this e-mail = list >is not concerned with graphics. This is the Dev-C++ list. >Maan >----- Original Message ----- >From: Christiaan Scholtz >To: dev...@li... >Sent: Wednesday, October 31, 2001 2:09 PM >Subject: [Dev-C++] Drawing lines > > >How do you put a pixel on the screen? > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jason H. <jas...@bt...> - 2001-11-01 23:20:35
|
Yup, the standard functions are portable, but the non-standard stuff = like <conio.h> depends upon the compiler you are using. Character = positioning and other such specifics of working with a particular = graphics device weren't portable across all implementations so were = never included. I've not noticed that getch() behaveing too different = from other versions I have used in the past. In theory you could write = your own gotoxy style funtion, either using console functions supplied = by windows (but it will only work in widows) , or maybe some legacy DOS = stuff I don't know about? It depends upon how masochistic you are = feeling. :) Jason. ----- Original Message -----=20 From: mi...@ju...=20 To: dev...@li...=20 Sent: Thursday, November 01, 2001 8:33 PM Subject: [Dev-C++] gotoxy() I'm really having a tough time with C++. One of the great things = about it was that it was supposed to be extremely portable. Being a = student taking AP Computer Science, I do my programming in one of two = places; home and school. I use the free Dev C++ compiler at home, and = at school I use a Borland IDE. I always have to convert my programs to = get them to work to and fro, if at all. BUT CONIO PISSES ME OFF! I use = conio.h that I found somewhere in Dev C++. Not only does getch() act = all wrong, but it doesn't even have gotoxy()! I'm sorry if I seem a = little over reactive, but it is excruciatingly aggravating. =20 |
|
From: Daniel G. <sp...@ho...> - 2001-11-01 23:19:55
|
<html><div style='background-color:'><DIV> <P>This is a programming list regarding DEV, which is underused as it is. I encourage people to put any programming question forward - there have been enough people unsubscribing as it is.</P> <P>btw nice reply Christiaan - short and to the point ;)<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: Christiaan Scholtz <CK...@IA...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] Drawing lines <DIV></DIV>>Date: Thu, 01 Nov 2001 20:38:24 +0200 <DIV></DIV>> <DIV></DIV>>Asshole. <DIV></DIV>> <DIV></DIV>>-----Original Message----- <DIV></DIV>>From: Maan M. Hamze <MM...@PL...> <DIV></DIV>>To: dev...@li... <DEV...@LI...> <DIV></DIV>>Date: Wednesday, October 31, 2001 11:02 PM <DIV></DIV>>Subject: Re: [Dev-C++] Drawing lines <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> >You need a graphics library. And the last time I checked this e-mail list <DIV></DIV>> >is not concerned with graphics. This is the Dev-C++ list. <DIV></DIV>> >Maan <DIV></DIV>> >----- Original Message ----- <DIV></DIV>> >From: Christiaan Scholtz <DIV></DIV>> >To: dev...@li... <DIV></DIV>> >Sent: Wednesday, October 31, 2001 2:09 PM <DIV></DIV>> >Subject: [Dev-C++] Drawing lines <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> >How do you put a pixel on the screen? <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> >_______________________________________________ <DIV></DIV>> >Dev-cpp-users mailing list <DIV></DIV>> >Dev...@li... <DIV></DIV>> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Ioannis V. <no...@ya...> - 2001-11-01 21:10:26
|
conio.h is not part of ANSI C++. Use <iostream> instead. =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 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of mi...@ju... Sent: Thursday, November 01, 2001 10:34 PM To: dev...@li... Subject: [Dev-C++] gotoxy() I'm really having a tough time with C++. One of the great things about it was that it was supposed to be extremely portable. Being a student taking AP Computer Science, I do my programming in one of two places; home and school. I use the free Dev C++ compiler at home, and at school I use a Borland IDE. I always have to convert my programs to get them to work to and fro, if at all. BUT CONIO PISSES ME OFF! I use conio.h that I found somewhere in Dev C++. Not only does getch() act all wrong, but it doesn't even have gotoxy()! I'm sorry if I seem a little over reactive, but it is excruciatingly aggravating. =20 |
|
From: <mi...@ju...> - 2001-11-01 20:37:57
|
I'm really having a tough time with C++. One of the great things about it was that it was supposed to be extremely portable. Being a student taking AP Computer Science, I do my programming in one of two places; home and school. I use the free Dev C++ compiler at home, and at school I use a Borland IDE. I always have to convert my programs to get them to work to and fro, if at all. BUT CONIO PISSES ME OFF! I use conio.h that I found somewhere in Dev C++. Not only does getch() act all wrong, but it doesn't even have gotoxy()! I'm sorry if I seem a little over reactive, but it is excruciatingly aggravating. |
|
From: Christiaan S. <ck...@ia...> - 2001-11-01 19:09:00
|
Asshole. -----Original Message----- From: Maan M. Hamze <mm...@pl...> To: dev...@li... = <dev...@li...> Date: Wednesday, October 31, 2001 11:02 PM Subject: Re: [Dev-C++] Drawing lines >You need a graphics library. And the last time I checked this e-mail = list >is not concerned with graphics. This is the Dev-C++ list. >Maan >----- Original Message ----- >From: Christiaan Scholtz >To: dev...@li... >Sent: Wednesday, October 31, 2001 2:09 PM >Subject: [Dev-C++] Drawing lines > > >How do you put a pixel on the screen? > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: General E. <mak...@vs...> - 2001-11-01 02:04:44
|
Hi, I have started using DEV-C++. I found that there is some difference in syntax or function calls. How can i know the function list. Please help me. Arvind |
|
From: Jason H. <jas...@bt...> - 2001-11-01 01:43:28
|
MessageI think in general that it being called a pointer to a member is = quite misleading. I'm not sure in what you say whether I have convinced = you of my point of view or that you are sticking to the idea of a = function to each object. Of course everything we have talked about is = pretty implementation specific, but they will all tend towards the same = systems, with only minor differences. You will note that he says it is = like an offset he doesn't say it is an offset. I believe he is using the = idea of offsets and such as an analogy, which is misleading in it's own = way. He does say that it is up to the compiler to interpret the pointer = in the correct way depending upon what is being referenced. Jason.=20 ----- Original Message -----=20 From: Ioannis Vranos=20 To: Dev-C++=20 Sent: Thursday, November 01, 2001 1:26 AM Subject: RE: [Dev-C++] About member functions Yes for virtual functions the pointer is used an an array index (he = has a picture). For non virtual functions it acts like an offset. If it = helps, he says that we can pass a pointer to a virtual function between = address space, but we can not exchange a pointer to a non-virtual = function between address spaces. Special Edition and 3rd edition *are* the same. If your printing is = not recent it simply lacks only some appendixes at the end of the book = which you can download online as pdfs from Stroustrup's pages, so go to = his site and check. I found your quote. What i say is on page 420 the draw and the first = paragraph. 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: Thursday, November 01, 2001 2:58 AM To: Dev-C++ Subject: Re: [Dev-C++] About member functions I am not a pro for a start, but because of my background I tend to = understand some of the concepts in Classes and Objects from a different = perspective. My background being as a hardware engineer and using = assembler (68000 mainly). The section you are refering to is about pointers to member = functions. Something that a class can do is provide a table of pointers = to it's member functions in it's internal representation. There will = still be only one instance of the member funstion, but each object will = contain a pointer to that fuction. This is specifically needed in the = case of virtual member functions where the caller doesn't necessarily = know what class it is using. By saying that a particular pointer to the = member is at such and such a position in an object then you can = indirectly call the correct function for the object. Pointers to = pointers are a useful form of indirection. In essence what that paragraph is saying is that if you call method = 5 (for example) of an object the compiler will know that it actualy = refers to a particular function in a particular place in memory, or at = least a pointer to that function in memory. I will qoute from my edition (third) on the same page you quote: "C++ offers a facility for indirectly referring to member of a = class. A pointer to a member is a *value* that identifies a member of a = class. You can think of it as the position of the member in an object of = the class, but of course an implementation takes into account the = differences between data members, virtual functions, non-virtual = functions, etc." Does that seem reasonable to you? It seems that we are looking at = the same paragraphs and getting two totally different answers from it. Jason. ----- Original Message -----=20 From: Ioannis Vranos=20 To: Dev-C++=20 Sent: Wednesday, October 31, 2001 8:11 PM Subject: [Dev-C++] About member functions This subject has been discussed on th e past, but now new evidence = came up. :) In "The C++ Programming Language" Special Edition on page 419 it = says that each object has its own member function as i was claiming in = the beginning. It says many things but lets concentrate at the end of that page: "Just like ordinary pointers to functions, pointers to member = functions are used when we need to refer to a function without having to = know its name. However, a pointer to member isn't a pointer to a piece = of memory the way a pointer to a variable or a pointer to a function is. = It is more like an offfset into a structure or an index into an array. = When a pointer to member is combined with a pointer to an object of the = right type, it yields something that identifies a particular member of a = particular object". i think we were discussing it with Jason Hardman. Jason if you see = it, please tell me your opinion (since you seem you are a pro). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ya...> - 2001-11-01 01:26:42
|
Yes for virtual functions the pointer is used an an array index (he has a picture). For non virtual functions it acts like an offset. If it helps, he says that we can pass a pointer to a virtual function between address space, but we can not exchange a pointer to a non-virtual function between address spaces. =20 Special Edition and 3rd edition *are* the same. If your printing is not recent it simply lacks only some appendixes at the end of the book which you can download online as pdfs from Stroustrup's pages, so go to his site and check. =20 I found your quote. What i say is on page 420 the draw and the first paragraph. =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 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Jason Hardman Sent: Thursday, November 01, 2001 2:58 AM To: Dev-C++ Subject: Re: [Dev-C++] About member functions I am not a pro for a start, but because of my background I tend to understand some of the concepts in Classes and Objects from a different perspective. My background being as a hardware engineer and using assembler (68000 mainly). =20 The section you are refering to is about pointers to member functions. Something that a class can do is provide a table of pointers to it's member functions in it's internal representation. There will still be only one instance of the member funstion, but each object will contain a pointer to that fuction. This is specifically needed in the case of virtual member functions where the caller doesn't necessarily know what class it is using. By saying that a particular pointer to the member is at such and such a position in an object then you can indirectly call the correct function for the object. Pointers to pointers are a useful form of indirection. =20 In essence what that paragraph is saying is that if you call method 5 (for example) of an object the compiler will know that it actualy refers to a particular function in a particular place in memory, or at least a pointer to that function in memory. =20 I will qoute from my edition (third) on the same page you quote: "C++ offers a facility for indirectly referring to member of a class. A pointer to a member is a *value* that identifies a member of a class. You can think of it as the position of the member in an object of the class, but of course an implementation takes into account the differences between data members, virtual functions, non-virtual functions, etc." =20 Does that seem reasonable to you? It seems that we are looking at the same paragraphs and getting two totally different answers from it. =20 Jason. ----- Original Message -----=20 From: Ioannis Vranos <mailto:no...@ya...> =20 To: Dev-C++ <mailto:dev...@li...> =20 Sent: Wednesday, October 31, 2001 8:11 PM Subject: [Dev-C++] About member functions This subject has been discussed on th e past, but now new evidence came up. :) =20 =20 In "The C++ Programming Language" Special Edition on page 419 it says that each object has its own member function as i was claiming in the beginning. =20 =20 It says many things but lets concentrate at the end of that page: =20 "Just like ordinary pointers to functions, pointers to member functions are used when we need to refer to a function without having to know its name. However, a pointer to member isn't a pointer to a piece of memory the way a pointer to a variable or a pointer to a function is. It is more like an offfset into a structure or an index into an array. When a pointer to member is combined with a pointer to an object of the right type, it yields something that identifies a particular member of a particular object". =20 =20 i think we were discussing it with Jason Hardman. Jason if you see it, please tell me your opinion (since you seem you are a pro). =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 |
|
From: Jason H. <jas...@bt...> - 2001-11-01 01:16:49
|
Because direct draw deals with the graphics memory at such a low level = it really depends upon what display mode you are in. In 8bpp (bits per = pixel) there is one byte per pixel. 2 for 16bpp, 3 for 24 bpp, and 4 for = 32bpp. Using that information you need to figure out the memory address = of the particular pixel you want to draw to, which in turn depends upon = the width and height of the window or screen you are drawing too. The = basic formula is: graphics_mem + x*bytespp + y*width where graphics_mem is a byte pointer (unsigned char) to the first = location in the memory for the graphics area, bytespp is bytes per pixel = (1, 2, 3, or 4), and width is the number of bytes to one horizontal line = of the display (specifically the pitch). x and y are the cooridinates of = the pixel you want to draw to. i.e. graphics_mem[x*bytespp + y*pitch] =3D colour_value; I have been learning all this from Windows Game Programming for Dummies, = which is getting old now, but is a good book to learn about Direct Draw = from (IMO). If all you need is basic graphics capabilities in a window = then you should look into the Windows GDI or alternativly if you are = familiar with the BGI graphics interface then there is a version = available for use with Dev-C++ (MinGW), goto = http://www.cs.colorado.edu/~main/bgi/ for more information. If you want any more info I'll try to help, Jason. ----- Original Message -----=20 From: Christiaan Scholtz=20 To: dev...@li...=20 Sent: Wednesday, October 31, 2001 8:09 PM Subject: [Dev-C++] Drawing lines How do you put a pixel on the screen? |
|
From: Jason H. <jas...@bt...> - 2001-11-01 00:58:39
|
MessageI am not a pro for a start, but because of my background I tend = to understand some of the concepts in Classes and Objects from a = different perspective. My background being as a hardware engineer and = using assembler (68000 mainly). The section you are refering to is about pointers to member functions. = Something that a class can do is provide a table of pointers to it's = member functions in it's internal representation. There will still be = only one instance of the member funstion, but each object will contain a = pointer to that fuction. This is specifically needed in the case of = virtual member functions where the caller doesn't necessarily know what = class it is using. By saying that a particular pointer to the member is = at such and such a position in an object then you can indirectly call = the correct function for the object. Pointers to pointers are a useful = form of indirection. In essence what that paragraph is saying is that if you call method 5 = (for example) of an object the compiler will know that it actualy refers = to a particular function in a particular place in memory, or at least a = pointer to that function in memory. I will qoute from my edition (third) on the same page you quote: "C++ offers a facility for indirectly referring to member of a class. A = pointer to a member is a *value* that identifies a member of a class. = You can think of it as the position of the member in an object of the = class, but of course an implementation takes into account the = differences between data members, virtual functions, non-virtual = functions, etc." Does that seem reasonable to you? It seems that we are looking at the = same paragraphs and getting two totally different answers from it. Jason. ----- Original Message -----=20 From: Ioannis Vranos=20 To: Dev-C++=20 Sent: Wednesday, October 31, 2001 8:11 PM Subject: [Dev-C++] About member functions This subject has been discussed on th e past, but now new evidence = came up. :) In "The C++ Programming Language" Special Edition on page 419 it says = that each object has its own member function as i was claiming in the = beginning. It says many things but lets concentrate at the end of that page: "Just like ordinary pointers to functions, pointers to member = functions are used when we need to refer to a function without having to = know its name. However, a pointer to member isn't a pointer to a piece = of memory the way a pointer to a variable or a pointer to a function is. = It is more like an offfset into a structure or an index into an array. = When a pointer to member is combined with a pointer to an object of the = right type, it yields something that identifies a particular member of a = particular object". i think we were discussing it with Jason Hardman. Jason if you see it, = please tell me your opinion (since you seem you are a pro). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Nick E. <ea...@st...> - 2001-11-01 00:32:43
|
Can anyone recommend a good OpenGL programming guide? I'm considering = buying the SuperBible (which edition is better?) or the OpenGL = Programming Guide by Woo, Neider, Davis, et al. Thanks! easlern |
|
From: Ioannis V. <no...@ya...> - 2001-10-31 23:26:46
|
> -----Original Message----- > From: jansb000 [mailto:jan...@wx...] > Sent: Thursday, November 01, 2001 12:45 AM > To: Ioannis Vranos > Subject: Re: [Dev-C++] About member functions > > > I think what they mean by this is that if you use a pointer > to a member-function, the actuall function that you point to > is resolved at run-time, since, probably due to overloading > or inheritance, the exact target can not be resolved during > compile time. > > The member functions are already available and they appear > only once in memory. However if you use overloeding, then > what appears to be the same function is actually several > times in memory. For example all your classes may contain an > overloaded operator=(); This may result in many different > versions of this function. But each variant of this function > is in the program only once. Well a pointer pointing to a specific overloaded member function will point at the certain function, ignoring the other ones. I hope we are telling the same thing. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Maan M. H. <mm...@pl...> - 2001-10-31 20:55:19
|
You need a graphics library. And the last time I checked this e-mail list is not concerned with graphics. This is the Dev-C++ list. Maan ----- Original Message ----- From: Christiaan Scholtz To: dev...@li... Sent: Wednesday, October 31, 2001 2:09 PM Subject: [Dev-C++] Drawing lines How do you put a pixel on the screen? |
|
From: Ioannis V. <no...@ya...> - 2001-10-31 20:11:23
|
This subject has been discussed on th e past, but now new evidence came up. :) =20 =20 In "The C++ Programming Language" Special Edition on page 419 it says that each object has its own member function as i was claiming in the beginning. =20 =20 It says many things but lets concentrate at the end of that page: =20 "Just like ordinary pointers to functions, pointers to member functions are used when we need to refer to a function without having to know its name. However, a pointer to member isn't a pointer to a piece of memory the way a pointer to a variable or a pointer to a function is. It is more like an offfset into a structure or an index into an array. When a pointer to member is combined with a pointer to an object of the right type, it yields something that identifies a particular member of a particular object". =20 =20 i think we were discussing it with Jason Hardman. Jason if you see it, please tell me your opinion (since you seem you are a pro). =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 |
|
From: Christiaan S. <ck...@ia...> - 2001-10-31 20:11:23
|
How do you put a pixel on the screen? |
|
From: Maan M. H. <mm...@pl...> - 2001-10-31 18:36:39
|
You may be checking Do Not Make a Console Window. If so, uncheck and = see if it works. Maan ----- Original Message -----=20 From: St0fF 64=20 To: Dev...@li...=20 Sent: Wednesday, October 31, 2001 12:20 PM Subject: [Dev-C++] getting SDL 4 MingW32 to compile ... Hi! I=B4ve got a problem. I downloaded SDL-devel 4 mingw32 and depacked = the .h - files to \devcpp\include\SDL. When I include "SDL\SDL.h" = there's no problem. I also depacked the .a - files to \devcpp\lib. When = I compile with "-lsdl" the linker output is as follows: // linker output: D:\IDE\devCPP\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined = reference to `WinMain@16' I guess I need to link to another lib aswell. Which one is it? Or if = I'm wrong, what's wrong? Any help is apprecciated ... Cheers, St0fF. |
|
From: St0fF 6. <st...@gm...> - 2001-10-31 18:20:26
|
Hi! I=B4ve got a problem. I downloaded SDL-devel 4 mingw32 and depacked the = .h - files to \devcpp\include\SDL. When I include "SDL\SDL.h" there's = no problem. I also depacked the .a - files to \devcpp\lib. When I = compile with "-lsdl" the linker output is as follows: // linker output: D:\IDE\devCPP\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference = to `WinMain@16' I guess I need to link to another lib aswell. Which one is it? Or if = I'm wrong, what's wrong? Any help is apprecciated ... Cheers, St0fF. |
|
From: carlos D. M. <cg...@wo...> - 2001-10-31 11:52:03
|
andreas otto escribió: > Hi, > > does anyone know where to find the wxWindows packages for DevC++? > > I was having a look at > [ http://members.fortunecity.com/honglilai/wxwindows.html ] > but apart from the demos zip file I keep getting 404s when trying to > download. > > Thanks for your help, > Andreas > > -- > andreas otto - an...@ph... > Using php on windows? http://www.php4win.de > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users http://www.thefreecountry.com/developercity/guilibraries.shtml Here I found a link for download the wxwindows GUI library. |
|
From: Jason H. <jas...@bt...> - 2001-10-31 11:29:35
|
You can either use the Windows GDI and get a device context etc..., which isn't recomended if you want speed, or you can write your own algorithm to do it. You might want to look up something like the Bresenhams algorithm which does that. If you want more information I can dig out a copy of Bresenhams I developed in college? Jason. ----- Original Message ----- From: "<Dx 8a>" <vin...@ed...> To: "Dev-C++ mailing list" <dev...@li...> Sent: Wednesday, October 31, 2001 5:02 AM Subject: [Dev-C++] Drawing lines > In DirectX's DirectDraw, how do I draw a straight line from Point A having coordinates (x1,y1) to point B with coordinates (x2,y2). is there a specific function for this operation? > > Thanks > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |