dev-cpp-users Mailing List for Dev-C++ (Page 301)
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: Neszt T. <ne...@ss...> - 2003-10-27 07:57:15
|
Hello!
Is there any way, to activate an edit button?
EDITTEXT IDC_STAT_L,6,51,26,12,ES_CENTER | ES_AUTOHSCROLL |
ES_NUMBER
I mean, my aim is the cursor blinking in that edittext.
Regards,
Neszt Tibor
|
|
From: David M. <ci...@ya...> - 2003-10-26 23:15:49
|
How would I go about creating a windows service given a ANSI compliant console program? __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ |
|
From: Michal M. <mol...@se...> - 2003-10-26 23:10:33
|
Matthews wrote: > perfectly. My personal favourite is SDL though, because Allegro requires > to much configuration, IMHO. ?? you only need to add -lalleg to Linker options when compiling allegro program, I don't think it can be easier :-) |
|
From: Matthews <dem...@uw...> - 2003-10-26 22:23:56
|
SDL: www.libsdl.org Allegro: I forget, try looking for liballeg on Google CLDGDI: Don't know Any of these packages are available through WebUpdate in your Dev-C++ folder. They install easily and the sample program should compile perfectly. My personal favourite is SDL though, because Allegro requires to much configuration, IMHO. At 03:56 PM 26/10/2003 -0600, Ahmed Younis wrote: >Hi everyone, >I think this is a very important question; at least for me!!!! >I am personally not a heavy programmer, however, I use graphics in many of >the programs I write. >In order to avoid the hassle with graphics in C/C++, I usually use C/C++ to >do the bulk of the processing and then dump the output in a certain format >and then use other programs, such as gnuplot, to plot the results. >I would be very much interested to see how I can integrate everything in one >program. >I tried to find SDL, Allegro and CLGDI but was not successful in that >direction. Could you please shed more light on where to find them, how to >install them (if it needs special installation or configuration for the >compiler) and how to make sure this things is working, by providing some >examples. >I am very interested to know what works under windows and/or unix or linux >OSes. > >Thank you. >Ahmed > > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...]On Behalf Of David >McKen >Sent: Sunday, October 26, 2003 3:03 PM >To: dev...@li... >Subject: Re: [Dev-C++] a basic question about devc++ > > >Either that or SDL or Allegro. > >----- Original Message ----- >From: "Michal Molhanec" <mol...@se...> >To: <dev...@li...> >Sent: Sunday, October 26, 2003 4:56 AM >Subject: Re: [Dev-C++] a basic question about devc++ > > >> neo wrote: >> >> > how can i use graphic mode in devc++ and use the funtion like >> > line(),circle()?thx any way. >> >> you need to install CLGDI devpak for using these functions >> it is available through WebUpdate (Tools\Check for >Updates/Packages... in >menu) >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: The SF.net Donation Program. >> Do you like what SourceForge.net is doing for the Open >> Source Community? Make a contribution, and help us add new >> features and functionality. Click here: >http://sourceforge.net/donate/ >> _______________________________________________ >> Dev-cpp-users mailing list >> Dev...@li... >> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > >__________________________________ >Do you Yahoo!? >Exclusive Video Premiere - Britney Spears >http://launch.yahoo.com/promos/britneyspears/ > > >------------------------------------------------------- >This SF.net email is sponsored by: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open >Source Community? Make a contribution, and help us add new >features and functionality. Click here: http://sourceforge.net/donate/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > >------------------------------------------------------- >This SF.net email is sponsored by: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open >Source Community? Make a contribution, and help us add new >features and functionality. Click here: http://sourceforge.net/donate/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Ahmed Y. <Ahm...@xi...> - 2003-10-26 22:00:47
|
Hi everyone, I think this is a very important question; at least for me!!!! I am personally not a heavy programmer, however, I use graphics in many of the programs I write. In order to avoid the hassle with graphics in C/C++, I usually use C/C++ to do the bulk of the processing and then dump the output in a certain format and then use other programs, such as gnuplot, to plot the results. I would be very much interested to see how I can integrate everything in one program. I tried to find SDL, Allegro and CLGDI but was not successful in that direction. Could you please shed more light on where to find them, how to install them (if it needs special installation or configuration for the compiler) and how to make sure this things is working, by providing some examples. I am very interested to know what works under windows and/or unix or linux OSes. Thank you. Ahmed -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of David McKen Sent: Sunday, October 26, 2003 3:03 PM To: dev...@li... Subject: Re: [Dev-C++] a basic question about devc++ Either that or SDL or Allegro. ----- Original Message ----- From: "Michal Molhanec" <mol...@se...> To: <dev...@li...> Sent: Sunday, October 26, 2003 4:56 AM Subject: Re: [Dev-C++] a basic question about devc++ > neo wrote: > > > how can i use graphic mode in devc++ and use the funtion like > > line(),circle()?thx any way. > > you need to install CLGDI devpak for using these functions > it is available through WebUpdate (Tools\Check for Updates/Packages... in menu) > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: David M. <ci...@ya...> - 2003-10-26 21:04:26
|
Either that or SDL or Allegro. ----- Original Message ----- From: "Michal Molhanec" <mol...@se...> To: <dev...@li...> Sent: Sunday, October 26, 2003 4:56 AM Subject: Re: [Dev-C++] a basic question about devc++ > neo wrote: > > > how can i use graphic mode in devc++ and use the funtion like > > line(),circle()?thx any way. > > you need to install CLGDI devpak for using these functions > it is available through WebUpdate (Tools\Check for Updates/Packages... in menu) > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ |
|
From: Michal M. <mol...@se...> - 2003-10-26 16:59:52
|
neo wrote: > when i run the program as below,there are so many errors,i have downloaded > the CLGdiDevpak through webupdate.i really found some mistakes in the header > file <winbgi.h>,but after i correct there basic mistakes and compile it ,there > are still errors.this time i don't know what i should do.the program as > following: if you use File\New\Project...\tab Other\Console GDI than it create project which should compile OK without any winbgim.h modifications |
|
From:
<ten...@ne...> - 2003-10-26 16:49:19
|
You have to pass to the linker the options -lgdi -lbgi -mingw32 (I think
this is the order you have to pass, I remember there was an order needed
for those arguments, but I'm not sure about what it was). I deleted all
the projects I did using it, so I cannot open one to check it.
If that's not the problem try including conio.h either before or after
winbgim.
What I remember of when I used this is that sometimes it worked adding
conio after or before, or not adding, adding or not some library
options... it was a bit of mess.
neo wrote:
>when i run the program as below,there are so many errors,i have downloaded
>the CLGdiDevpak through webupdate.i really found some mistakes in the header
>file <winbgi.h>,but after i correct there basic mistakes and compile it ,there
>are still errors.this time i don't know what i should do.the program as
>following:
>
>/* name.c ... this program is quoted from Dev-cpp/Templates/consoleGdi*/
>
>#include <winbgim.h>
>
>main()
>
>{
>
> initwindow(640,480);
>
> setcolor(WHITE);
>
> circle(320,240,100);
>
> getch();
>
> closegraph();
>
> return 0;
>
>}
>
>what can i do ?i am learning C language by myself,so please say it clearly.thx
>thx thx thx thx thx thx thx thx thx....................
>
>
>
>
>
>
>--http://www.eyou.com
>--稳定可靠的电子信箱 语音邮件 移动书签 日历服务 网络存储...亿邮未尽
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The SF.net Donation Program.
>Do you like what SourceForge.net is doing for the Open
>Source Community? Make a contribution, and help us add new
>features and functionality. Click here: http://sourceforge.net/donate/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: <ir...@ar...> - 2003-10-26 16:17:09
|
Hi, I am not entirely sure if this is the solution, but maybe you should go to: Tools -> Compiler Options -> Settings -> Linker and set "Do not use standard system startup files or libraries" to "Yes" Eugene > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Maya > Sent: jueves, 23 de octubre de 2003 2:11 > To: Dev - C++ > Subject: [Dev-C++] uninclude winuser.h? > > > When I compile my program, Dev-C++ automatically include the file=20 > 'winuser.h' as well as other windows files. I don't want this, I am > not=20 creating a Windows program, but a Text program. > Another member of the mailing list, Jorge Infante, kindly suggested > me=20 to remove the winuser.h file from the '../include/' subdirectory > and=20 warned me that it was more of a trick than a solution. Later > this=20 afternoon, I had a little misunderstanding with the MS-Windows > OS; I am=20 more of a UNIX user, and I feel like I have one hand tide > behind my back > > here in the Windows world, and didn't have time to work on the > Dev-C++=20 problem. > > Anyway, what can I do to stop Dev-C++ from including 'winuser.h'? > > Thanks folks. > > --=20 > > Jorge Escalante |
|
From: neo <de...@ey...> - 2003-10-26 13:42:09
|
when i run the program as below,there are so many errors,i have downloaded
the CLGdiDevpak through webupdate.i really found some mistakes in the header
file <winbgi.h>,but after i correct there basic mistakes and compile it ,there
are still errors.this time i don't know what i should do.the program as
following:
/* name.c ... this program is quoted from Dev-cpp/Templates/consoleGdi*/
#include <winbgim.h>
main()
{
initwindow(640,480);
setcolor(WHITE);
circle(320,240,100);
getch();
closegraph();
return 0;
}
what can i do ?i am learning C language by myself,so please say it clearly.thx
thx thx thx thx thx thx thx thx thx....................
--http://www.eyou.com
--Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡
|
|
From: Michal M. <mol...@se...> - 2003-10-26 10:00:07
|
neo wrote: > how can i use graphic mode in devc++ and use the funtion like > line(),circle()?thx any way. you need to install CLGDI devpak for using these functions it is available through WebUpdate (Tools\Check for Updates/Packages... in menu) |
|
From: neo <de...@ey...> - 2003-10-26 07:26:14
|
how i can use the graphic mode in dev c++ ,and funtions like circle(),line()etc.thx. --http://www.eyou.com --Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡ |
|
From: neo <de...@ey...> - 2003-10-26 04:19:37
|
how can i use graphic mode in devc++ and use the funtion like line(),circle()?thx any way. --http://www.eyou.com --Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡ |
|
From: Ed C. <em...@to...> - 2003-10-26 00:33:00
|
That would be my suspicion, but I don't know where the problem might lie... How can I tell which of the libraries included in the Dev-C++/mingw distribution are not thread-safe? -Ed -----Original Message----- From: Per Westermark [mailto:pw...@ia...] Sent: Saturday, October 25, 2003 8:12 PM To: Ed Cottrell Cc: dev...@li... Subject: Re: [Dev-C++] (OT:) SQLExecDirect fails on good statements I would suspect either your threaded code, or that you are not linking with a thread-safe library. /Per W On Sat, 25 Oct 2003, Ed Cottrell wrote: > Hi all, > > This is probably going to be too abstract to get an answer, but here > goes: in an application I'm working on, lots (usually thousands) of > database queries are issued of the form > > "SELECT division_id FROM my_db.my_table WHERE division='var1' and > division_id = var2" > > I'm building these queries using sprintf(), then running them with > SQLExecDirect; about 99.98% of the time, this works perfectly. The > remaining .02% of queries will fail, randomly. For example, the query > "SELECT division_id FROM my_db.my_table WHERE division='FOO' and > division_id = 1" will work almost every time, but fail .02% of the > time. > > These queries are being created and executed by (a user-defined number > of) threads, but not asynchronously, and the database server is not > having any problems. As I've said, the failures are not on (or > immediately) following specific queries, but seem to be randomly > distributed throughout the thousands of queries being executing. I put > in a little error check, so that if SQLExecDirect does not return > SQL_SUCCESS, I get a display of the failed query, and I can verify > that the data is not being corrupted, I don't have any buffer > overflows, etc. The database server is MySQL-max-nt. > > I'm sorry, but I can't post full source code, for various reasons. I'm > just wondering if anybody knows why perfectly valid SQL statements > would fail, once in every 5,000 tries, when the server itself is not > being overwhelmed. > > -Ed > |
|
From: Per W. <pw...@ia...> - 2003-10-26 00:18:26
|
I would suspect either your threaded code, or that you are not linking with a thread-safe library. /Per W On Sat, 25 Oct 2003, Ed Cottrell wrote: > Hi all, > > This is probably going to be too abstract to get an answer, but here goes: > in an application I'm working on, lots (usually thousands) of database > queries are issued of the form > > "SELECT division_id FROM my_db.my_table WHERE division='var1' and > division_id = var2" > > I'm building these queries using sprintf(), then running them with > SQLExecDirect; about 99.98% of the time, this works perfectly. The remaining > .02% of queries will fail, randomly. For example, the query "SELECT > division_id FROM my_db.my_table WHERE division='FOO' and division_id = 1" > will work almost every time, but fail .02% of the time. > > These queries are being created and executed by (a user-defined number of) > threads, but not asynchronously, and the database server is not having any > problems. As I've said, the failures are not on (or immediately) following > specific queries, but seem to be randomly distributed throughout the > thousands of queries being executing. I put in a little error check, so that > if SQLExecDirect does not return SQL_SUCCESS, I get a display of the failed > query, and I can verify that the data is not being corrupted, I don't have > any buffer overflows, etc. The database server is MySQL-max-nt. > > I'm sorry, but I can't post full source code, for various reasons. I'm just > wondering if anybody knows why perfectly valid SQL statements would fail, > once in every 5,000 tries, when the server itself is not being overwhelmed. > > -Ed > |
|
From: Ed C. <em...@to...> - 2003-10-25 21:49:13
|
Hi all, =20 This is probably going to be too abstract to get an answer, but here = goes: in an application I'm working on, lots (usually thousands) of database queries are issued of the form =20 "SELECT division_id FROM my_db.my_table WHERE division=3D'var1' and division_id =3D var2" =20 I'm building these queries using sprintf(), then running them with SQLExecDirect; about 99.98% of the time, this works perfectly. The = remaining .02% of queries will fail, randomly. For example, the query "SELECT division_id FROM my_db.my_table WHERE division=3D'FOO' and division_id = =3D 1" will work almost every time, but fail .02% of the time. =20 These queries are being created and executed by (a user-defined number = of) threads, but not asynchronously, and the database server is not having = any problems. As I've said, the failures are not on (or immediately) = following specific queries, but seem to be randomly distributed throughout the thousands of queries being executing. I put in a little error check, so = that if SQLExecDirect does not return SQL_SUCCESS, I get a display of the = failed query, and I can verify that the data is not being corrupted, I don't = have any buffer overflows, etc. The database server is MySQL-max-nt. =20 I'm sorry, but I can't post full source code, for various reasons. I'm = just wondering if anybody knows why perfectly valid SQL statements would = fail, once in every 5,000 tries, when the server itself is not being = overwhelmed. =20 -Ed |
|
From: John R. <jt...@ya...> - 2003-10-25 19:23:19
|
I found a way to test the giveio.sys driver with one of my test programs. Still the same trouble I've had with other device drivers. I can write and read to the lpt port but not the com ports. Anyone have experience using a good device driver for writing to ports under Win 2000/XP? I've tried several. Some i get to only work on the ltp, and some have horrible documentation. John R --- "A. Klingenstein" <kli...@we...> wrote: > John Ramshur wrote: > > > Apparently outportb() or inportb() isn't supported > in > > Dev-cpp header files. Does anyone know what > Dev-cpp > > uses to write and read to port or memory locations > in > > C? With borland I just typed outportb(0x378, > 0xff). > > That's cause under Windows, only the kernel and > drivers are allowed to > write directly to ports. You need an additional > driver like giveio.sys > to do it for your application > > Alex > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: David M. <ci...@ya...> - 2003-10-25 19:17:45
|
That Works :) --- Michal Molhanec <mol...@se...> wrote: > David McKen wrote: > > const unsigned long prime_product = 3234846615; > > //3234846615 is the result of the above calculation. > > > > Now I get this warning. > > factor.cpp:12: warning: this decimal constant is unsigned only in > ISO > > C90 > > > > My code assumes a 32-bit system, which means an unsigned int is > > capable of storing 2^32 (4,294,967,296) which is greater then the > > number I am attempting to store in it? These are just warnings > but I > > still want to figure out why I am getting them. > > you could try: > const unsigned long prime_product = 3234846615U; __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ |
|
From: Michal M. <mol...@se...> - 2003-10-25 19:08:51
|
David McKen wrote: > const unsigned long prime_product = 3234846615; > //3234846615 is the result of the above calculation. > > Now I get this warning. > factor.cpp:12: warning: this decimal constant is unsigned only in ISO > C90 > > My code assumes a 32-bit system, which means an unsigned int is > capable of storing 2^32 (4,294,967,296) which is greater then the > number I am attempting to store in it? These are just warnings but I > still want to figure out why I am getting them. you could try: const unsigned long prime_product = 3234846615U; |
|
From: David M. <ci...@ya...> - 2003-10-25 18:53:47
|
A line in my program reads const unsigned long prime_product = 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23 * 29; When compiling in Linux (g++ 3.3.1) I get the warning factor.cpp:12: warning: integer overflow in expression I figure it is using signed integers as temporary variables so I try. const unsigned long prime_product = 3234846615; //3234846615 is the result of the above calculation. Now I get this warning. factor.cpp:12: warning: this decimal constant is unsigned only in ISO C90 My code assumes a 32-bit system, which means an unsigned int is capable of storing 2^32 (4,294,967,296) which is greater then the number I am attempting to store in it? These are just warnings but I still want to figure out why I am getting them. Thanks in Advance David McKen __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Michal M. <mol...@se...> - 2003-10-25 18:21:53
|
Matt Kerr wrote: > stack<board> moves; > > if you do something like: > > moves.push( thismove ); > > Does thismove get copied or is it passed into the stack by reference? copied > In other words, if I am dynamically allocating thismove, should I be > worrying about deallocating (freeing) it at a later point? yes, you should take a look at smart pointers for solution http://boost.org/libs/smart_ptr/smart_ptr.htm |
|
From: Maya <esc...@vi...> - 2003-10-25 17:24:44
|
Just a suggestion:
Wouldn't it be better to have the below program a bit more portable?
You can do that by replacing system("pause") with std::cin.get() ;-)
Earlier in your postings I suggested to use 'std::cout', well in your
case you don't need to any more; since you have already declare 'using
namespace std'. No harm done though, just redundancy.
The program should be working, but I can't see why it is not, however I
will throw an idea:
Test the 'iostream' by writing another program, a simple one, no
pointers, no addresses ops, etc. just a simple string i.e.
int main(){ std::cout << "COUT is working" << std::endl; return 0;}
If it works, than you know that GCC was installed properly and that the
iostream is all hunkydory. Since the program works under UNIX, which is
the all mighty of all OSs, than get rid of that Fucking poor excused of
an OS called MS-Windows. Ooops, sorry I always loose it when it comes to
that thing called MostlySuckers-Windows.
Have a good one, and if you are going to have more than one... call me, eh!
Mic wrote:
>Hello all
>
>
>
>And thanks for your mails. I'm including the code I'm trying to run on Dev-cpp (which by the way works fine on unix).
>
>The statements do not display on my DOS terminal.
>
>
>
>======================================================================
>
>#include <iostream>
>
>//using the & and * operators
>
>
>
>using namespace std;
>
>
>
>int main(){
>
>int a;
>
>int *aPtr;
>
>a=7;
>
>aPtr= &a;
>
>system ("pause");
>
>
>
>std::cout << "Hello World! \n";
>
>
>
>std::cout << "The address of a is" << &a
>
> << "\n The value of aPtr is" << aPtr;
>
> system ("pause"); // execute M$-DOS' pause command
>
> return 0;
>
>}
>
>=====================================================================
>
>
>
>
>
>_______________________________________________
>Join Excite! - http://www.excite.com
>The most personalized portal on the Web!
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The SF.net Donation Program.
>Do you like what SourceForge.net is doing for the Open
>Source Community? Make a contribution, and help us add new
>features and functionality. Click here: http://sourceforge.net/donate/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Vasilenko S. <cw...@ma...> - 2003-10-25 13:28:46
|
Hello Nathan, Saturday, October 25, 2003, 2:42:55 PM, you wrote: NS> Anyone else sick of this? Seems like sourceforge bug. I got a plenty of copies of one message in opensg mailing list with attachment of size 138563 :) That list use sourseforge hosting for mailing list too. -- Best regards, Vasilenko Serhiy mailto:cw...@ma... |
|
From: Tuukka L. <Tuu...@su...> - 2003-10-25 13:01:31
|
How to configure CVS working in sourseforge ? |
|
From: Nathan S. <str...@ke...> - 2003-10-25 12:44:38
|
Anyone else sick of this? ----- Original Message ----- From: "Santiago Palmier Campos" <San...@yd...> To: "Maya" <Esc...@ne...> Cc: "Dev - C++" <dev...@li...> Sent: Friday, October 24, 2003 6:57 PM Subject: RE: [Dev-C++] uninclude winuser.h? Hi Maya, Just a few tries... ;o) - Please double-check that you're really creating a 'Win32 console' application instead of a common 'Windows application'. - Please have in mind that if you're including 'windows.h', then 'winuser.h' is automatically included from that file. BTW, 'windows.h' must be included if you're creating a common windows application... - Removing an include file is not an option nor a solution, remember that (at least) you'll not be able to use it in the future if you remove it... Anyway, please do not remove include or lib files if you don't really know what you're exactly doing... You can lead other components to a crash... And OTOH the system is prepared to work with these files... Best regards, ~Santy -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Maya Sent: jueves, 23 de octubre de 2003 2:11 To: Dev - C++ Subject: [Dev-C++] uninclude winuser.h? When I compile my program, Dev-C++ automatically include the file 'winuser.h' as well as other windows files. I don't want this, I am not creating a Windows program, but a Text program. Another member of the mailing list, Jorge Infante, kindly suggested me to remove the winuser.h file from the '../include/' subdirectory and warned me that it was more of a trick than a solution. Later this afternoon, I had a little misunderstanding with the MS-Windows OS; I am more of a UNIX user, and I feel like I have one hand tide behind my back here in the Windows world, and didn't have time to work on the Dev-C++ problem. Anyway, what can I do to stop Dev-C++ from including 'winuser.h'? Thanks folks. -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ---------------------------------------------------------------------- ---------------- This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. No confidentiality or privilege is waived or lost by any wrong transmission. If you have received this message in error, please immediately destroy it and kindly notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Opinions, conclusions and other information in this message that do not relate to the official business of Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it. ---------------------------------------------------------------------- ---------------- ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |