dev-cpp-users Mailing List for Dev-C++ (Page 415)
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: Ricardo R. <ri...@po...> - 2003-03-24 20:22:06
|
It works perfectly with the version 4 of Dev-Cpp where the file "conio.c" is included in the "include-folder" of dev-cpp. I unknow if the version 5 of Dev-Cpp contains this file. Anyway, you can try to copy the attached file "conio.c" to the "include-folder" of your dev-cpp folder and recompile your program. Ricardo. |
|
From: Ioannis V. <iv...@em...> - 2003-03-24 19:51:50
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of KFC
> Sent: Monday, March 24, 2003 3:42 AM
> To: dev...@li...
> Subject: [Dev-C++] problems after upgrade
>
>
> Hi all,
> I upgrate my Devcpp to the newest version. I found that so many
> function doesn't work.
>
> For the simplest example, I wrote
>
> #include <iostream>
>
> void main(void)
int main(void)
> {
> std::cout << "hello";
> }
>
> and compile. IT FAILS!!!! and report that something wrong
> with the iostream.
> What is going on?
Perhaps you have to proceed with a clean install.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: KFC <KFC...@et...> - 2003-03-24 17:27:22
|
|
From: Ricardo R. <ri...@po...> - 2003-03-24 16:29:33
|
You can handle the window with the same functions as in the borland
compiler.
As an example you can try with this small piece of C-code:
*********************
#include <stdio.h>
#include <conio.c>
#include <stdlib.h>
int main()
{
window(10,10,500,500);
system("PAUSE");
return 0;
}
*********************
where (10,10) is the screen point where the window is attached by its
left top corner and (500,500) are the coordinates of the right bottom corner
and controls the size of the window. Be aware that there are certain limits
to the possible values of the window size.
hope this can be useful for your programming.
Ricardo.
|
|
From:
<VP...@am...> - 2003-03-24 15:13:25
|
> Hello !!!!! > who can help me???? > when use borland compilers i use the funtion "windown" (conio.h) to > create a text-mode window . > How can i do to get the same result using dev C++ 5.0 ???? > becouse the GNU don't have this funtion!!!!! or no ??? > any information can help!!!!! > > thanks > > Vinny > vp...@am... > > Brasilia-Brazil > |
|
From: A.L. M. <A.L...@rc...> - 2003-03-24 08:49:28
|
On 23 Mar 2003 at 19:11, School wrote:
> Help.
>
> Starting Tuesday, I'm teaching an introductory course in C++. I recently
> upgraded to WinXP Pro and now I can't compile code.
>
> The error message is "iostream.h: No such file or directory."
You need to add this:
It seems that the compiler always mentions this statement:
>> F:/Dev-Cpp/include/c++/iosfwd:44:28: bits/c++config.h: No such file or
>> directory
Have you tried to include this in your Tools->Compiler Options-
>Directories->C++ Includes tab
F: \Dev-Cpp\include\c++\mingw32
..it is where the bits/c++config.h resides :)
Hope this helps
This mail is a natural product. The slight variations in
spelling and grammar enhance its individual character and
beauty and in no way are to be considered flaws or defects.
|
|
From: KFC <KFC...@et...> - 2003-03-24 01:40:05
|
Hi all,
I upgrate my Devcpp to the newest version. I found that so many
function doesn't work.
For the simplest example, I wrote
#include <iostream>
void main(void)
{
std::cout << "hello";
}
and compile. IT FAILS!!!! and report that something wrong with the iostream.
What is going on?
By the way, I find that the function of importing VC program doesn't
very work. Although it can import a project, but compile fail.
|
|
From: KFC <KFC...@et...> - 2003-03-24 01:34:09
|
hi all, Can anyone tell me how to create a dll with gcc in devcpp? What is a "def" file for? How can I specify the functions I want to export instead of exporting all by --export-all-symbols |
|
From: Ioannis V. <iv...@em...> - 2003-03-24 00:58:04
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf Of School > Sent: Monday, March 24, 2003 2:11 AM > To: dev...@li... > Subject: [Dev-C++] DevC++ & XP >=20 >=20 > Help. >=20 > Starting Tuesday, I'm teaching an introductory course in C++.=20 > I recently > upgraded to WinXP Pro and now I can't compile code. >=20 > The error message is "iostream.h: No such file or directory." >=20 > I have set the Directories in the Compiler Options and=20 > Project Options to > the correct locations. I've completed the updates with Microsoft. >=20 > What else can I try? Unfortunately you have lot to learn before you teach C++... A good book = that I suggest for everyone who has some basic knowledge of C++, is "The C++ Programming Language" 3rd Edition or Special Edition by Bjarne = Stroustrup (the creator of C++). Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Zodiaq <zo...@ac...> - 2003-03-24 00:47:35
|
Hello School and all Dev-C++ users, Monday, March 24, 2003, 1:11:12 AM, School wrote as follows: S> Help. S> Starting Tuesday, I'm teaching an introductory course in C++. I recently S> upgraded to WinXP Pro and now I can't compile code. S> The error message is "iostream.h: No such file or directory." S> I have set the Directories in the Compiler Options and Project Options to S> the correct locations. I've completed the updates with Microsoft. S> What else can I try? Most common mistake, and yet quite hard to track is that mingw MUST be in directory path WITHOUT spaces in name... although DevC++ works fine within any directory, main compiler system often have troubles with it... also check how exactly line for compiles looks like... maybe it will give you some clues... S> Bill Hyatt -- regards, Zodiaq |
|
From: School <bh...@mo...> - 2003-03-24 00:11:35
|
Help. Starting Tuesday, I'm teaching an introductory course in C++. I recently upgraded to WinXP Pro and now I can't compile code. The error message is "iostream.h: No such file or directory." I have set the Directories in the Compiler Options and Project Options to the correct locations. I've completed the updates with Microsoft. What else can I try? Bill Hyatt |
|
From:
<VP...@am...> - 2003-03-23 06:53:36
|
Hello !!!!! who can help me???? when had used borland compilers i used to the funtion "windown" (conio.h) to create a text-mode window . How can i do to get the same result using dev C++ 5.0 ???? becouse the GNU don't have this funtion!!!!! or no ??? any information can help!!!!! thanks Vinny vp...@am... Brasilia-Brazil |
|
From: David M. <ci...@ya...> - 2003-03-22 23:32:20
|
I am writing a (hopefully) portable socket class wrapper
for use with a MUD server I am helping develop. We would
like to take all the conversions of different types to
c-style strings (wont have to worry about it elsewhere in
the code) which are used for both *NIX-style and Winsock
send function. With recieving it will be up to the rest of
the code to figure out what the user means (and what types
to put it in). I am looking for a way for the user's of
this class to be able to do something like this:
//exp_gain = integer varible with the value 600
client.send("You gained %d experience", exp_gain);
Or Better Yet:
client << "You Gained " << exp_gain << " experience";
Output:
You gained 600 eexperience
Does anyone know a good tutorial or short paper. The group
I am working with is a mix of both die-hard C programmers
and C++ programmers. To minimise problems (more complaints)
later on I would like to implement both so which ever style
the programmer is used to is avalible.
Thanks in Advance
=====
Signed
David Mcken
Life Sucks
Live with it
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
|
|
From: Per W. <pw...@ia...> - 2003-03-22 22:12:23
|
Actually, there isn't much you can do. - Modify the receiving function to take a 64-bit parameter. Don't worry about portability since you are anyway using a Win32-specific function to retrieve the value. - Modify the receiving function to take a scaled (kB maybe) value. - Modify function to take two params. High + low. Not a nice solution. There really isn't any other way since real partitions normally are larger than 4GB, i.e. need more than 32-bit to represent size. /Per W On Sat, 22 Mar 2003, Hammamur Rahman wrote: > Hi, thank you for your help! > > I have now used the QuadPart, I written a test program to see what > values I get with using the variables with the QuadPart and without. > All of my partition output the same size, but one outputs different, > i.e. the uliFree is returning different values to uliFree.QuadPart. I > think I know what the problem is. The partition outputting different > values has got more then 4 gigs free, all the other partitions have got > less then 2 gigs free. > > Could you please tell me how I can fix this, I tried to follow the > Microsoft site, but got more confused. > > Thank You! > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Per > Westermark > Sent: 22 March 2003 11:38 > To: Hammamur Rahman > Cc: dev...@li... > Subject: Re: [Dev-C++] GetDiskFreeSpaceEx Question > > You might use the uliFreeCaller.QuadPart value, which is a 64-bit > integer. > > Or, if you know that the information is < 4GB, you have a 32-bit value > in > uliFreeCaller.LowPart. > > Note that since a HD normally is larger than 4 GB, you may not assume > that > you might send the information to a function that only accepts a 'normal > integer value'. > > A little improvement would be to Rewrite your function to assume space > in > kB units, and then you call it with: > MyFunction(unsigned(uliFreeCaller.QuadPart / 1024)); > > That would be safe up to 4TB disks. > > /Per W > > > On Sat, 22 Mar 2003, Hammamur Rahman wrote: > > > > > > > Hi, I'm using the following function: > > > > GetDiskFreeSpaceEx(&szDrives[i], &uliFreeCaller, &uliTotal, &uliFree) > > > > > > > > The uliFreeCaller, uliTotal, uliFree are all of type ULARGE_INTEGER. > Now I > > need these values as normal integer so I could pass these values to > another > > function which only accepts normal integer values. How could I > convert them > > to normal integer, do I have to cast them. Please help. > > > > > > > > Thank You! > > > > > > > > > > _________________________________________________________________ > > Use MSN Messenger to send music and pics to your friends > > http://messenger.msn.co.uk > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by:Crypto Challenge is now open! > > Get cracking and register here for some mind boggling fun and > > the chance of winning an Apple iPod: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > > _______________________________________________ > > 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 > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > 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 > |
|
From: David M. <dem...@uw...> - 2003-03-22 21:53:52
|
Could someone point me to a tutorial on using mySQL with Dev-C++? I'd like to use it for a project, and I haven't taught myself PHP yet. I'd prefer not to use mySQL++, as it's C++ which I haven't learned yet. One thing I noticed: there doesn't appear to be a libmysql.a in the \lib\ directory. I use Dev-C++ 4.9.7.0 and gcc 3.2 And an unrelated note: How come gcc 3.2 has a *normal* conio.h, yet the conio.c file is still hanging around? By normal I mean it contains getche(), kbhit(), ungetch(), putch(), etc. instead of the gotoxy(), textcolor() etc. |
|
From: Hammamur R. <HRa...@ho...> - 2003-03-22 19:58:46
|
Hi, thank you for your help! I have now used the QuadPart, I written a test program to see what values I get with using the variables with the QuadPart and without. All of my partition output the same size, but one outputs different, i.e. the uliFree is returning different values to uliFree.QuadPart. I think I know what the problem is. The partition outputting different values has got more then 4 gigs free, all the other partitions have got less then 2 gigs free. Could you please tell me how I can fix this, I tried to follow the Microsoft site, but got more confused. Thank You! -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Per Westermark Sent: 22 March 2003 11:38 To: Hammamur Rahman Cc: dev...@li... Subject: Re: [Dev-C++] GetDiskFreeSpaceEx Question You might use the uliFreeCaller.QuadPart value, which is a 64-bit integer. Or, if you know that the information is < 4GB, you have a 32-bit value in uliFreeCaller.LowPart. Note that since a HD normally is larger than 4 GB, you may not assume that you might send the information to a function that only accepts a 'normal integer value'. A little improvement would be to Rewrite your function to assume space in kB units, and then you call it with: MyFunction(unsigned(uliFreeCaller.QuadPart / 1024)); That would be safe up to 4TB disks. /Per W On Sat, 22 Mar 2003, Hammamur Rahman wrote: > > > Hi, I'm using the following function: > > GetDiskFreeSpaceEx(&szDrives[i], &uliFreeCaller, &uliTotal, &uliFree) > > > > The uliFreeCaller, uliTotal, uliFree are all of type ULARGE_INTEGER. Now I > need these values as normal integer so I could pass these values to another > function which only accepts normal integer values. How could I convert them > to normal integer, do I have to cast them. Please help. > > > > Thank You! > > > > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://messenger.msn.co.uk > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > 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 > ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ 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 |
|
From: Luigi S. <gi...@li...> - 2003-03-22 19:07:46
|
Hi guys, I understand that being part of this thread on makefiles, you want to keep me up-to-date with all messages, but remember: as a member of the list I get a copy of the messages which you send to the list; so, if you also add me to the "To" field or the "Cc" field, I'll get an extra copy ;-) Couldn't you explain your mail client that you wish to reply to the list only? Thank you -- >> gisan >> |
|
From: Asko K. <ask...@sc...> - 2003-03-22 17:56:18
|
There's a couple of nice features in C99 that I'd like to have as=20 'standard' in all compilers: - variable arguments in macros (__VA_ARGS__) is very handy, when = you=20 need it - 'inline' keyword is welcome also in C (although i've never = used it=20 there..) - ...what else? Well, at least one nice feature that is. *grin* As to the non-C++ compliency, yes, sure, wrong pill. It should be like this: plain ANSI C (89) extended C (gcc et.al) embedded C++ full C++ ...in the perfect world, each stage would be a subset of the following. The only thing i _really_ miss is __VA_ARGS__ in Visual C++. And a working debugger in Dev-Cpp. :) -ak Thomas Tijerina kirjoittaa torstaina, 20. maaliskuuta 2003, kello 02:49: > i just did a quick search to find out apparently its a revised editon=20= > of C in 1999, that is so..... "revised" (aka diffrent and IMQuickHO!,=20= > fudged up, but o well) its not compatable with C++, to find out more=20= > Ioannis do a search to find code tut's or somthing, if not ill help=20 > you im fairly good at looking for, obscure things.... if not or if=20 > sombodys intrested to find out WTF this is heres a link: > http://www.kuro5hin.org/story/2001/2/23/194544/139 > > =A0Ioannis Vranos <iv...@em...> wrote: > > Has anyone learned C99? I want just to check C99 penetration on the=20 > public > (I suspect its towards 0). > > > > > Regards, > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > 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 > > > <image.tiff> > > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!= |
|
From: Ioannis V. <iv...@em...> - 2003-03-22 17:47:37
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...]=20 > Sent: Saturday, March 22, 2003 12:03 PM > To: Thomas Tijerina > Cc: Ioannis Vranos; Dev-C++ Mailing List > Subject: Re: [Dev-C++] C99 >=20 >=20 > I think you must have misspelled 'fudged up'. I personally think they > really misselected between the red pill and the blue pill=20 > while writing > the standard... >=20 > In a world where all C compilers ONLY supports C99, I would=20 > make sure to > use a different language. I have discussed extensively with some people of the committee and they = are very fanatics for C99. They do not understand for example that a _Bool = built in type being 0 and 1 (and not true or false) is stupidity. The worst part. Many (most?) of C99 committee people are also members of = C++ committee... Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <iv...@em...> - 2003-03-22 15:10:35
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Pierre Raoul > Sent: Saturday, March 22, 2003 11:51 AM > To: dev...@li... > Cc: Jaap de Wolff > Subject: RE:RE: [Dev-C++] typedef for a class > > > Jaap, > > Thank you for your answer. This point escaped me. I found > some very interresting "workarounds", > > www.gotw.ca/gotw/079.htm > > http://msdn.microsoft.com/library/en-us/dndeepc/html/deep08032000.asp > > but they need to modyfy the code in each place where > smart_ptr appears. > > As I don't want to search all the "smart_ptr" occurrences, I > will stay with the "#define" solution. > > Regards > > Pierre Raoul A template class definition is not a type. For example: template <class T> class myclass { }; You can't do typedef myclass whatever; But of course you can do: typedef myclass<int> whatever; myclass<int> IS a type. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Per W. <pw...@ia...> - 2003-03-22 10:39:45
|
You might use the uliFreeCaller.QuadPart value, which is a 64-bit integer. Or, if you know that the information is < 4GB, you have a 32-bit value in uliFreeCaller.LowPart. Note that since a HD normally is larger than 4 GB, you may not assume that you might send the information to a function that only accepts a 'normal integer value'. A little improvement would be to Rewrite your function to assume space in kB units, and then you call it with: =09MyFunction(unsigned(uliFreeCaller.QuadPart / 1024)); That would be safe up to 4TB disks. /Per W On Sat, 22 Mar 2003, Hammamur Rahman wrote: > > > Hi, I=92m using the following function: > > GetDiskFreeSpaceEx(&szDrives[i], &uliFreeCaller, &uliTotal, &uliFree) > > > > The uliFreeCaller, uliTotal, uliFree are all of type ULARGE_INTEGER. Now= I > need these values as normal integer so I could pass these values to anoth= er > function which only accepts normal integer values. How could I convert t= hem > to normal integer, do I have to cast them. Please help. > > > > Thank You! > > > > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://messenger.msn.co.uk > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > 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 > |
|
From: Pierre R. <pie...@wa...> - 2003-03-22 09:50:09
|
Jaap, Thank you for your answer. This point escaped me. I found some very = interresting "workarounds",=20 www.gotw.ca/gotw/079.htm http://msdn.microsoft.com/library/en-us/dndeepc/html/deep08032000.asp=20 but they need to modyfy the code in each place where smart_ptr appears. As I don't want to search all the "smart_ptr" occurrences, I will stay = with the "#define" solution.=20 Regards Pierre Raoul=20 > -----Original Message----- > From: Jaap de Wolff [mailto:wo...@Ne...] > Sent: Friday, March 21, 2003 3:28 PM > To: 'Pierre Raoul' > Subject: RE: [Dev-C++] typedef for a class >=20 >=20 > What you do wrong is that you try to make a template to a type. > The CPtr template is a template, and n o t a class, so you can't > typedef a new type to it. > You can use a define, while define is a preprocessor trick, not a = compiler > trick. >=20 > > -----Original Message----- > > From: Pierre Raoul [mailto:pie...@wa...] > > Sent: Friday, March 21, 2003 11:37 AM > > To: Sourceforge. Net Dev-Cpp-Users@Lists. > > Subject: [Dev-C++] typedef for a class > >=20 > >=20 > > Hello, > >=20 > > I'm using Dev-Cpp 4.9.7.0, GCC 3.2, MingW 2.0.0.3, Msys=20 > > 1.0.7, under Windows Me. > >=20 > > I'd like to use a new type of smart pointer but without=20 > > changing all the reference in the code. I try the code below: > >=20 > > - in a header file cptr.h, I have: > >=20 > > template < class T > =20 > > class CPtr // Counted Pointer =20 > > { =20 > > [...] > > }; // CPtr=20 > >=20 > > - and in an other file, I put: > >=20 > > [...] > > #include <string> > > #include "include/cptr.h" // smart pointer CPtr > >=20 > > [...] > > using std::string ; > >=20 > > typedef CPtr smart_ptr ; > > //#define smart_ptr CPtr > > typedef smart_ptr< string > StringPtr ; > >=20 > > [...] > >=20 > > The compiler gives a "syntax error before ;" for the line=20 > > "define CPtr smart_ptr;". > > Everything is OK if I use "#define CPtr smart_ptr".=20 > >=20 > > I don't see where is the point with this error? Any idea? > >=20 > > Thanks > >=20 > > Pierre Raoul > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > >=20 |
|
From: Hammamur R. <hra...@ho...> - 2003-03-22 09:38:13
|
Hi, Im using the following function: GetDiskFreeSpaceEx(&szDrives[i], &uliFreeCaller, &uliTotal, &uliFree) The uliFreeCaller, uliTotal, uliFree are all of type ULARGE_INTEGER. Now I need these values as normal integer so I could pass these values to another function which only accepts normal integer values. How could I convert them to normal integer, do I have to cast them. Please help. Thank You! _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk |
|
From: Per W. <pw...@ia...> - 2003-03-22 09:04:11
|
I think you must have misspelled 'fudged up'. I personally think they really misselected between the red pill and the blue pill while writing the standard... In a world where all C compilers ONLY supports C99, I would make sure to use a different language. /Per W On Wed, 19 Mar 2003, Thomas Tijerina wrote: > > i just did a quick search to find out apparently its a revised editon of C in 1999, that is so..... "revised" (aka diffrent and IMQuickHO!, fudged up, but o well) its not compatable with C++, to find out more Ioannis do a search to find code tut's or somthing, if not ill help you im fairly good at looking for, obscure things.... if not or if sombodys intrested to find out WTF this is heres a link: > http://www.kuro5hin.org/story/2001/2/23/194544/139 > Ioannis Vranos <iv...@em...> wrote:Has anyone learned C99? I want just to check C99 penetration on the public > (I suspect its towards 0). > > > > > Regards, > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! |
|
From: Daniel G. <sp...@ho...> - 2003-03-22 06:56:08
|
mode needs a type.
You are passing !mode as a parameter to a function aren't you? You can only
use ! in a conditional statement. So you might do
// Your new function
bool CheckMode(bool mode)
{
return mode;
};
// In your code, in the function call pass in the result of ChekMode
mode = SDL_WM_GrabInput( !CheckMode(mode) );
OR better still, try the following:
switch (mode)
{
case: SDL_GRAB_ON
//... do something
break;
default:
//... something else
}
Any help?
void HotKey_ToggleGrab(void)
{
SDL_GrabMode mode;
printf("Ctrl-G: toggling input grab!\n");
mode = SDL_WM_GrabInput(SDL_GRAB_QUERY);
if ( mode == SDL_GRAB_ON ) {
printf("Grab was on\n");
} else {
printf("Grab was off\n");
}
mode = SDL_WM_GrabInput(!mode); /* Error occurs here */
if ( mode == SDL_GRAB_ON ) {
printf("Grab is now on\n");
} else {
printf("Grab is now off\n");
}
}
>From: Ken Mortimer <gr...@ta...>
>To: dev...@li...
>Subject: [Dev-C++] Can't use not-operator with non-bool?
>Date: Sat, 22 Mar 2003 00:04:41 -0500
>
>Hey all,
>I've been having problems compiling a test program that comes with the CVS
>build of SDL (for those of you familiar with it)... My problem is that a
>function in the source uses the not-operator ( ! ) on non-bool datatypes...
>Can C++ not use this operator on non-bool?
>
>void HotKey_ToggleGrab(void)
>{
>SDL_GrabMode mode;
>
>printf("Ctrl-G: toggling input grab!\n");
>mode = SDL_WM_GrabInput(SDL_GRAB_QUERY);
>if ( mode == SDL_GRAB_ON ) {
>printf("Grab was on\n");
>} else {
>printf("Grab was off\n");
>}
>mode = SDL_WM_GrabInput(!mode); /* Error occurs here */
>if ( mode == SDL_GRAB_ON ) {
>printf("Grab is now on\n");
>} else {
>printf("Grab is now off\n");
>}
>}
>
>The errors reported are as follows:
>
>C:\SDL-1.2.6\test\testwm.c
>[Warning] In function `void HotKey_ToggleGrab()':
>
>96
>C:\SDL-1.2.6\test\testwm.c
>cannot convert `bool' to `SDL_GrabMode'
>
>C:\Documents and Settings\Granoblastic Man\My Documents\Dev-C++
>Projects\Makefile.win
>[Build Error] [../../../../SDL-1.2.6/test/testwm.o] Error 1
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open! Get
>cracking and register here for some mind boggling fun and the chance of
>winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>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
_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.co.uk
|