[Dev-C++] help unsubscribe please. Thanks.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mark L. <mar...@qu...> - 2006-02-26 22:57:30
|
-----Original Message----- From: dev...@li... = [mailto:dev...@li...]=20 Sent: Saturday, 25 February 2006 3:23 PM To: dev...@li... Subject: Dev-cpp-users digest, Vol 1 #2696 - 8 msgs Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Re: double and float ?? (Per Westermark) 2. Re: "Anti-spam" mails from UOL (Daniel K. O.) 3. Re: double and float ?? (Daniel K. O.) 4. Re: "Anti-spam" mails from UOL (Per Westermark) 5. Re: double and float ?? (Per Westermark) 6. Re: "Anti-spam" mails from UOL (Daniel K. O.) 7. Using mysql/mysql.h (KrowniX ()--()) 8. Re: XP Manifest and Win32 controls (Thierry Pierron) --__--__-- Message: 1 Date: Fri, 24 Feb 2006 11:12:44 +0100 (CET) From: Per Westermark <pw...@ia...> To: Titi Anggono <tia...@ya...> cc: Dev-cpp user <dev...@li...> Subject: Re: [Dev-C++] double and float ?? No, you can't use an old c++ manual (or actually C manual). It must be a broken manual. The runtime library must know the physical size of the variable to be = able to initialize it. For printf() you send a value. The standard says that functions without = a prototype - or variadric functions - should have the variables upgraded from float to double on call. This makes printf() support float and double. However, scanf() doesn't take a float our double. It takes a pointer to = a float or double. To perform the assign - it has to look at the "formatting" parameter to decide what it should assign to. %f specifies float %lf specifies double %Lf specifies long double (when supported) /Per W On Thu, 23 Feb 2006, Titi Anggono wrote: > Hi all, > > I tried the following code > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > #include <stdio.h> > #include <stdlib.h> > #include <conio.h> > > main(){ > double a,b; > scanf("%f",&a); > printf("\n"); > scanf("%f",&b); > printf("\n\n%f %f",a,b); > getch(); > exit(EXIT_SUCCESS); > } > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > I enter any numbers and the output is > 0.0000 0.00000 > but, when I change the "double" with "float", the code > gives me the right answer. > > Is there any explanation why I can't use "double" with > "%f" in dev-cpp ? Maybe I use old c++ manual lol. How > can I print the "double" number ? > > Titi > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting = language > that extends applications into web and mobile media. Attend the live = webcast > and join the prime developer group breaking into this new coding = territory! > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 > _______________________________________________ > 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 > --__--__-- Message: 2 Date: Fri, 24 Feb 2006 09:03:00 -0300 From: "Daniel K. O." <dan...@gm...> To: Per Westermark <pw...@ia...> CC: dev...@li... Subject: Re: [Dev-C++] "Anti-spam" mails from UOL Per Westermark escreveu: > Can I assume that a lot of other people gets "anti-spam" registration > mails from: > AntiSpam UOL <mr-...@uo...> > whenever you post to this list? > > If so, please mail their ab...@uo... address and tell them what = you > think about expecting mailing list participants to register whenever = any > of their email users subscribe to a list just so that _we_ don't have = to > see _their_ spam mails... > =20 Unfortunately I think this should be handled by the list admins here.=20 The AntiSpam UOL is a service provided for users that opt in for the=20 service, so the fault is solely on the user. He is either too stupid, or = was trying to piss us off. I believe UOL policy doesn't allow them to simply turn off the AntiSpam=20 service, and considering that their anti-spam software is dumb enough=20 that it can't identify messages from mailing lists (that IMHO should be=20 silently ignored by their filter), it will be a long battle to convince=20 them to 1) bother a user that pays money, 2) fix their stupid filtering=20 software or 3) convince them that the user is purposely damaging an=20 entire community. Yeah, I think unsubscribing him from the list is faster. If we only had=20 some admins around here... maybe we can try contacting the SF staff=20 directly and see if they can remove this user from this mailing list. --- Daniel K. O. --__--__-- Message: 3 Date: Fri, 24 Feb 2006 09:11:07 -0300 From: "Daniel K. O." <dan...@gm...> To: Per Westermark <pw...@ia...> CC: Dev-cpp user <dev...@li...> Subject: Re: [Dev-C++] double and float ?? Per Westermark escreveu: > %Lf specifies long double (when supported) > =20 Which the MS runtime doesn't seem to support... from my experiences (I=20 don't have the MS compiler, I just asked somebody else to compile some=20 code and send me the program output and some assembly dumps), VC++=20 "demotes" long doubles to plain doubles in printf. But now that you mentioned %Lf, I would like to confirm with anyone here = who has VC++; what does happen when trying to printf a long double on=20 VC++? For me, it looks like VC++ tries a "magic" conversion in variadic=20 functions, but if it is true, it may break legit code (when trying to=20 va_arg a long double where a plain double was put). --- Daniel K. O. --__--__-- Message: 4 Date: Fri, 24 Feb 2006 13:43:21 +0100 (CET) From: Per Westermark <pw...@ia...> To: "Daniel K. O." <dan...@gm...> cc: dev...@li... Subject: Re: [Dev-C++] "Anti-spam" mails from UOL My aim was to get a number of people to show their irritation by sending complaints to ab...@uo... and telling them that _they_ are explicitly spamming users. On the mailing list side, there is nothing sourceforge can do, since = they never see these "anti-spam" mails. UOL have a very broken system that can't correctly detect = list-originating mails, despite the huge number of extra fields available in the mail header: ---------- Precedence: bulk List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>, <mailto:dev...@li...?subject=3Dunsubscribe= > List-Id: Dev-C++ users mailing list = <dev-cpp-users.lists.sourceforge.net> List-Post: <mailto:dev...@li...> List-Help: <mailto:dev...@li...?subject=3Dhelp> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>, <mailto:dev...@li...?subject=3Dsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=3Ddev-cpp-users> ---------- If nothing else, they should at least make sure that the source domain lists.sourceforge.net was specifically known. It represents a = significant number of mailing lists and whatever policy UOL might have, that policy = is towards their end users, not towards the mailing lists, i.e. they can = not expect to enforce their policies on us by expecting thousands - or tens = of thousands of registrations in their system. The single action of registering to a mailing list is an acceptance from the end user to consider the list as an accepted sender of mails. /Per W On Fri, 24 Feb 2006, Daniel K. O. wrote: > Per Westermark escreveu: > > Can I assume that a lot of other people gets "anti-spam" = registration > > mails from: > > AntiSpam UOL <mr-...@uo...> > > whenever you post to this list? > > > > If so, please mail their ab...@uo... address and tell them what = you > > think about expecting mailing list participants to register whenever = any > > of their email users subscribe to a list just so that _we_ don't = have to > > see _their_ spam mails... > > > Unfortunately I think this should be handled by the list admins here. > The AntiSpam UOL is a service provided for users that opt in for the > service, so the fault is solely on the user. He is either too stupid, = or > was trying to piss us off. > I believe UOL policy doesn't allow them to simply turn off the = AntiSpam > service, and considering that their anti-spam software is dumb enough > that it can't identify messages from mailing lists (that IMHO should = be > silently ignored by their filter), it will be a long battle to = convince > them to 1) bother a user that pays money, 2) fix their stupid = filtering > software or 3) convince them that the user is purposely damaging an > entire community. > > Yeah, I think unsubscribing him from the list is faster. If we only = had > some admins around here... maybe we can try contacting the SF staff > directly and see if they can remove this user from this mailing list. > > > --- > Daniel K. O. > > --__--__-- Message: 5 Date: Fri, 24 Feb 2006 13:48:51 +0100 (CET) From: Per Westermark <pw...@ia...> To: "Daniel K. O." <dan...@gm...> cc: Dev-cpp user <dev...@li...> Subject: Re: [Dev-C++] double and float ?? VC++ doesn't have an long double data type. A long double variable will = be 8 byte large, just as a double. In short, there will be no problem = trying to send a long double parameter to a variadic function. Both sender and receiver will assume 8 bytes storage size. It is only code that relies on extra precision and/or range of a long double that will have problems. For example a numeric algorithm using a numerically unstable method of solving an equation might diverge with double numbers while it always have enough precision to converge on a solution with true long doubles. /Per W On Fri, 24 Feb 2006, Daniel K. O. wrote: > Per Westermark escreveu: > > %Lf specifies long double (when supported) > > > > Which the MS runtime doesn't seem to support... from my experiences (I > don't have the MS compiler, I just asked somebody else to compile some > code and send me the program output and some assembly dumps), VC++ > "demotes" long doubles to plain doubles in printf. > > But now that you mentioned %Lf, I would like to confirm with anyone = here > who has VC++; what does happen when trying to printf a long double on > VC++? For me, it looks like VC++ tries a "magic" conversion in = variadic > functions, but if it is true, it may break legit code (when trying to > va_arg a long double where a plain double was put). > > > > --- > Daniel K. O. > > --__--__-- Message: 6 Date: Fri, 24 Feb 2006 10:00:01 -0300 From: "Daniel K. O." <dan...@gm...> To: Per Westermark <pw...@ia...> CC: dev...@li... Subject: Re: [Dev-C++] "Anti-spam" mails from UOL Per Westermark escreveu: > My aim was to get a number of people to show their irritation by > sending complaints to ab...@uo... and telling them that > _they_ are explicitly spamming users. > > On the mailing list side, there is nothing sourceforge can do, since = they > never see these "anti-spam" mails. > =20 Well, we can at least try. :) https://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1438044&gro= up_id=3D1&atid=3D200001 And yes, I'll try to contact UOL too - let's hope they listen (and do=20 something about it). --- Daniel K. O. --__--__-- Message: 7 Date: Sat, 25 Feb 2006 00:01:51 +0000 (GMT) From: "KrowniX \(\)--\(\)" <kr...@ya...> To: dev...@li... Subject: [Dev-C++] Using mysql/mysql.h --0-1291976635-1140825711=3D:28970 Content-Type: text/plain; charset=3Diso-8859-1 Content-Transfer-Encoding: 8bit Hello, =20 How I use the mysql library in dev-c++?? these are the error messages = that i have. =20 ompilador: Default compiler Executando g++.exe... g++.exe "C:\resources\source_codes\mysql.cpp" -o = "C:\resources\source_codes\mysql.exe" -lmysqlclient -lsocket -lnsl = -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" = -I"C:\Dev-Cpp\include\c++\3.4.2\backward" = -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" = -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" = -L"C:\Dev-Cpp\lib" -lm=20 In file included from C:/Dev-Cpp/include/mysql/mysql.h:57, from C:\resources\source_codes\mysql.cpp:2: C:/Dev-Cpp/include/mysql/mysql_com.h:155: error: `SOCKET' does not name = a type C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: `SOCKET' was not = declared in this scope C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected = primary-expression before "const" C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected = primary-expression before "unsigned" C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: expected = primary-expression before "unsigned" C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: initializer expression = list treated as compound expression Execu=E7=E3o terminada =09 --------------------------------- Yahoo! doce lar. Fa=E7a do Yahoo! sua homepage. --0-1291976635-1140825711=3D:28970 Content-Type: text/html; charset=3Diso-8859-1 Content-Transfer-Encoding: 8bit <div>Hello,</div> <div> </div> <div>How I use the mysql library = in dev-c++?? these are the error messages that i have.</div> = <div> </div> <div>ompilador: Default compiler<BR>Executando = g++.exe...<BR>g++.exe "C:\resources\source_codes\mysql.cpp" -o = "C:\resources\source_codes\mysql.exe" -lmysqlclient -lsocket = -lnsl -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" = -I"C:\Dev-Cpp\include\c++\3.4.2\backward" = -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" = -I"C:\Dev-Cpp\include\c++\3.4.2" = -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -lm <BR>In file = included from = C:/Dev-Cpp/include/mysql/mysql.h:57,<BR> &nb= sp; from = C:\resources\source_codes\mysql.cpp:2:<BR>C:/Dev-Cpp/include/mysql/mysql_= com.h:155: error: `SOCKET' does not name a = type<BR>C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: `SOCKET' was = not declared in this scope<BR>C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected = primary-expression before = "const"<BR>C:/Dev-Cpp/include/mysql/mysql_com.h:299: error: expected = primary-expression before = "unsigned"<BR>C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: expected = primary-expression before = "unsigned"<BR>C:/Dev-Cpp/include/mysql/mysql_com.h:300: error: = initializer expression list treated as compound expression</div> = <div>Execu=E7=E3o terminada<BR></div><p> <hr size=3D1>=20 Yahoo! doce lar. <a = href=3D"http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://br.ya= hoo.com/homepageset.html">Fa=E7a do Yahoo! sua homepage.</a> --0-1291976635-1140825711=3D:28970-- --__--__-- Message: 8 Date: Sat, 25 Feb 2006 00:09:03 -0400 From: "Thierry Pierron" <tpi...@gm...> To: dev...@li... Subject: [Dev-C++] Re: XP Manifest and Win32 controls Argh, found the answer ... You have to link your prog against libcomctl32.a, includes a file "commctrl.h" and call InitCommonControls() before everything else. I suppose for supporting Vista, we'll have to kill a chicken and drink it's blood when the moon is full, while using black magic for programming :-( 2006/2/23, Thierry Pierron <tpi...@gm...>: > Hi all, > > I'm just trying to use Win32 common controls in Dev-cpp with "Support > Windows XP themes" activated in project's options. Actually, I simply > use the Win32 application template, where I added following lines of > code, just after main window creation : > > HWND button =3D3D CreateWindowEx( > 0, > "button", "Cancel", > WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, > 100, 200, 100, 20, > hwnd, (HMENU) IDOK, > hThisInstance, > NULL > ); > > Actually, that code works (i see push button) when XP styles are > desactivated. When I activate that option, the CreateWindowEx fails > with error "The class does not exist". > > Sorry, but I'm new to win32 programming, and I have to maintain a old > app. If someone has a little idea of what can solve that issue, that > would be fine ! > -- > Thierry Pierron > -- Thierry Pierron --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users Digest |