dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(13) |
2
(19) |
3
(28) |
4
(10) |
|
5
(2) |
6
(6) |
7
(9) |
8
(16) |
9
(14) |
10
(11) |
11
(7) |
|
12
(2) |
13
(9) |
14
(12) |
15
(6) |
16
(12) |
17
(12) |
18
(4) |
|
19
(8) |
20
(3) |
21
(3) |
22
(4) |
23
(8) |
24
(17) |
25
(16) |
|
26
(14) |
27
(10) |
28
(29) |
29
(28) |
30
(5) |
31
(15) |
|
|
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 |
|
From: <ten...@ne...> - 2003-10-25 12:42:25
|
I don't see anything wrong in your code. See what happens if you rewrite it in another source. >I don't remember about iostream, but C output primitives are >line-buffered: the output will appear only if you include a '\n' into the >output string. > > No, that's not needed. >I don't know whether it's so or not in C++, but I remember there's a flush >method somewhere in the ostream or ios class. Try searching for it on >MSDN: it sends every output you have in your buffer to screen. > It's endl. > >Bye, Ferdinando > > >------------------------------------------------------- >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: Matt K. <sy...@as...> - 2003-10-25 11:24:11
|
This may seem trivial, but I'm having troubling finding a clear answer through just searching on the net. My question is: In the following scenario where you are using STL stack or vector container with a class object, ie: stack<board> moves; if you do something like: moves.push( thismove ); Does thismove get copied or is it passed into the stack by reference? In other words, if I am dynamically allocating thismove, should I be worrying about deallocating (freeing) it at a later point? Or does pop() call the deconstructor on the object for you? Thank you! |
|
From: P.D. v. Z. <pa...@my...> - 2003-10-25 09:39:54
|
Hi, Returning an STL container from a function is valid, but it will give you a performance decrease. Every time you call this function, a new container is created, filled, and then returned, upon which the entire container gets copied over to the destination (element by element). Can't really recommend a better way to solve it though, I usually lay my designs out differently :) Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Matt Kerr Sent: Friday, October 24, 2003 11:17 AM To: dev...@li... Subject: [Dev-C++] Another newbie question about fn's returning STL containers I'm generating a stack of custom board class objects, and was wondering what the proper way to do this is (this is all for a board game-- tic-tac-toe in this case). What I have is a board member function called Generate_Moves that returns a stack of boards (ie. stack<board> ) of new possible selections. In the calling fn, I have a passed in variable of type board called state and do this: stack<board> moves; moves = state.Generate_Moves( p ); // p is the player whose turn it is Is this valid? Or should I be making "moves" a pointer, and then return a pointer to the new stack from Generate_Moves (and call delete on it when I'm done ? ). I was thinking that the way I have it right now is going to lose the "moves" stack in memory and cause a leak because it will add another lost guy every time the containing fn is called.... Implementing this minimax algorithm for tic-tac-toe was so much simpler in LISP :( ------------------------------------------------------- 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: Matt K. <sy...@as...> - 2003-10-25 06:00:49
|
I'm generating a stack of custom board class objects, and was wondering what the proper way to do this is (this is all for a board game-- tic-tac-toe in this case). What I have is a board member function called Generate_Moves that returns a stack of boards (ie. stack<board> ) of new possible selections. In the calling fn, I have a passed in variable of type board called state and do this: stack<board> moves; moves = state.Generate_Moves( p ); // p is the player whose turn it is Is this valid? Or should I be making "moves" a pointer, and then return a pointer to the new stack from Generate_Moves (and call delete on it when I'm done ? ). I was thinking that the way I have it right now is going to lose the "moves" stack in memory and cause a leak because it will add another lost guy every time the containing fn is called.... Implementing this minimax algorithm for tic-tac-toe was so much simpler in LISP :( |
|
From: Daniel K. O. <dan...@ya...> - 2003-10-25 01:53:53
|
First: GCC uses AT&T syntax by default, but it accepts Intel as well.
You can set which syntax you want to use by default, with the "-masm=x"
compiler option, where "x" can be:
"att" -> for AT&T syntax
"intel" -> for Intel syntax (d'oh....)
So, with -masm=intel you can write:
---
char hello[] = "Hello";
__asm(
"mov ebx, _hello \n"
"more intel asm here... \n"
);
---
And with -masm=att (the default) you can do:
---
char hello[] = "Hello";
__asm(
"mov $_hello, %ebx \n"
"more at&t asm here... \n"
);
---
If you want to mix ASM code, you can use ".intel_syntax" and
".att_syntax" to change the syntax for the next lines. Just don't
forget to change it back to the default syntax:
Option -> -masm=att
---
char hello[] = "Hello";
__asm(
".intel_syntax \n"
"mov ebx, _hello \n"
"more intel asm here... \n"
".att_syntax \n" // back to default syntax
);
---
Also, check:
http://www.codeproject.com/useritems/gccasm.asp
And also the Dev-Cpp's FAQ.
And please, learn how to use Google, I found all this in the first
results page. ;)
Daniel K. O.
Bjorn Terelius wrote:
> I'm using visual studio for this project, so it may be the wrong place
> for the question.
> Anyway, when I try compile code like:
>
>
> char hello[] = "Hello";
> __asm
> {
> mov ebx, offset hello
> ...
> }
>
> the compiler fail and respond "error C2415: improper operand type"
> This only occur when I'm trying to use offset
>
> Does anyone recognize this?
> I havn't found any helpful information on MSDN or by searching with
> Google
>
> Thanks
> Bjorn Terelius
|
|
From: <or...@vp...> - 2003-10-25 00:56:49
|
Bjorn Terelius wrote: > I'm using visual studio for this project, so it may be the wrong place > for the question. This is the worst place for that question. -- Greetings, Balázs |