dev-cpp-users Mailing List for Dev-C++ (Page 42)
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: Chris M. <lor...@gm...> - 2007-12-05 22:32:54
|
On Dec 5, 2007 1:10 PM, Jessica Chen <jes...@gm...> wrote: > My whole projects have two thread. > one thread is reading RS-232 communication port. > another thread is Win32 GUI to display the data got from RS-232 > communication port. > > The design I had is: > Buttons on Win32 GUI. > So when the button is clicked, the corresponding data is read from RS232 > thread, and display in the GUI thread. > > BUT I want to have a constantly updated display. That is, there is NO > button to trigger the data update. > When the data of RS232 thread is updated, my display of GUI thread need to > be updated. > What should I design? > > My consideration for the design is: > add a constant interval timer to trigger the data update. > but how to implement it? > and do you have any other good idea? A commonly used technique is to have the GUI thread check the reader thread every X miliseconds. This requires that you use a mutex to lock the data while it's being read, otherwise you might incur the wrath of undefined behavior when reading memory that's currently being written to. What if you had a dual-core CPU, and you managed to send a read request exactly when you sent a write request? Something tells me that's not possible because of the mutexes in the lower-level implementation, but it would be interesting to see which request the memory controller disregards. I'm not sure how to implement a mutex in a Win32 thread, however, pthreads is only a wrapper on top of Win32, so it can be done (I didn't notice any special code in the pthreads sources when I glossed over them). -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot |
From: Jessica C. <jes...@gm...> - 2007-12-05 21:47:49
|
Yep...that is what I need. Thanks so much. I got what I really want by your suggestion. Here is that part of code which works fine. :-) BOOL CALLBACK DlgProc1(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_INITDIALOG: SetTimer(hwnd, 1, 500, NULL); return TRUE; case WM_TIMER: switch(wParam) { case 1: DlgEvent(hwnd); break; } break; case WM_COMMAND: switch(wParam) { case IDOK: DestroyWindow(hwnd); return TRUE; } break; case WM_DESTROY: KillTimer(hwnd,1); PostQuitMessage(0); break; } // end of 'switch' for msg return FALSE; } On Dec 5, 2007 4:07 PM, Rick Robinson <rro...@it...> wrote: > I believe your looking for the SetTimer function and trap the WM_TIMER > message in your callback. > > Rick > > Jessica Chen wrote: > > in Unix, we can use setitimer() to set interval timer. > > thus, when the timer expires, an SIGALRM is sent out. > > > > i don't know if there's similar timer setting in Win32? > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.503 / Virus Database: 269.16.14/1172 - Release Date: > 12/5/2007 8:41 AM > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > 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: Jessica C. <jes...@gm...> - 2007-12-05 21:11:03
|
My whole projects have two thread. one thread is reading RS-232 communication port. another thread is Win32 GUI to display the data got from RS-232 communication port. The design I had is: Buttons on Win32 GUI. So when the button is clicked, the corresponding data is read from RS232 thread, and display in the GUI thread. BUT I want to have a constantly updated display. That is, there is NO button to trigger the data update. When the data of RS232 thread is updated, my display of GUI thread need to be updated. What should I design? My consideration for the design is: add a constant interval timer to trigger the data update. but how to implement it? and do you have any other good idea? |
From: Rick R. <rro...@it...> - 2007-12-05 21:07:25
|
I believe your looking for the SetTimer function and trap the WM_TIMER message in your callback. Rick Jessica Chen wrote: > in Unix, we can use setitimer() to set interval timer. > thus, when the timer expires, an SIGALRM is sent out. > > i don't know if there's similar timer setting in Win32? > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > ------------------------------------------------------------------------ > > _______________________________________________ > 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 > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.14/1172 - Release Date: 12/5/2007 8:41 AM > |
From: Jessica C. <jes...@gm...> - 2007-12-05 21:00:57
|
in Unix, we can use setitimer() to set interval timer. thus, when the timer expires, an SIGALRM is sent out. i don't know if there's similar timer setting in Win32? |
From: Axel B. <axe...@ya...> - 2007-12-04 17:07:24
|
In the hpp the line:=0A void Meow () {std::cout << "Meow.\n"; // inli= ne=0Aneeds '};' on the end of line=0A void Meow () {std::cout << "Meo= w.\n";}; // inline=0A=0AAdditional Dev-C++ give me errors on those lines:= =0A cout << "Frisky is a cat who is ";=0A cout << Frisky.GetAge() << = " years old.\n";=0A cout << "Now Frisky is "=0A=0Ayou need to put std::c= out not cout (i just resolve the error this way ^_^ )=0A std::cout << "F= risky is a cat who is ";=0A=0A std::cout << Frisky.GetAge() << " years o= ld.\n";=0A=0A std::cout << "Now Frisky is "=0A=0ABest regards with C++.= =0ABye.=0A=0A=0A=0A=0A Los referentes m=C3=A1s importantes en compra/ = venta de autos se juntaron:=0ADemotores y Yahoo!=0AAhora comprar o vender t= u auto es m=C3=A1s f=C3=A1cil. Vist=C3=A1 ar.autos.yahoo.com/ |
From: <rus...@ao...> - 2007-12-04 16:31:40
|
Hi, I must be missing something. I looked through the book and am 99% that the code's correct (teach yourself c++ in 24hrs by Jesse Liberty). The program is listed on pages 125-126. However when I try to compile it I get the 'Cat::Cat(int)' has already been declared and a parse error at the end of the input. I'm stumped. The two files are in the zip file. http://rhzenvironmental.com/header.zip ________________________________________________________________________ More new features than ever. Check out the new AOL Mail ! - http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003 |
From: Per W. <pw...@ia...> - 2007-11-29 15:03:26
|
"The book" and "p. 120". It sounds like you are talking about a specific book, but you are not mentioning which. Now, that makes _me_ a bit confused :) No, the private members may not be accessed by any code lines outside of the class. So, if you rename them, or change the data structures for storing that data, then you know that no code outside of the class will fail or need to be modified. If you make changes to public members, then there may be users that expects the original names/behaviour of these members. /pwm On Thu, 29 Nov 2007 rus...@ao... wrote: > > > > > > I'm a bit confused on the > private vs public aspects of member data. The book states that by > making it private clients won't need to worry about how it's stored or > computed (p. 120). However doesn't that same premise hold true for the public > members as well? > > ?What are the advantages of private member data? > > > > > > > > Thanks, > > > Russ > ________________________________________________________________________ > More new features than ever. Check out the new AOL Mail ! - http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003 > |
From: Wobien <roo...@pl...> - 2007-11-29 14:44:34
|
Which book do you mean? The interface of a class to the clients is defined by the declaration of the public members, and what the public members are supposed to do. You can change the implementation of the public members without changing the interface to the clients, but not their declaration. If you make functions and data members private you can change their declaration without changing the interface. Wobien ----- Original Message ----- From: rus...@ao... To: dev...@li... Sent: Thursday, November 29, 2007 3:12 PM Subject: [Dev-C++] Question about Classes: Public vs. Private. I'm a bit confused on the private vs public aspects of member data. The book states that by making it private clients won't need to worry about how it's stored or computed (p. 120). However doesn't that same premise hold true for the public members as well? What are the advantages of private member data? Thanks, Russ More new features than ever. Check out the new AOL Mail! ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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: <rus...@ao...> - 2007-11-29 14:12:46
|
I'm a bit confused on the private vs public aspects of member data. The book states that by making it private clients won't need to worry about how it's stored or computed (p. 120). However doesn't that same premise hold true for the public members as well? ?What are the advantages of private member data? Thanks, Russ ________________________________________________________________________ More new features than ever. Check out the new AOL Mail ! - http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003 |
From: angel d. <sci...@ho...> - 2007-11-28 17:38:46
|
How can i windows sockets to auto-sign-in on any web page that uses user na= me, and passwords? For example: mail.live.com? What kind of request i have to send to Web Page server so that i can be log= -in? _________________________________________________________________ Your smile counts. The more smiles you share, the more we donate.=A0 Join i= n. www.windowslive.com/smile?ocid=3DTXT_TAGLM_Wave2_oprsmilewlhmtagline= |
From: Jessica C. <jes...@gm...> - 2007-11-28 16:31:26
|
Not a big problem, do these: (1) in the top of ur code, add "#define _WIN32_IE 0x0600" (2) in porject->porject options->parameters->linker, add c:\dev-cpp\lib\libcomctl32.a Then it should work fine. On Nov 28, 2007 9:11 AM, Wobien <roo...@pl...> wrote: > Hello, > I would like to use the Windows control List View. > MSDN gives me the following code snippet to prepare the use of the > WC_LISTVIEW class: > > INITCOMMONCONTROLSEX icex; > // Ensure that the common control DLL is loaded. > icex.dwSize = sizeof(INITCOMMONCONTROLSEX); > icex.dwICC = ICC_LISTVIEW_CLASSES; > InitCommonControlsEx(&icex); > > I copied this into my program. > > Also, MSDN gives the following Function Information for > InitCommomControlsEx > : > > Minimum DLL Versioncomctl32.dll version 4.70 or later > Header: commctrl.h > Import library: comctl32.lib > Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet > Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 > > I included commctrl.h and added libcomctrl32 > > When compiling i get a linker error: undefined reference to > InitCommonControlsEx@4 > > Is this a version problem? Or have i missed anything? > > Wobien > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > 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: Wobien <roo...@pl...> - 2007-11-28 16:03:04
|
Hallo Uwe, Ok, now it compiles! Thank you. Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 4:13 PM Subject: AW: [Dev-C++] Using ListView Hello Wobien, I've looked into one of my projects, I've used the lib comctl32 and not libcomctrl32 Uwe -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:43 An: Uwe...@gm... Cc: dev-cpp-users-list Betreff: Re: [Dev-C++] Using ListView Hello Uwe, Thanks for your suggestion. I tried it, but i still get the same error. As it is a linker error i expect the problem to be in the linker settings, or in the version of libcomctrl32.a Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 3:24 PM Subject: AW: [Dev-C++] Using ListView As far as I remember, you have to define internetexplorer version by defining the _WIN32_IE flag before including commctrl.h: #ifdef __GNUC__ #define _WIN32_IE 0x0500 #endif #include <commctrl.h> -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:12 An: dev-cpp-users-list Betreff: [Dev-C++] Using ListView Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >>from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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: Wobien <roo...@pl...> - 2007-11-28 14:43:28
|
Hello Uwe, Thanks for your suggestion. I tried it, but i still get the same error. As it is a linker error i expect the problem to be in the linker settings, or in the version of libcomctrl32.a Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 3:24 PM Subject: AW: [Dev-C++] Using ListView As far as I remember, you have to define internetexplorer version by defining the _WIN32_IE flag before including commctrl.h: #ifdef __GNUC__ #define _WIN32_IE 0x0500 #endif #include <commctrl.h> -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:12 An: dev-cpp-users-list Betreff: [Dev-C++] Using ListView Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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: Wobien <roo...@pl...> - 2007-11-28 14:11:46
|
Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien |
From: Per W. <pw...@ia...> - 2007-11-26 14:10:14
|
Your program should only call srand() once! If you call it before every all to rand(), then very bad things will happen. time() has a return resolution of 1 second, so you may then only produce one random number / second. Byt, you don't et any true random numbers from srand() + rand(). The sequence of calls from rand() is pseudo-random. Many calls to srand() may not be used, since the rand() function isn't guaranteed to produce a reasonable number distribution from multiple seeds. Why do you need "pure random" numbers? I hope this hasn't anything to do with cryptography. If it does, then you better stop now since cryptography requires cryptographically strong random numbers - and if you know what they are, you would not play along with srand() + rand :) /pwm On Mon, 26 Nov 2007, Andr=E9 Mac=E1rio Barros wrote: > Dear Users, > > I=B4m working with srand/rand functions > to generate random values. > > I have three functions that call rand() > and these functions are defined inside a > .cpp file that belongs to a project. > > The file with main(), that calls these > three functions, is another file that also > belongs to this project. The calls are made > inside a fast loop. > > The first attempt to generate pure random > numbers was using srand((unsigned) time(&t)) > at in the file with main(). t is a variable > of type time_t. I got the same sequence of > results, that is, rand() did behave as no > previous srand() was called. > > > The second attempt to generate pure random > numbers was using srand((unsigned) time(&t)) > inside the three functions at the first time > the functions were called. The results obtained > presented the following behaviour: > a) running directly: the same results; > b) debuging step-by-step (with time intervals > greater than 1 second): I got the expected > results. I credit this to variable t, which > could get different arguments. > > My question is: > If my attempts were correct, in the point of view > of achieve my goal, does anybody know how can I > solve this? :-))) > > Regards > Andre > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.7/1151 - Release Date: 25/11/20= 07 > 16:24 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: <and...@su...> - 2007-11-26 13:19:31
|
Dear Users, I´m working with srand/rand functions to generate random values. I have three functions that call rand() and these functions are defined inside a .cpp file that belongs to a project. The file with main(), that calls these three functions, is another file that also belongs to this project. The calls are made inside a fast loop. The first attempt to generate pure random numbers was using srand((unsigned) time(&t)) at in the file with main(). t is a variable of type time_t. I got the same sequence of results, that is, rand() did behave as no previous srand() was called. The second attempt to generate pure random numbers was using srand((unsigned) time(&t)) inside the three functions at the first time the functions were called. The results obtained presented the following behaviour: a) running directly: the same results; b) debuging step-by-step (with time intervals greater than 1 second): I got the expected results. I credit this to variable t, which could get different arguments. My question is: If my attempts were correct, in the point of view of achieve my goal, does anybody know how can I solve this? :-))) Regards Andre No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.7/1151 - Release Date: 25/11/2007 16:24 |
From: <ml...@cc...> - 2007-11-26 09:42:09
|
Hallo I am a new user of dev-c++ with a specific need. I have some old code written in a mix of c and fortran 77 (using native = windows compilers). I know that mingw does support g77, and I would like to know whether = this mix=20 can be compiled through dev-c++. Thanks Michael |
From: Per W. <pw...@ia...> - 2007-11-25 02:09:58
|
And why should it be? Are you sure that you don't mean SEEK_SET or SEEK_END? By the way: Don't talk about Dev-C++ when you mean the compiler. I assume that you mean the MinGW compiler, but people have been using Dev-C++ with Cygwin, Borland or other compilers too... /pwm On Sat, 24 Nov 2007, angel dario wrote: > > what is the #define of SEEK_SEND, i see that in Dev-C++ compiler is not d= eclared/ > _________________________________________________________________ > You keep typing, we keep giving. Download Messenger and join the i=92m In= itiative now. > http://im.live.com/messenger/im/home/?source=3DTAGLM |
From: angel d. <sci...@ho...> - 2007-11-25 01:39:32
|
=20 what is the #define of SEEK_SEND, i see that in Dev-C++ compiler is not dec= lared/ _________________________________________________________________ You keep typing, we keep giving. Download Messenger and join the i=92m Init= iative now. http://im.live.com/messenger/im/home/?source=3DTAGLM= |
From: angel d. <sci...@ho...> - 2007-11-23 19:03:00
|
How do i login automatically to MSN hotmail using wininet? I have been sending requests to the login paget but still i don't get throu= gh it? _________________________________________________________________ You keep typing, we keep giving. Download Messenger and join the i=92m Init= iative now. http://im.live.com/messenger/im/home/?source=3DTAGLM= |
From: Per W. <pw...@ia...> - 2007-11-23 07:16:31
|
Why would you need to? It is part of MFC. Does it hurt to use std::string? /pwm On Thu, 22 Nov 2007, angel dario wrote: > How can i use CString on Dev-C++? > _________________________________________________________________ > Connect and share in new ways with Windows Live. > http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007 |
From: Per W. <pw...@ia...> - 2007-11-23 07:15:46
|
Don't know why it is missing. Maybe too new in relation to the creation of the include file. Should be: #define INTERNET_FLAG_NEED_FILE 0x00000010 // need a file for this request /pwm On Thu, 22 Nov 2007, angel dario wrote: > Why INTERNET_FLAG_NEED_FILE is not in the Dev-C++ wininet.h header??? > > _________________________________________________________________ > Put your friends on the big screen with Windows Vista=AE + Windows Live= =99. > http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=3DTXT_TAGLM= _CPC_MediaCtr_bigscreen_102007 |
From: angel d. <sci...@ho...> - 2007-11-23 04:24:50
|
How can i use CString on Dev-C++? _________________________________________________________________ Connect and share in new ways with Windows Live. http://www.windowslive.com/connect.html?ocid=3DTXT_TAGLM_Wave2_newways_1120= 07= |
From: angel d. <sci...@ho...> - 2007-11-23 04:08:57
|
Why INTERNET_FLAG_NEED_FILE is not in the Dev-C++ wininet.h header??? =20 _________________________________________________________________ Put your friends on the big screen with Windows Vista=AE + Windows Live=99. http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=3DTXT_TAGLM_C= PC_MediaCtr_bigscreen_102007= |