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
(5) |
2
(4) |
3
(2) |
|
4
(4) |
5
(10) |
6
|
7
|
8
(2) |
9
(2) |
10
|
|
11
(5) |
12
(4) |
13
(14) |
14
|
15
(11) |
16
(1) |
17
|
|
18
|
19
|
20
(2) |
21
(10) |
22
(3) |
23
(5) |
24
|
|
25
(2) |
26
(3) |
27
|
28
(5) |
29
(3) |
30
|
|
|
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= |
|
From: Rafael M. <so...@gm...> - 2007-11-22 21:48:46
|
Hi List Sorry if this become a double post, but Im not sure if the first one land correctly. Well... I have a client udp socket connection and wish to retrieve the client ip address. I will print now the code structure and further information's will come below. SOCKET sock; SOCKADDR_IN sins; int sinsize=sizeof(sins); WSADATA wsa; WSAStartup(MAKEWORD(2,0),&wsa); sins.sin_family=AF_INET; sins.sin_addr.s_addr=inet_addr(ip); sins.sin_port=htons(port); sock=socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in stLclAddr; int addrLen = sizeof(struct sockaddr_in); int rVal = getsockname(sock,(struct sockaddr FAR *)&stLclAddr,&addrLen); //int rVal = getsockname(sock,(sockaddr *)&stLclAddr,&addrLen); char szIP[MAX_PATH] = "\0"; sprintf(szIP, "%s",inet_ntoa(stLclAddr.sin_addr)); WriteLog(_T(szIP));//writelog just dump the value to a file or somewhere else rVal = getpeername(sock,( struct sockaddr FAR *)&stLclAddr,&addrLen); //rVal = getpeername(sock,(sockaddr *)&stLclAddr,&addrLen); sprintf(szIP, "%s",inet_ntoa(stLclAddr.sin_addr)); WriteLog(_T(szIP)); When i run the follow code, the output sin_addr is always 204.204.204.204, I don't know why. I cant bind the socket because i like the sysop api give-me the in port (to recvfrom), and i just don't know witch interface on the client machine have Internet connection (and don't like to search. let the sysop do their jobs alone). After know that ip and port, i need to sniff this interface(that job is already done, and need the ip input information to watch the inbound packets and pick, from the packet header, my outside ip:port. with that, I can have a listener on the client and set up ip and port in the server sending a command by UPD). Thanks in advance. -- Regards Rafael Menezes |
|
From: Rafael M. <so...@gm...> - 2007-11-22 19:30:52
|
Hi List I have a client udp socket connection and wish to retrieve the client ip address. I will print now the code structure and further information's will come below. SOCKET sock; SOCKADDR_IN sins; int sinsize=sizeof(sins); WSADATA wsa; WSAStartup(MAKEWORD(2,0),&wsa); sins.sin_family=AF_INET; sins.sin_addr.s_addr=inet_addr(ip); sins.sin_port=htons(port); sock=socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in stLclAddr; int addrLen = sizeof(struct sockaddr_in); int rVal = getsockname(sock,(struct sockaddr FAR *)&stLclAddr,&addrLen); //int rVal = getsockname(sock,(sockaddr *)&stLclAddr,&addrLen); char szIP[MAX_PATH] = "\0"; sprintf(szIP,"%s",inet_ntoa(stLclAddr.sin_addr)); WriteLog(_T(szIP));//writelog just dump the value to a file or somewhere else rVal = getpeername(sock,(struct sockaddr FAR *)&stLclAddr,&addrLen); //rVal = getpeername(sock,(sockaddr *)&stLclAddr,&addrLen); sprintf(szIP,"%s",inet_ntoa(stLclAddr.sin_addr)); WriteLog(_T(szIP)); When i run the follow code, the output sin_addr is always 204.204.204.204, I don't know why. I cant bind the socket because i like the sysop api give-me the in port (to recvfrom), and i just don't know witch interface on the client machine have Internet connection (and don't like to search. let the sysop do their jobs alone). After know that ip and port, i need to sniff this interface(that job is already done, and need the ip input information to watch the inbound packets and pick, from the packet header, my outside ip:port. with that, I can have a listener on the client and set up ip and port in the server sending a command by UPD). Thanks in advance. -- Regards Rafael Menezes |
|
From: Benjamin B. <be...@we...> - 2007-11-22 00:11:20
|
I'm currently looking for a somewhat more flexible associative container
than std::map that can do the following:
std::map< keyT, valT, lessOp > m;
keyT K;
otherT O; // lessOp and operator== were defined to work "between" keyT
_and_ otherT, see below
... fill the map ...
m[K] = valT("blubb");
assert( K == T ); // lets say K and T were build the way this assertion
always holds
it = m.find[O]; // bang
std::map can't do that, just because find( const keyT& ) is definde only
for keyT
->compiler error
but, as for the concept of an associative container it should be enough
that a otherT can be comparet to the maps keyT,
or will this lead to further problems?
some template members like
template< typname otherT >
...iterator... find( const otherT& ) { ... }
in the map template definition should do? probably not all of the map
implemention must be rewritten.
but if it works, someone must have done it before, and I don't want to
invent the map again :)
thanks for your ideas ...
####################################
// defined before code above:
// comparing struct:
struct lessOp {
bool operator()( const keyT& k, const otherT& o );
bool operator()( const otherT& o, const keyT& k );
bool operator()( const keyT& k, const keyT& k );
}
//... and a functions to test for equality
bool operator==( const keyT& k, const otherT& o );
bool operator==( const otherT& k, const keyT& o );
bool operator==( const keyT& k, const keyT& o );
####################################
|
|
From: Fernando L. <fer...@gm...> - 2007-11-21 19:07:25
|
Be careful with programming small processors like the PIC, they do not have enough stack depth to support deeply nested calls or large argument lists. = I wouldn't recommend using C++, stick to C. And generally, there is no "operating system". Best regards, Fernando On Nov 21, 2007 3:47 PM, Pink Boy <da...@ya...> wrote: > Andr=E9 Mac=E1rio Barros sez, > > > Sorry, but I didn=B4t understand the stack realease sfuff... > > Local variables are generally allocated on the functions stack > frame. Once you return from a function the local variables are no > longer valid. A pointer to a local variable is no longer valid > once you've returned from the function. Thus you need to take a > lot of care when referencing local variables via pointers. > > > -->Suppose I make a lot of malloc=B4s during the > > execution of my program. Then I finish the execution (without > > "freeing" the memory). > > > -->Does all the "malloced" memory return to > > the Operating System and can be considered available again? > > With Winders, probably. Other OS's probably not. The real issue is > that not keeping track of memory that has been allocated via malloc > is bad programming practice as it leads directly to memory leaks. > > Mr Foo > > > ------------------------------------------------------------------------- > 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 > --=20 Fernando Lichtschein li...@fi... |
|
From: Pink B. <da...@ya...> - 2007-11-21 18:47:21
|
Andr=E9 Mac=E1rio Barros sez, > Sorry, but I didn=B4t understand the stack realease sfuff... Local variables are generally allocated on the functions stack frame. Once you return from a function the local variables are no longer valid. A pointer to a local variable is no longer valid once you've returned from the function. Thus you need to take a lot of care when referencing local variables via pointers. =20 > -->Suppose I make a lot of malloc=B4s during the > execution of my program. Then I finish the execution (without > "freeing" the memory). > -->Does all the "malloced" memory return to > the Operating System and can be considered available again? With Winders, probably. Other OS's probably not. The real issue is that not keeping track of memory that has been allocated via malloc is bad programming practice as it leads directly to memory leaks. Mr Foo |
|
From: <and...@su...> - 2007-11-21 17:04:57
|
I don´t know the size of your "heap-patience", people :-)) But... -When I do a malloc for a simple vector, can´t I discover if its memory is shared with other lockable stuff? -Does the Operating System decide by itself to do this kind of sharing mode, or do I need to do it through my program? Thinking in another way... -This "driver or similar" belongs to my application, doesn´t it? If it´s true, I know if my program is using this kind of lockable memory, don´t I? (I think it´s the last) Thank you!!! Andre -----Mensagem original----- De: Rafael Menezes [mailto:so...@gm...] Enviada em: quarta-feira, 21 de novembro de 2007 13:19 Para: André Macário Barros Assunto: Re: [Dev-C++] RES: RES: RES: Question about software design Hi André Yes and No. That depends of how you have allocated that memory. Some functions can alloc shared memory (Yes Per, that is exactly (RAM disk) what am I doing in that app). This ones you must free by hand or they will keep in there until a system restart or something like (Memory clean tools... i don't know. Maybe some vb script with a mychar(999999) inside ;). I think Per have just released a better text in that subject. Here comes: "When you run an application under Win32, the C or C++ library contains the heap implementation (malloc(), calloc(), new, ...) and requests memory from the OS. The OS keeps track of all memory pages it gives to the application. It has to, since the processor is running in protected mode with a Memory Management Unit (MMU) to map between logical and physical memory addresses. Whenever the application ends, the OS can release all memory pages that was mapped to the application. Only if the memory page is shared with a driver or similar, and the driver has the page locked, will the OS have to keep the memory page until the lock is released." That answer your question (with a big YES if the next sentence doesn't fit to your application.), and explain my app behavior. Regards Rafael No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.2/1142 - Release Date: 20/11/2007 17:44 |
|
From: <and...@su...> - 2007-11-21 15:48:26
|
Sorry, but I didn´t understand the stack realease sfuff... -->Suppose I make a lot of malloc´s during the execution of my program. Then I finish the execution (without "freeing" the memory). -->Does all the "malloced" memory return to the Operating System and can be considered available again? Thank you! Andre -----Mensagem original----- De: Rafael Menezes [mailto:so...@gm...] Enviada em: quarta-feira, 21 de novembro de 2007 10:02 Para: André Macário Barros Assunto: Re: [Dev-C++] RES: RES: Question about software design Hi André. I'm not asking about some particular language skill's, and if you are using ANSI C, that is great. Not much people see that ANSI C is faster than anything else (with one exception to assembly, but assembly... oh joy...), and can be used in many places of the code in order to increase speed and memory usage. Keep using that everywhere it fits. About that automatic memory release, well... the memory will be cleaned up in most cases, but you cant count on that. Sometimes (each time you ask for a new memory space that is bigger than the actual remaining stack on the SO, reserved to your application), you can just see your memory leaking and don't have a thread to kill and stop this beast. The normal memory management functions supplied with C compilers do not provide garbage collection. free and calloc still can be useful in your code. Regards Rafael No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.2/1142 - Release Date: 20/11/2007 17:44 |