dev-cpp-users Mailing List for Dev-C++ (Page 650)
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: Clayton W. <vgd...@ho...> - 2001-11-07 16:11:05
|
Well if you unsubscribe from the mailing list then you are unsubscribing from the whole world to where you have to resubscribe. Blocking it is the quicker and easier. It takes a few days for the unsubscribe to take effect and it takes a matter of several seconds to a few minutes to block the mailing list address of dev...@li... and then if there were certain people that you wanted to talk to to get advice then you could become friends with them and email them for help or ask questions of them. You for example Ioannis. Don't worry though I prefer reading, looking, searching, and doing everything else possible to find the answer to the problem I have before I ever post my problem. That's why you don't see very many posts or questions from me. --Clayton Weaver Destined Entertainment "Where entertainment and destiny come together." http://www.geocities.com/destined_entertainment/index.html ----Original Message Follows---- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Subject: RE: [Dev-C++] Please take me off the mailing list Date: Wed, 7 Nov 2001 13:49:19 +0200 > -----Original Message----- > From: Clayton Weaver [mailto:vgd...@ho...] > Sent: Wednesday, November 07, 2001 4:37 AM > To: no...@ya... > Subject: RE: [Dev-C++] Please take me off the mailing list > > > I'm from the MS era and I don't agree with that at all. I > read, search, and > experiment until I can't find anything and then I post my > problem. Of course > I have to admit that I'm one of the few that do do that. With > me though I > normally don't waste my time unsubscribing I just simply > block the sender > and leave it at that. That way problem solved and no more > fuss about it. ! Great way of unsubscribing! Instead of pressing a button, you block the whole planet. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Ioannis V. <no...@ya...> - 2001-11-07 12:01:52
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Gregor Peter > Sent: Wednesday, November 07, 2001 7:21 AM > To: dev...@li... > Subject: [Dev-C++] C vs C++ > Importance: High > > > My Compiler complains about the following codelines > > lineNo: c-code > 59: char *currentObjName = calloc( 100, sizeof( char ) ); char *currentObjName=new char[100]; memset(currentObjName, 0, 100); // makes all zeros > 64: mltext = malloc( 10*sizeof(char)); mletext=new char[10]; > 318: mltext = realloc( mltext, > (strlen(mltext)+yyleng)*sizeof(char) ); You use wring approach, use string type defined in <string> Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ya...> - 2001-11-07 11:49:01
|
> -----Original Message----- > From: Clayton Weaver [mailto:vgd...@ho...] > Sent: Wednesday, November 07, 2001 4:37 AM > To: no...@ya... > Subject: RE: [Dev-C++] Please take me off the mailing list > > > I'm from the MS era and I don't agree with that at all. I > read, search, and > experiment until I can't find anything and then I post my > problem. Of course > I have to admit that I'm one of the few that do do that. With > me though I > normally don't waste my time unsubscribing I just simply > block the sender > and leave it at that. That way problem solved and no more > fuss about it. ! Great way of unsubscribing! Instead of pressing a button, you block the whole planet. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Edwin D. <edw...@ya...> - 2001-11-07 06:00:54
|
__________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com |
|
From: Gregor P. <pe...@in...> - 2001-11-07 05:23:06
|
My Compiler complains about the following codelines
lineNo: c-code
59: char *currentObjName = calloc( 100, sizeof( char ) );
60: char *token1 = calloc( 25, sizeof( char ) );
63: char *mltext, *ptext, *str;
64: mltext = malloc( 10*sizeof(char));
318: mltext = realloc( mltext, (strlen(mltext)+yyleng)*sizeof(char) );
329: mltext = realloc( mltext, (strlen(mltext)+1)*sizeof(char) );
The compilers errmsg is:
SCANNER.LEX:'lineNo': ANSI C++ forbids implicit conversion from
`void *' in initialization
Can tell me someone how to rewrite this ANSI C++ compatible?
THANX
Gregor (pe...@in...)
|
|
From: George P. <gp...@gm...> - 2001-11-07 05:23:06
|
A console aplication with those lines in main() ...
int main( argc, argv[]){
int argc;
char *argv[]
while ( yylex() !=0 )
;
return 0;
}//main
... eats up all lines from a textfile when it gets called like
main_exe < textfile.txt
How do I acsess a Input file like the above under windows?
Where do these parameters (argc argv[]) hide in WinMain( ... ) ?
THANX
Gregor (pe...@in...)
|
|
From: Gregor P. <pe...@in...> - 2001-11-07 05:23:06
|
Some time ago you asked this but I couldn't see if you got an answer already PlaySound is a little tricky I had the same problem once include <mmsystem.h> and tell your compiler/linker to use libwinmm.a from DevC++ Lib-Directory ( ...\DevC++\Lib\libwinmm.a ) The linkeroption -lwinmm should do it Good luck :-) Gregor (pe...@in...) ----- snip ----- Stein Nygård wrote: > Please... can someone tell me how to make my opengl-apps work as a > screensaver. Like, I would like them to be named stuff like somethin.scr > and so that one could choose them in the windows screensaver settings. I > really would aprreciate some help on this. > > Oh, and I also have another problem... where is PlaySound(); defined? > > > > Thanks alot, Stein > |
|
From: Clayton W. <vgd...@ho...> - 2001-11-07 02:51:40
|
I went to http://www.winprog.org and read the tutorials there for Windows programming and ran into a snag with the code they used. It all worked perfectly except one thing and I was hoping that someone could help me with it. I tried variations and modifications, but nothing seemed to work right; maybe I just entered the code wrong the first time, but I don't know. I'll continue to try the tutorial and see if I can get it to work, but I hope that it does and if it don't I hope that someone on here can help me with the following problem. One of the tutorials showed how to add the icon you make for the desktop shortcut, I know how to do that part using the resource editor in Dev-C++, but the part I'm referring to showed how to add the same icon to the title bar to where the icon was in front of the programs name (ie. The E in front of the Page Name-Microsoft Internet Explorer). Can anyone show me or tell me how to add the icon for my program to the title bar of the program so that I don't have the silly default icon that Dev-C++ puts at the top? Thanks in advance for any and all help you can provide:D. --Clayton Weaver Destined Entertainment "Where entertainment and destiny come together." http://www.geocities.com/destined_entertainment/index.html _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Gregor P. <pe...@in...> - 2001-11-07 01:51:00
|
Can tell me some one how to create a library file? what's the difference between *.lib *.a *.o -Files (exept of thier extension ;-) ? Some time ago someone told me this all would be the same To get a *.a from a *.o-File I just had to rename it? My Problem is: I have two precompiled Object-File libyywrap.o and lex.yy.o generatet by flex (a lexer generator) and sucsessfully copiled with DevC++ 4.01 lex.yy.c / .o contains a function named int yylex() which I wanna use in a different project. I think I have tried all possible (and impossible) Compiler and Project-Options but DevC++ complains the would be a undefined reference from gertswnd.c (the file I call yylex() from) to yylex :-( this is the original error message: gertswnd.o(.text+0x2659):gertswnd.c: undefined reference to `yylex(void) would be thankful of any advice! |
|
From: <FPa...@ao...> - 2001-11-07 00:01:32
|
Please take me off mailing list. |
|
From: St0fF 6. <st...@gm...> - 2001-11-06 22:28:16
|
Hi Jason! OpenGL: "The Red Book" it's the Best I've heard and it's in use for me for finding anything I need at the time I need (well, you'll have to read the introductory ...) I use the online Version. A link can be found at nehe's. St0fF. ----- Original Message ----- From: "Jason" <tux...@au...> To: <dev...@li...> Sent: Tuesday, November 06, 2001 2:13 AM Subject: [Dev-C++] Books > Hello again, I am very sorry if this is off topic but I would just like > a little advice from the people here that I have listened to for a while. I > am already thinking about Christmas (oh boy!) and I am thinking about > getting two books about programming. More specifically one over OpenGL and > one on AI. I was wondering if anyone has read a really good one lately and > just can't wait to recommend it (I know you want to hehe). I am sorry if I > am just wasting space on your monitor (and schedule) but I really don't want > to make a bad decision on this. > > Thx again > > bana-sea- > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-11-06 21:15:41
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Jason Hardman > Sent: Tuesday, November 06, 2001 10:34 PM > To: Dev-C++ > Subject: Re: [Dev-C++] Please take me off the mailing list >=20 >=20 > You wouldn't think it was so hard? I hope people realise that=20 > it may take up to a few days for a unsubscription to happen=20 > fully? If not why don't they just write directly to Colin=20 > Laplace on ha...@bl... I think he is the main person=20 > behind Dev-C++? >=20 > Jason. The solution to this problem is a line stating clearly, "to unsubscribe go to url". In the MS era people don't think, don't search don't experiment. I call this type of illness the MS retard. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Jason H. <jas...@bt...> - 2001-11-06 20:34:00
|
You wouldn't think it was so hard? I hope people realise that it may take up to a few days for a unsubscription to happen fully? If not why don't they just write directly to Colin Laplace on ha...@bl... I think he is the main person behind Dev-C++? Jason. ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Sent: Tuesday, November 06, 2001 8:19 PM Subject: RE: [Dev-C++] Please take me off the mailing list > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Rub...@ao... > > Sent: Tuesday, November 06, 2001 9:25 PM > > To: dev...@li... > > Subject: [Dev-C++] Please take me off the mailing list > > > > > > Please take me off the mailing list...thanks > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > Please go to the above damn link! > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-11-06 20:18:44
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Rub...@ao... > Sent: Tuesday, November 06, 2001 9:25 PM > To: dev...@li... > Subject: [Dev-C++] Please take me off the mailing list > > > Please take me off the mailing list...thanks > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Please go to the above damn link! Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: <Rub...@ao...> - 2001-11-06 19:25:39
|
Please take me off the mailing list...thanks |
|
From: Jason H. <jas...@bt...> - 2001-11-06 18:47:32
|
I have a nasty habit of overkill. Sorry. Besides there's a gaping big flaw in the algo I supplied, but it was only just to demonstrate a point (sorry, bad pun :). Jason. ----- Original Message ----- From: "St0fF 64" <st...@gm...> To: <dev...@li...> Sent: Tuesday, November 06, 2001 2:44 PM Subject: Re: [Dev-C++] Drawing Lines... > Thanks to Jason for explaining Bresenham's algorithm. I'm sure Dx Fx needs > to get to know about some pretty nice helpers: Books and search engines. > Hunting with a goot search engine on '+drawing +lines' would probably have > been enough ... > > St0fF. > > ----- Original Message ----- > From: "Jason Hardman" <jas...@bt...> > To: "Dev-C++" <dev...@li...>; "<Dx 8a>" > <vin...@ed...> > Sent: Sunday, November 04, 2001 3:26 AM > Subject: Re: [Dev-C++] Drawing Lines... > > > > Hello! Me again. Probably sick of me replying all the time and not being > > helpful enough. > > > > I'm not sure of your level of maths knowledge, but I'll put it simply and > > elaborate later (if you want). There are algorithms for drawing lines that > > are optimised for speed and can do things like anti-aliasing, but to do a > > simple line with simple maths then all you need to know is how to > calculate > > the gradient of the line. > > > > If I had a pen and paper and could explain it that way it would be easier, > > but I'll try in writing. > > > > By calculating the gradient you can then tell how much y increases (or > > decreases) for each one of x (or x of y) i.e. > > Assuming x1 (start) is smaller than x2 (end), i.e. line going left to > right > > on a screen. If not the case just swap coords around. > > > > double gradient, dx, dy, x, y; > > > > dx = x1 - x2; // change in x > > dy = y1 - y2; // change in y > > > > gradient = dy/dx; > > > > for(x = x1, y = y1; x <= x2; ++x, y += gradient) > > putpixel(static_cast<int>(x), static_cast<int>(y), colour); > > /* proper rounding would be better, but simple rounding down of decimals > in > > double to int conversion should be OK */ > > > > This is a guide of what you might do. I've not tested it, but AFAICT the > > math is OK. With a little more work you should be able to go in any > > direction. Other algorithms avoid the use of floating point representation > > cos it's slower than integer maths. > > > > I'll go into putpixel later if you want, but first can I ask what are you > > trying to do (apart from draw a line)? If you are working in a window then > > there are a broad set of drawing functions available for use, i.e. > LineTo(), > > Polygon(), Rectangle() etc... and they can be used on a DirectX app if > need > > be? I hope I'm not confusing the issue? > > > > Jason. > > > > ----- Original Message ----- > > From: "<Dx 8a>" <vin...@ed...> > > To: "Dev-C++ mailing list" <dev...@li...> > > Sent: Sunday, November 04, 2001 1:31 AM > > Subject: [Dev-C++] Drawing Lines... > > > > > > > Ok guys, I'll put it all together, and hopefully I can get the point... > > > > > > Using a library might be a good choice... I'tll save me a lot of time > and > > effort... But I surely don't know where I can get from so I guess I'll > have > > to do things manually. > > > > > > And yes, I think, DirectX doesn't supply a PutPixel or something to put > > points on the screen... That's why Ill have to make my own functions... > > > > > > Also, there must be someway of doing this thing mathematically... I > found > > that on a tutorial... that drawing pixels in the screen can be done > > mathematically... although, the tutorial didn't included a formula in > > drawing a straight line on the screen... Does anyone know of such a > formula? > > > > > > Drawing the pixel on the screen would require me to access the memory > > buffer or something... Ill have to make a function to simplify the task > and > > do a PutPixel... > > > > > > am I missing something? I hope I got it right, ive actually started > coding > > a few days earlier... and caused my system to crash... the reason I don't > > really know... but it sure wasn't the programming I did... which also > > prevented me to check the mailing list... > > > > > > Well guys, thanks in many ways... although I'll leave the still > unanswered > > question... > > > > > > > > > > > > > > > How do I draw Straight lines on the screen? (using DirectX) > > > > > > > > > Specifically, now Im asking of a formula that would make it sure that > what > > I'm drawing is a straight line... the previous things in the mailing list > > have actually helped me to know what Ill actually have to do In doing the > > drawing... Well... i hope someone could enlighten me somehow > > > > > > Thanks... > > > > > > Dx Fx > > > > > > __________________________________ > > > www.edsamail.com > > > > > > _______________________________________________ > > > 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 > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: St0fF 6. <st...@gm...> - 2001-11-06 14:44:18
|
Thanks to Jason for explaining Bresenham's algorithm. I'm sure Dx Fx needs to get to know about some pretty nice helpers: Books and search engines. Hunting with a goot search engine on '+drawing +lines' would probably have been enough ... St0fF. ----- Original Message ----- From: "Jason Hardman" <jas...@bt...> To: "Dev-C++" <dev...@li...>; "<Dx 8a>" <vin...@ed...> Sent: Sunday, November 04, 2001 3:26 AM Subject: Re: [Dev-C++] Drawing Lines... > Hello! Me again. Probably sick of me replying all the time and not being > helpful enough. > > I'm not sure of your level of maths knowledge, but I'll put it simply and > elaborate later (if you want). There are algorithms for drawing lines that > are optimised for speed and can do things like anti-aliasing, but to do a > simple line with simple maths then all you need to know is how to calculate > the gradient of the line. > > If I had a pen and paper and could explain it that way it would be easier, > but I'll try in writing. > > By calculating the gradient you can then tell how much y increases (or > decreases) for each one of x (or x of y) i.e. > Assuming x1 (start) is smaller than x2 (end), i.e. line going left to right > on a screen. If not the case just swap coords around. > > double gradient, dx, dy, x, y; > > dx = x1 - x2; // change in x > dy = y1 - y2; // change in y > > gradient = dy/dx; > > for(x = x1, y = y1; x <= x2; ++x, y += gradient) > putpixel(static_cast<int>(x), static_cast<int>(y), colour); > /* proper rounding would be better, but simple rounding down of decimals in > double to int conversion should be OK */ > > This is a guide of what you might do. I've not tested it, but AFAICT the > math is OK. With a little more work you should be able to go in any > direction. Other algorithms avoid the use of floating point representation > cos it's slower than integer maths. > > I'll go into putpixel later if you want, but first can I ask what are you > trying to do (apart from draw a line)? If you are working in a window then > there are a broad set of drawing functions available for use, i.e. LineTo(), > Polygon(), Rectangle() etc... and they can be used on a DirectX app if need > be? I hope I'm not confusing the issue? > > Jason. > > ----- Original Message ----- > From: "<Dx 8a>" <vin...@ed...> > To: "Dev-C++ mailing list" <dev...@li...> > Sent: Sunday, November 04, 2001 1:31 AM > Subject: [Dev-C++] Drawing Lines... > > > > Ok guys, I'll put it all together, and hopefully I can get the point... > > > > Using a library might be a good choice... I'tll save me a lot of time and > effort... But I surely don't know where I can get from so I guess I'll have > to do things manually. > > > > And yes, I think, DirectX doesn't supply a PutPixel or something to put > points on the screen... That's why Ill have to make my own functions... > > > > Also, there must be someway of doing this thing mathematically... I found > that on a tutorial... that drawing pixels in the screen can be done > mathematically... although, the tutorial didn't included a formula in > drawing a straight line on the screen... Does anyone know of such a formula? > > > > Drawing the pixel on the screen would require me to access the memory > buffer or something... Ill have to make a function to simplify the task and > do a PutPixel... > > > > am I missing something? I hope I got it right, ive actually started coding > a few days earlier... and caused my system to crash... the reason I don't > really know... but it sure wasn't the programming I did... which also > prevented me to check the mailing list... > > > > Well guys, thanks in many ways... although I'll leave the still unanswered > question... > > > > > > > > > > How do I draw Straight lines on the screen? (using DirectX) > > > > > > Specifically, now Im asking of a formula that would make it sure that what > I'm drawing is a straight line... the previous things in the mailing list > have actually helped me to know what Ill actually have to do In doing the > drawing... Well... i hope someone could enlighten me somehow > > > > Thanks... > > > > Dx Fx > > > > __________________________________ > > www.edsamail.com > > > > _______________________________________________ > > 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 |
|
From: St0fF 6. <st...@gm...> - 2001-11-06 14:43:17
|
try www.opengl.org ... should be the first idea to get it ... St0fF ----- Original Message ----- From: "Jason" <tux...@au...> To: <dev...@li...> Sent: Sunday, November 04, 2001 7:53 PM Subject: Re: [Dev-C++] opengl in dev-c++? > Oh yea, I had the first one but I forgot the second two, now it compiles but > when I try to run it it says it cannot find the dynamic link library > GLAUX.dll. I don't know where to get this dll. Or else I am doing something > wrong. > > bana-sea- > > ----- Original Message ----- > From: "Christiaan Scholtz" <ck...@ia...> > To: "Jason" <tux...@au...> > Sent: Sunday, November 04, 2001 12:07 PM > Subject: Re: [Dev-C++] opengl in dev-c++? > > > > It compiles fine over here, did you remember to > > add -lopengl32 -lglu32 -lglaux to the project options? > > > > -----Original Message----- > > From: Jason <tux...@au...> > > To: dev...@li... > > <dev...@li...> > > Date: Sunday, November 04, 2001 7:19 PM > > Subject: Re: [Dev-C++] opengl in dev-c++? > > > > > > >Hmm... yes I already did that... This is what I have so far. > > > > > >bana-sea- > > > > > >----- Original Message ----- > > >From: Christiaan Scholtz > > >To: dev...@li... > > >Sent: Sunday, November 04, 2001 3:22 AM > > >Subject: [Dev-C++] opengl in dev-c++? > > > > > > > > >>I had the same problem. What you need to do is add #include <stdlib.h> > at > > >the top and it should work fine > > > > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <bu...@ya...> - 2001-11-06 10:28:58
|
Thanks for hearing me. At least that worked. I have actually followed the instruction for getting myself unsubscribed but it just doesn't work. I am tired of seeing these Dev-C++ mails. If you can get in touch with whoever is the admin pls tell him/her to get me off this list. I put in 11 this time...might just work too.. ha..ha.. Thanx Frank. UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... UNSUBSCRIBE ME NOW !!!!! email bu...@ya... --- JS <jsc...@gm...> wrote: > > Hello Frank - > > I am afraid, THIS wont work. (writing 6 lines of > unsub desire) > > You must write 10 lines at least and pay some money > on my bank > acount. > > hehe > > .... > > but does not every email in here contain a line a > the very beginning > telling us about unsub procedure ? > > > > On 5 Nov 2001, at 21:40, Frank Akujobi wrote: > > > UNSUBSCRIBE ME NOW !!!!! > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > > > > > --- dev...@li... > wrote: > > > Send Dev-cpp-users mailing list submissions to > > > dev...@li... > > > > > > To subscribe or unsubscribe via the World Wide > Web, > > > visit > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > or, via email, send a message with subject or > body > > > 'help' to > > > dev...@li... > > > > > > You can reach the person managing the list at > > > dev...@li... > > > > > > When replying, please edit your Subject line so > it > > > is more specific > > > than "Re: Contents of Dev-cpp-users digest..." > > > > > > > > > Today's Topics: > > > > > > 1. Re: Random numbers with MS Visual C++ > (Kevin > > > Wood) > > > 2. Re: Drawing lines (Kevin Wood) > > > 3. PLS UNSUBSCRIBE ME NOW!!!!!!! > > > (=?iso-8859-1?q?Frank=20Akujobi?=) > > > 4. RE: Drawing lines (???) > > > 5. Re: Drawing lines (Jason Hardman) > > > 6. SDL_net with Mingw compiler > (RPG...@ao...) > > > > > > --__--__-- > > > > > > Message: 1 > > > From: "Kevin Wood" <ke...@me...> > > > To: <dev...@li...> > > > Subject: Re: [Dev-C++] Random numbers with MS > Visual > > > C++ > > > Date: Sun, 4 Nov 2001 19:53:03 -0000 > > > > > > Hello everyone, > > > > > > I think the Borland random function is not > standard. > > > Try this instead: > > > > > > #include <stdlib.h> > > > > > > int rand(void); > > > // Random number generator. > > > // rand returns successive pseudorandom numbers > in > > > the > > > // range from 0 to RAND_MAX. > > > // The symbolic constant RAND_MAX is defined in > > > stdlib.h. > > > // rand returns the generated pseudorandom > number. > > > > > > void srand(unsigned seed); > > > // Initializes the random number generator. > > > > > > By the way, I don't think much of that font! > > > > > > Regards, > > > Kevin. > > > > > > > > > > > > > > > --__--__-- > > > > > > Message: 2 > > > From: "Kevin Wood" <ke...@me...> > > > To: <dev...@li...> > > > Subject: Re: [Dev-C++] Drawing lines > > > Date: Sun, 4 Nov 2001 20:00:55 -0000 > > > > > > Hello, > > > > > > You could, instead, set the current pen colour > then > > > use MoveToEx() and > > > LineTo() functions. > > > > > > Does anyone know if there is an online version > of > > > the Windows SDK help > > > files? > > > > > > > > > Regards, > > > Kevin. > > > > > > > > > ----- Original Message ----- > > > From: Christiaan Scholtz <ck...@ia...> > > > To: <dev...@li...> > > > Sent: Sunday, November 04, 2001 10:46 AM > > > Subject: Re: [Dev-C++] Drawing lines > > > > > > > > > > Yes that works! > > > > Heres my code to do it: > > > > case WM_PAINT: > > > > > SetPixel(GetDC(hwnd),100,100,0x00FF0000); > > > > > SetPixel(GetDC(hwnd),101,100,0x00FF0000); > > > > > SetPixel(GetDC(hwnd),102,100,0x00FF0000); > > > > > SetPixel(GetDC(hwnd),103,100,0x00FF0000); > > > > > SetPixel(GetDC(hwnd),104,100,0x00FF0000); > > > > break; > > > > > > > > Two things to note are that there are two > extra > > > 0's at the start of the > > > > colour specifying the alpha value and that the > > > colours are reversed. > > > Instead > > > > of specifying r,g,b they are blue, green, red > > > (weird) in hex. > > > > > > > > -----Original Message----- > > > > From: Kevin Wood <ke...@me...> > > > > To: dev...@li... > > > > <dev...@li...> > > > > Date: Sunday, November 04, 2001 12:05 PM > > > > Subject: Re: [Dev-C++] Drawing lines > > > > > > > > > > > > >Hello everyone, > > > > > > > > > >I have copied the following from the Windows > API > > > help files. Does it > > > help? > > > > > > > > > >----------------------------------------- > > > > > > > > > >The SetPixel function sets the pixel at the > > > specified coordinates to the > > > > >specified color. > > > > > > > > > >COLORREF SetPixel( > > > > > > > > > > HDC hdc, // handle of device context > === message truncated === __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |
|
From: Ioannis V. <no...@ya...> - 2001-11-06 10:03:58
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf Of Jason > Sent: Tuesday, November 06, 2001 3:13 AM > To: dev...@li... > Subject: [Dev-C++] Books >=20 >=20 > Hello again, I am very sorry if this is off topic but I=20 > would just like a little advice from the people here that I=20 > have listened to for a while. I am already thinking about=20 > Christmas (oh boy!) and I am thinking about getting two books=20 > about programming. More specifically one over OpenGL and one=20 > on AI. I was wondering if anyone has read a really good one=20 > lately and just can't wait to recommend it (I know you want=20 > to hehe). I am sorry if I am just wasting space on your=20 > monitor (and schedule) but I really don't want to make a bad=20 > decision on this. >=20 > Thx again >=20 > bana-sea- I do not know any on both of these subjects but i have one magnificent book in mind. And it is *great*!. "The C++ Programming Language" Special Edition by Bjarne Stroustrup (the creator of C++). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Jason <tux...@au...> - 2001-11-06 09:18:53
|
Hello again, I am very sorry if this is off topic but I would just like a little advice from the people here that I have listened to for a while. I am already thinking about Christmas (oh boy!) and I am thinking about getting two books about programming. More specifically one over OpenGL and one on AI. I was wondering if anyone has read a really good one lately and just can't wait to recommend it (I know you want to hehe). I am sorry if I am just wasting space on your monitor (and schedule) but I really don't want to make a bad decision on this. Thx again bana-sea- |
|
From: JS <jsc...@gm...> - 2001-11-06 09:06:21
|
Hello Frank - I am afraid, THIS wont work. (writing 6 lines of unsub desire) You must write 10 lines at least and pay some money on my bank acount. hehe .... but does not every email in here contain a line a the very beginning telling us about unsub procedure ? On 5 Nov 2001, at 21:40, Frank Akujobi wrote: > UNSUBSCRIBE ME NOW !!!!! > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > UNSUBSCRIBE ME NOW !!!!! email bu...@ya... > > > > --- dev...@li... wrote: > > Send Dev-cpp-users mailing list submissions to > > dev...@li... > > > > To subscribe or unsubscribe via the World Wide Web, > > visit > > > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > or, via email, send a message with subject or body > > 'help' to > > dev...@li... > > > > You can reach the person managing the list at > > dev...@li... > > > > When replying, please edit your Subject line so it > > is more specific > > than "Re: Contents of Dev-cpp-users digest..." > > > > > > Today's Topics: > > > > 1. Re: Random numbers with MS Visual C++ (Kevin > > Wood) > > 2. Re: Drawing lines (Kevin Wood) > > 3. PLS UNSUBSCRIBE ME NOW!!!!!!! > > (=?iso-8859-1?q?Frank=20Akujobi?=) > > 4. RE: Drawing lines (???) > > 5. Re: Drawing lines (Jason Hardman) > > 6. SDL_net with Mingw compiler (RPG...@ao...) > > > > --__--__-- > > > > Message: 1 > > From: "Kevin Wood" <ke...@me...> > > To: <dev...@li...> > > Subject: Re: [Dev-C++] Random numbers with MS Visual > > C++ > > Date: Sun, 4 Nov 2001 19:53:03 -0000 > > > > Hello everyone, > > > > I think the Borland random function is not standard. > > Try this instead: > > > > #include <stdlib.h> > > > > int rand(void); > > // Random number generator. > > // rand returns successive pseudorandom numbers in > > the > > // range from 0 to RAND_MAX. > > // The symbolic constant RAND_MAX is defined in > > stdlib.h. > > // rand returns the generated pseudorandom number. > > > > void srand(unsigned seed); > > // Initializes the random number generator. > > > > By the way, I don't think much of that font! > > > > Regards, > > Kevin. > > > > > > > > > > --__--__-- > > > > Message: 2 > > From: "Kevin Wood" <ke...@me...> > > To: <dev...@li...> > > Subject: Re: [Dev-C++] Drawing lines > > Date: Sun, 4 Nov 2001 20:00:55 -0000 > > > > Hello, > > > > You could, instead, set the current pen colour then > > use MoveToEx() and > > LineTo() functions. > > > > Does anyone know if there is an online version of > > the Windows SDK help > > files? > > > > > > Regards, > > Kevin. > > > > > > ----- Original Message ----- > > From: Christiaan Scholtz <ck...@ia...> > > To: <dev...@li...> > > Sent: Sunday, November 04, 2001 10:46 AM > > Subject: Re: [Dev-C++] Drawing lines > > > > > > > Yes that works! > > > Heres my code to do it: > > > case WM_PAINT: > > > SetPixel(GetDC(hwnd),100,100,0x00FF0000); > > > SetPixel(GetDC(hwnd),101,100,0x00FF0000); > > > SetPixel(GetDC(hwnd),102,100,0x00FF0000); > > > SetPixel(GetDC(hwnd),103,100,0x00FF0000); > > > SetPixel(GetDC(hwnd),104,100,0x00FF0000); > > > break; > > > > > > Two things to note are that there are two extra > > 0's at the start of the > > > colour specifying the alpha value and that the > > colours are reversed. > > Instead > > > of specifying r,g,b they are blue, green, red > > (weird) in hex. > > > > > > -----Original Message----- > > > From: Kevin Wood <ke...@me...> > > > To: dev...@li... > > > <dev...@li...> > > > Date: Sunday, November 04, 2001 12:05 PM > > > Subject: Re: [Dev-C++] Drawing lines > > > > > > > > > >Hello everyone, > > > > > > > >I have copied the following from the Windows API > > help files. Does it > > help? > > > > > > > >----------------------------------------- > > > > > > > >The SetPixel function sets the pixel at the > > specified coordinates to the > > > >specified color. > > > > > > > >COLORREF SetPixel( > > > > > > > > HDC hdc, // handle of device context > > > > int X, // x-coordinate of pixel > > > > int Y, // y-coordinate of pixel > > > > COLORREF crColor // pixel color > > > > ); > > > > > > > > > > > >Parameters > > > > > > > >hdc > > > > > > > >Identifies the device context. > > > > > > > >X > > > > > > > >Specifies the x-coordinate, in logical units, of > > the point to be set. > > > > > > > >Y > > > > > > > >Specifies the y-coordinate, in logical units, of > > the point to be set. > > > > > > > >crColor > > > > > > > >Specifies the color to be used to paint the > > point. > > > > > > > >Return Values > > > > > > > >If the function succeeds, the return value is the > > RGB value that the > > > >function sets the pixel to. This value may differ > > from the color > > specified > > > >by crColor; that happens when an exact match for > > the specified color > > cannot > > > >be found. > > > >If the function fails, the return value is -1. To > > get extended error > > > >information, call GetLastError. > > > > > > > >Remarks > > > > > > > >The function fails if the pixel coordinates lie > > outside of the current > > > >clipping region. > > > >Not all devices support the SetPixel function. > > For more information, see > > > >GetDeviceCaps. > > > > > > > > > > >--------------------------------------------------------------------------- > > > - > > > >------------- > > > > > > > >Regards, > > > > Kevin. > > > > > > > > > > > > > > > >----- Original Message ----- > > > >From: Christiaan Scholtz <ck...@ia...> > > > >To: <dev...@li...> > > > === message truncated === > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: Christiaan S. <ck...@ia...> - 2001-11-06 08:04:05
|
Yes I am a newbie but dont hold it against me! The code is there to draw =
a pixel not a line. I just drew it multiple times so you could see it. =
And yes it doesnt clear up and stuff but this is just a small part of =
the code specifically designed to test plotting a pixel, not to promote =
good programming practice.
-----Original Message-----
From: David Nebinger <dne...@mi...>
To: dev...@li... =
<dev...@li...>
Date: Monday, November 05, 2001 10:59 PM
Subject: [Dev-C++] Drawing Lines (Let's put an end to this =
thread)...
=20
=20
OK, it's obvious that the person that coded:
=20
> case WM_PAINT:
> SetPixel(GetDC(hwnd),100,100,0x00FF0000);
> SetPixel(GetDC(hwnd),101,100,0x00FF0000);
> SetPixel(GetDC(hwnd),102,100,0x00FF0000);
> SetPixel(GetDC(hwnd),103,100,0x00FF0000);
> SetPixel(GetDC(hwnd),104,100,0x00FF0000);
> break;
=20
is really a newbie. Multiple calls to GetDC() with no handle reuse, =
no ReleaseDC() calls, and trying to plot pixels rather than the =
MoveToEx()/LineTo() calls.
=20
In case he's wondering, here's the code to do what he wanted:
=20
case WM_PAINT:
{
HDC hdc;
PAINTSTRUCT ps;
HBRUSH hbr,oldBrush;
=20
hdc=3DBeginPaint(hwnd,&ps); // get the device context during =
a WM_PAINT message
hbr =3D CreateSolidBrush(RGB(0,0,0xff)); // create a brush =
for drawing
oldBrush =3D (HBRUSH) SelectObject(hdc,hbr); // select the =
brush into the DC
MoveToEx(hdc,100,100,NULL); // Move to the specified =
position
LineTo(hdc,104,100); // draw the line
SelectObject(hdc,oldBrush); // select the old brush back to =
the dc
DeleteObject(hbr); // delete our temporary brush
EndPaint(hwnd,&ps); // end the paint session
}
break;
=20
Now all of these functions are documented either in the Win32 SDK =
help file previously mentioned at =
ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe site.
=20
Of course there's always the definitive source at Microsoft's MSDN =
site: http://msdn.microsoft.com/library/ where you'll find all of the =
info from the Win32 help file and then some.
=20
I would suggest that the person trying to figure out how to plot =
pixels should pick up an introductory book to programming Win32 in C/C++ =
(Charles Petzold did a marvelous job in Programming Windows 95; it's C & =
C++ (but avoids MFC), explains all about how to use the Windows API for =
drawing), and then come back when he runs into a problem...
=20
Dave
|
|
From: Christiaan S. <ck...@ia...> - 2001-11-06 08:03:14
|
Then you can put graphics in your applications without having the end user be required to have the libraries on their machine! -----Original Message----- From: mi...@ju... <mi...@ju...> To: dev...@li... <dev...@li...> Date: Monday, November 05, 2001 10:25 PM Subject: [Dev-C++] Drawing a line >There has been a lot of discussion concerning this in the mailing list. >If one hasn't familiarized themselves with Direct X, Open GL, etc, why >would one want to put a pixel on a screen? What good would that do? It >doesn't sound like a worthwhile venture. >________________________________________________________________ >GET INTERNET ACCESS FROM JUNO! >Juno offers FREE or PREMIUM Internet access for less! >Join Juno today! For your FREE software, visit: >http://dl.www.juno.com/get/web/. > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Chris H. <fie...@ya...> - 2001-11-06 00:29:29
|
Whenever I attempt to put stuff in the .rc file of a project, I receive parse errors like the one on line 4 of this code:
#include "resource.h"
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "(text)"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",ID_OK,174,18,50,14
PUSHBUTTON "(text)",ID_TECHSUPPORT, 174, 35, 50, 14
GROUPBOX "(text)",IDC_STATIC, 7, 7, 225, 52
CTEXT "(text)"
END
Anyone know how to build .rc files in dev correctly? Please reply with info, thanks.
Fierytycoon
---------------------------------
Do You Yahoo!?
Find a job, post your resume on Yahoo! Careers. |