dev-cpp-users Mailing List for Dev-C++ (Page 404)
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: Per W. <pw...@ia...> - 2003-04-07 11:55:38
|
No code statements outside of a function!
/Per W
On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> ----- Original Message -----
> From: "Igor Pierscinski" <igo...@po...>
> To: <dev...@li...>
> Sent: Monday, April 07, 2003 12:04 PM
> Subject: RE: [Dev-C++] syntax error driving me crazy
>
>
> Hi,
>
> Check the line(s) immediately preceding the line showing
> syntax error. Check if ';' is not missing at the end of that line.
> You can also try to rename imgs to something else and
> see if the problem still exist. If it still does not work please
> send us 10 - 15 lines preceding the first line with syntax error.
>
> Best Regards
>
> Igor Pierscinski
>
> I tried what you said, but still no luck. Here's the begining of the file=
=2E
> Thanks for your time.
>
> #define _WIN32_IE 0x0400
> #include <windows.h>
> #include <commctrl.h>
> #include "resource.h"
>
>
> /* Declare Windows procedure */
> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
>
> /* Make the class name into a global variable */
> char szClassName[ ] =3D "WindowsApp";
> HINSTANCE g_hInst;
>
> TBBUTTON image[2];
>
>
void my_init_function() {
> image[0].iBitmap=3DSTD_FILENEW;
> image[0].idCommand=3DID_FILE_NEW;
> image[0].fsState=3DTBSTATE_ENABLED;
> image[0].fsStyle=3DBTNS_BUTTON;
> image[0].dwData=3D0;
> image[0].iString=3D0;
>
> image[1].iBitmap=3DSTD_FILEOPEN;
> image[1].idCommand=3DID_FILE_OPEN;
> image[1].fsState=3DTBSTATE_ENABLED;
> image[1].fsStyle=3DBTNS_BUTTON;
> image[1].dwData=3D0;
> image[1].iString=3D0;
}
>
>
> int WINAPI
> WinMain (HINSTANCE hThisInstance,
> HINSTANCE hPrevInstance,
> LPSTR lpszArgument,
> int nFunsterStil)
> file://rest of code
>
> -----Original Message-----
> From: Vlada Djurovic [mailto:dj...@im...]
> Sent: Friday, April 04, 2003 6:12 PM
> To: Igor Pieroeci=F1ski; dev...@li...
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
>
> ----- Original Message -----
> From: "Igor Pierscinski" <igo...@po...>
> To: <dev...@li...>
> Sent: Friday, April 04, 2003 4:31 PM
> Subject: RE: [Dev-C++] syntax error driving me crazy
>
>
> Hi,
>
> Please tell us what was the first syntax error on the list.
>
> Regards
>
> Igor Pierscinski
>
>
> The first error was:
>
> 21 C:\My Documents\Prog\interface\main.cpp
> syntax error before `.'
> in the line
> imgs[0].iBitmap=3DSTD_FILENEW;
>
> and then same error occurs in every line.
>
> -----Original Message-----
> From: Vlada Djurovic [mailto:dj...@im...]
> Sent: Friday, April 04, 2003 2:46 PM
> To: Daniel Glenfield; dev...@li...
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
>
> ----- Original Message -----
> From: "Daniel Glenfield" <sp...@ho...>
> To: <dj...@im...>; <dev...@li...>
> Sent: Friday, April 04, 2003 2:25 PM
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
> >
> >
> >
> > Have you defined imgs ? Does the compiler know what members are inside
> imgs?
> >
>
> I'm not sure what you mean. imgs is declared as array of TBBUTON structur=
es,
> and if I'm right, TBBUTTON is defined in commctrl.h, which is included in=
my
> source file. The compiler didn't complain about TBBUTTON being undefined.=
I
> also linked comctl32 library. The code is the same as I found on MSDN, s=
o I
> think it should work.
>
>
> > >From: "Vlada Djurovic" <dj...@im...>
> > >To: "'DevC++ help'" <dev...@li...>
> > >Subject: [Dev-C++] syntax error driving me crazy
> > >Date: Fri, 4 Apr 2003 13:27:37 +0200
> > >
> > >Hi.
> > >Can somebody please tell me what is wrong with this peace of code? I g=
et
> > >"syntax error before '.'" in every line and can't figure out what's
> wrong.
> > >
> > >TBBUTTON imgs[2];
> > >
> > >imgs[0].iBitmap=3DSTD_FILENEW;
> > >imgs[0].idCommand=3DID_FILE_NEW;
> > >imgs[0].fsState=3DTBSTATE_ENABLED;
> > >imgs[0].fsStyle=3DBTNS_BUTTON;
> > >imgs[0].dwData=3D0;
> > >imgs[0].iString=3D0;
> > >
> > >imgs[1].iBitmap=3DSTD_FILEOPEN;
> > >imgs[1].idCommand=3DID_FILE_OPEN;
> > >imgs[1].fsState=3DTBSTATE_ENABLED;
> > >imgs[1].fsStyle=3DBTNS_BUTTON;
> > >imgs[1].dwData=3D0;
> > >imgs[1].iString=3D0;
> > >
> > >Thanks.
> > >------------
> > >Vlada
> > >
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by: ValueWeb:
> > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > >No other company gives more support or power for your dedicated server
> > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > >_______________________________________________
> > >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
> >
> >
> > _________________________________________________________________
> > On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobi=
le
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: Vlada D. <dj...@im...> - 2003-04-07 10:45:52
|
----- Original Message -----
From: "Igor Pierscinski" <igo...@po...>
To: <dev...@li...>
Sent: Monday, April 07, 2003 12:04 PM
Subject: RE: [Dev-C++] syntax error driving me crazy
Hi,
Check the line(s) immediately preceding the line showing
syntax error. Check if ';' is not missing at the end of that line.
You can also try to rename imgs to something else and
see if the problem still exist. If it still does not work please
send us 10 - 15 lines preceding the first line with syntax error.
Best Regards
Igor Pierscinski
I tried what you said, but still no luck. Here's the begining of the file.
Thanks for your time.
#define _WIN32_IE 0x0400
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = "WindowsApp";
HINSTANCE g_hInst;
TBBUTTON image[2];
image[0].iBitmap=STD_FILENEW;
image[0].idCommand=ID_FILE_NEW;
image[0].fsState=TBSTATE_ENABLED;
image[0].fsStyle=BTNS_BUTTON;
image[0].dwData=0;
image[0].iString=0;
image[1].iBitmap=STD_FILEOPEN;
image[1].idCommand=ID_FILE_OPEN;
image[1].fsState=TBSTATE_ENABLED;
image[1].fsStyle=BTNS_BUTTON;
image[1].dwData=0;
image[1].iString=0;
int WINAPI
WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
file://rest of code
-----Original Message-----
From: Vlada Djurovic [mailto:dj...@im...]
Sent: Friday, April 04, 2003 6:12 PM
To: Igor Pieroeciñski; dev...@li...
Subject: Re: [Dev-C++] syntax error driving me crazy
----- Original Message -----
From: "Igor Pierscinski" <igo...@po...>
To: <dev...@li...>
Sent: Friday, April 04, 2003 4:31 PM
Subject: RE: [Dev-C++] syntax error driving me crazy
Hi,
Please tell us what was the first syntax error on the list.
Regards
Igor Pierscinski
The first error was:
21 C:\My Documents\Prog\interface\main.cpp
syntax error before `.'
in the line
imgs[0].iBitmap=STD_FILENEW;
and then same error occurs in every line.
-----Original Message-----
From: Vlada Djurovic [mailto:dj...@im...]
Sent: Friday, April 04, 2003 2:46 PM
To: Daniel Glenfield; dev...@li...
Subject: Re: [Dev-C++] syntax error driving me crazy
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <dj...@im...>; <dev...@li...>
Sent: Friday, April 04, 2003 2:25 PM
Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
>
> Have you defined imgs ? Does the compiler know what members are inside
imgs?
>
I'm not sure what you mean. imgs is declared as array of TBBUTON structures,
and if I'm right, TBBUTTON is defined in commctrl.h, which is included in my
source file. The compiler didn't complain about TBBUTTON being undefined. I
also linked comctl32 library. The code is the same as I found on MSDN, so I
think it should work.
> >From: "Vlada Djurovic" <dj...@im...>
> >To: "'DevC++ help'" <dev...@li...>
> >Subject: [Dev-C++] syntax error driving me crazy
> >Date: Fri, 4 Apr 2003 13:27:37 +0200
> >
> >Hi.
> >Can somebody please tell me what is wrong with this peace of code? I get
> >"syntax error before '.'" in every line and can't figure out what's
wrong.
> >
> >TBBUTTON imgs[2];
> >
> >imgs[0].iBitmap=STD_FILENEW;
> >imgs[0].idCommand=ID_FILE_NEW;
> >imgs[0].fsState=TBSTATE_ENABLED;
> >imgs[0].fsStyle=BTNS_BUTTON;
> >imgs[0].dwData=0;
> >imgs[0].iString=0;
> >
> >imgs[1].iBitmap=STD_FILEOPEN;
> >imgs[1].idCommand=ID_FILE_OPEN;
> >imgs[1].fsState=TBSTATE_ENABLED;
> >imgs[1].fsStyle=BTNS_BUTTON;
> >imgs[1].dwData=0;
> >imgs[1].iString=0;
> >
> >Thanks.
> >------------
> >Vlada
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: ValueWeb:
> >Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> >No other company gives more support or power for your dedicated server
> >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> >_______________________________________________
> >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
>
>
> _________________________________________________________________
> On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile
>
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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: Igor P. <igo...@po...> - 2003-04-07 10:05:08
|
Hi, Check the line(s) immediately preceding the line showing syntax error. Check if ';' is not missing at the end of that line. You can also try to rename imgs to something else and see if the problem still exist. If it still does not work please send us 10 - 15 lines preceding the first line with syntax error. Best Regards Igor Pierscinski -----Original Message----- From: Vlada Djurovic [mailto:dj...@im...] Sent: Friday, April 04, 2003 6:12 PM To: Igor Pieroeci=F1ski; dev...@li... Subject: Re: [Dev-C++] syntax error driving me crazy ----- Original Message ----- From: "Igor Pierscinski" <igo...@po...> To: <dev...@li...> Sent: Friday, April 04, 2003 4:31 PM Subject: RE: [Dev-C++] syntax error driving me crazy Hi, Please tell us what was the first syntax error on the list. Regards Igor Pierscinski The first error was: 21 C:\My Documents\Prog\interface\main.cpp syntax error before `.' in the line imgs[0].iBitmap=3DSTD_FILENEW; and then same error occurs in every line. -----Original Message----- From: Vlada Djurovic [mailto:dj...@im...] Sent: Friday, April 04, 2003 2:46 PM To: Daniel Glenfield; dev...@li... Subject: Re: [Dev-C++] syntax error driving me crazy ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dj...@im...>; <dev...@li...> Sent: Friday, April 04, 2003 2:25 PM Subject: Re: [Dev-C++] syntax error driving me crazy > > > > Have you defined imgs ? Does the compiler know what members are inside imgs? > I'm not sure what you mean. imgs is declared as array of TBBUTON = structures, and if I'm right, TBBUTTON is defined in commctrl.h, which is included = in my source file. The compiler didn't complain about TBBUTTON being = undefined. I also linked comctl32 library. The code is the same as I found on MSDN, = so I think it should work. > >From: "Vlada Djurovic" <dj...@im...> > >To: "'DevC++ help'" <dev...@li...> > >Subject: [Dev-C++] syntax error driving me crazy > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > >Hi. > >Can somebody please tell me what is wrong with this peace of code? I = get > >"syntax error before '.'" in every line and can't figure out what's wrong. > > > >TBBUTTON imgs[2]; > > > >imgs[0].iBitmap=3DSTD_FILENEW; > >imgs[0].idCommand=3DID_FILE_NEW; > >imgs[0].fsState=3DTBSTATE_ENABLED; > >imgs[0].fsStyle=3DBTNS_BUTTON; > >imgs[0].dwData=3D0; > >imgs[0].iString=3D0; > > > >imgs[1].iBitmap=3DSTD_FILEOPEN; > >imgs[1].idCommand=3DID_FILE_OPEN; > >imgs[1].fsState=3DTBSTATE_ENABLED; > >imgs[1].fsStyle=3DBTNS_BUTTON; > >imgs[1].dwData=3D0; > >imgs[1].iString=3D0; > > > >Thanks. > >------------ > >Vlada > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated = server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > > _________________________________________________________________ > On the move? Get Hotmail on your mobile phone = http://www.msn.co.uk/mobile > ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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: Colin L. <ha...@bl...> - 2003-04-06 22:04:49
|
Hello, > But it also seems to me that a good workaround would be to support Linux > development from Windows, ie. running DevC++ user Windows with a slave > Linux box (or virtual machine - VMWare etc) hosting the source files > on a shared directory. A cross compiling version of GCC (Windows hosted, > Linux output) would be installed under DevC++, and DevC++ would > communicate with a Linux GDB on the Linux box/VM for running.debugging > the generated Linux app (should be straightforward as DevC++ already > handles GDB as a 'remote' program). Cross compiling to Linux from Dev-C++ should be easy. Just install a Win32 cross compiler that generates x86-elf code on your windows, and configure the path and names in Compiler Options of Dev-C++ to match the one of your cross compiler. For the part of running GDB from a linux launched in a VMWare, I don't use VMWare and don't really know if that would possible (it would need some kind of protocol between the host and slave system - available to running programs - which would suprise me if it exists). Greetings, Colin Laplace > In the absence of a true Linux port of Dev-C++, that would be very useful > for the Linux/cross-platform developers. > > Of course there are nice, free IDE's for Linux, but none (that I know > of, other than the Java-based Eclipse IDE) that help cross-platform > development on both Windows and Linux. > > Doesnt seem like a major piece of work to do this (though I'm no > expert) - anyone else have an opinion on this? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: Colin L. <ha...@bl...> - 2003-04-06 22:04:33
|
Hello, Sorry for the delay in responding. > It seems like the CVS support is broken. I'm using cvs.exe 1.11.5 from > cvshome.org and it works perfectly in command-line, but not in Dev-C++. > Could someone developer please look this up as this is a pretty important > function to some people like me :) What problem exactly are you having ? do you get any sort of error or does it seems to hang ? Is the path to cvs.exe in Environment Options correct ? (it is probably, but still prefer to ask :) Greetings, Colin > Best regards, > Robert Eriksson > > > Hello > > > > > > I remember of some messages about using CVS on Dev-C++, but I don't > > remember any useful answer; the mailing list search on SourceForge isn't > > working. So, here are my question: > > > > 1. Does the CVS functionality even works? > > 2. Does it works on SF's CVS? > > 3. If the 'cvs.exe' that I got from http://www.cvshome.org is the only > > one that doesn't work with Dev-C++, where can I get one that works? > > (Using just command-line, it also doesn't work) > > > > > > > > I'm using Win98 SE, and CVS 1.11.5 > > > > > > > > > > > > Daniel K. O. > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > _______________________________________________ > > 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: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: Catsquotl <C.a...@hc...> - 2003-04-06 19:51:39
|
Hello, I finished my first project the other day. Nothing fancy 2 .cpp files and 1 header. Now when i open this project Dev-cpp takes about 40 seconds to "parse" loads of header files. Would someone please tell a newbie in the world of computer programming what is going in when Dev-cpp does that? greets Cat |
|
From: Ioannis V. <iv...@at...> - 2003-04-06 19:05:24
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Daniel K. O.
> Sent: Sunday, April 06, 2003 9:36 PM
> To: 'Dev-C++ -Users-List'
> Subject: RES: [Dev-C++] Can I handle 64 bits with unsigned=20
> long long int ?
>=20
>=20
>=20
>=20
>=20
> > Obviously MINGW's unsigned long long isn't 64 bit or=20
> there is serious
> > compiler bug. An equivalent code:
>=20
>=20
>=20
> Ok, let's try again... You have:
>=20
> unsigned long long i =3D ULLONG_MAX;
>=20
> So you have i =3D 0xFFFFFFFFFFFFFFFF;
Why?
> And sizeof (i) =3D 8;
Irrelevant. It may have padding bits.
> Now, you printf("%llu", i); printf provided on MSVCRT.DLL=20
> should "eat" 8
> bytes from the stack (0xFFFFFFFFFFFFFFFF), to print the=20
> unsigned long long.
> But it doesn't. I thinks that %llu is for a 4 bytes int, and=20
> only prints the
> first word of the unsigned long long (you can put another=20
> "%llu", if you
> want to see the other half :P=20
%llu is for the type unsigned long long. Failure to print the whole =
range of
the unsigned long long values would be a compiler defect.
> ). This bug is not on MinGW, but on
> MSVCRT.DLL, where the printf is implemented. While MinGW=20
> keeps using the
> runtime lib from MS, or MS doesn't update its C Runtime=20
> library, you'll have
> to use "%I64d", "%I64u", "%I64x", etc.
I have no idea of the compiler internals. It may be a bug of the dll you
mention, I do not know. Regarding the specifiers you are mentioning =
above,
as far as I know are not part of the standard.
>=20
>=20
> Again, here is the link about this issue:
>=20
> "printf function does not support long long"
> [all-in-one-line]
> http://sf.net/tracker/?func=3Ddetail&aid=3D661165&group_id=3D2435&at
id=3D102435
[/all-in-one-line]
Ok. Another portable approach would be the use of size_t, e.g.:
#include <stdio.h>
#include <stddef.h>
int main(void)
{
printf ("Maximum value of size_t: %sz\n", (size_t)-1);
getchar();
}
Unfortunately it crashes to me. It seems MINGW has a long way to go
regarding C99 stability.
Also SIZE_MAX seems to not exist in MINGW implementation...
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: <li...@as...> - 2003-04-06 19:04:21
|
It seems that a Linux port once existed but isnt part of the landscape any more because of effort and Borland 'issues'. But it also seems to me that a good workaround would be to support Linux development from Windows, ie. running DevC++ user Windows with a slave Linux box (or virtual machine - VMWare etc) hosting the source files on a shared directory. A cross compiling version of GCC (Windows hosted, Linux output) would be installed under DevC++, and DevC++ would communicate with a Linux GDB on the Linux box/VM for running.debugging the generated Linux app (should be straightforward as DevC++ already handles GDB as a 'remote' program). In the absence of a true Linux port of Dev-C++, that would be very useful for the Linux/cross-platform developers. Of course there are nice, free IDE's for Linux, but none (that I know of, other than the Java-based Eclipse IDE) that help cross-platform development on both Windows and Linux. Doesnt seem like a major piece of work to do this (though I'm no expert) - anyone else have an opinion on this? |
|
From: Daniel K. O. <dan...@ya...> - 2003-04-06 18:35:34
|
> Obviously MINGW's unsigned long long isn't 64 bit or there is serious
> compiler bug. An equivalent code:
Ok, let's try again... You have:
unsigned long long i = ULLONG_MAX;
So you have i = 0xFFFFFFFFFFFFFFFF;
And sizeof (i) = 8;
Now, you printf("%llu", i); printf provided on MSVCRT.DLL should "eat" 8
bytes from the stack (0xFFFFFFFFFFFFFFFF), to print the unsigned long long.
But it doesn't. I thinks that %llu is for a 4 bytes int, and only prints the
first word of the unsigned long long (you can put another "%llu", if you
want to see the other half :P ). This bug is not on MinGW, but on
MSVCRT.DLL, where the printf is implemented. While MinGW keeps using the
runtime lib from MS, or MS doesn't update its C Runtime library, you'll have
to use "%I64d", "%I64u", "%I64x", etc.
Again, here is the link about this issue:
"printf function does not support long long"
[all-in-one-line]
http://sf.net/tracker/?func=detail&aid=661165&group_id=2435&atid=102435
[/all-in-one-line]
Daniel K. O.
|
|
From: Ioannis V. <iv...@at...> - 2003-04-06 18:10:34
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Daniel K. O.
> Sent: Sunday, April 06, 2003 8:05 PM
> To: 'Dev-C++ -Users-List'
> Subject: RES: [Dev-C++] Can I handle 64 bits with unsigned
> long long int ?
>
>
>
>
>
>
>
> > Of course it does. In fact I compiled that code with:
> >
> >
> > C:\c>gcc temp.c -o temp
> >
> > C:\c>temp
> > Maximum value of unsigned long long: 4294967295
> >
>
>
> But it should be 18446744073709551615 (2^64 - 1).
> What I mean is that the %llu doesn't handle the 64-bit
> integer, only the
> first word.
Obviously MINGW's unsigned long long isn't 64 bit or there is serious
compiler bug. An equivalent code:
#include <stdio.h>
int main(void)
{
printf ("Maximum value of unsigned long long: %llu\n", (unsigned long
long)-1);
getchar();
}
It still produces:
C:\c>temp
Maximum value of unsigned long long: 4294967295
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Rodrigo R. da R. <r3...@ie...> - 2003-04-06 18:03:59
|
where do I find the gnu function getline? even if I include the stdio.h and stdlib.h I couldn't use these functions because when I compile the functions are not found. R3. |
|
From: Daniel K. O. <dan...@ya...> - 2003-04-06 17:05:24
|
> Of course it does. In fact I compiled that code with: > > > C:\c>gcc temp.c -o temp > > C:\c>temp > Maximum value of unsigned long long: 4294967295 > But it should be 18446744073709551615 (2^64 - 1). What I mean is that the %llu doesn't handle the 64-bit integer, only the first word. Daniel K. O. |
|
From: Ioannis V. <iv...@at...> - 2003-04-06 16:41:53
|
> -----Original Message----- > From: Ioannis Vranos [mailto:iv...@at...] > Sent: Sunday, April 06, 2003 7:39 PM > To: 'Dev-C++ -Users-List' > Subject: RE: [Dev-C++] Can I handle 64 bits with unsigned > long long int ? > > > Of course it does. In fact I compiled that code with: > > > C:\c>gcc temp.c -o temp > > C:\c>temp > Maximum value of unsigned long long: 4294967295 > > > C:\c> But it doesn't compile with -std=c99. MINGW is a bit messed up I guess. However it compiles C99 by default as it seems. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Ioannis V. <iv...@at...> - 2003-04-06 16:39:38
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Daniel K. O.
> Sent: Sunday, April 06, 2003 5:11 PM
> To: 'Dev-C++ -Users-List'
> Subject: RES: [Dev-C++] Can I handle 64 bits with unsigned
> long long int ?
>
>
>
>
> > I checked and saw that MINGW's long long types are
> 64-bit. You made a
> > mistake in the format specifier of printf(). Thus an
> example code of
> > printf() printing an unsigned long long value is:
> >
> > #include <stdio.h>
> > #include <limits.h>
> >
> >
> > int main(void)
> > {
> > printf ("Maximum value of unsigned long long: %llu\n",
> ULLONG_MAX);
> >
> > getchar();
> > }
>
>
> MinGW uses MSVCRT.DLL; the printf doesn't know what is this %llu, and
> there's nothing you can do about it.
Of course it does. In fact I compiled that code with:
C:\c>gcc temp.c -o temp
C:\c>temp
Maximum value of unsigned long long: 4294967295
C:\c>
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Zodiaq <zo...@ac...> - 2003-04-06 16:13:36
|
Hello Lambdabit and all Dev-C++ users, Sunday, April 6, 2003, 4:33:46 PM, Lambdabit wrote as follows: LJGS> how can I get the speed of my net interface's connection and the packages sent and received? By calling Win32 API function named GetIfTable you get CURRENT bytes sent and received for every interface (including loopback)... if you call this function every 1sec (using timer) you can easly obtain speed in bytes... but remember that this gives you total network load - every byte of packets counts... for more info and examples check msdn.microsoft.com LJGS> Thanks! -- regards, Zodiaq |
|
From: <qa...@ho...> - 2003-04-06 14:46:53
|
Hi. I need to use hash_map but I can't get it to compile. The code below is a subset of the example code found att the SGI=B4s STL= documentation (http://www.sgi.com/tech/stl/hash_map.html) //--- Code start --- #include <iostream> #include <hash_map> using namespace std; struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) =3D=3D 0; } }; int main() { hash_map<const char*, int, hash<const char*>, eqstr> months; months["september"] =3D 30; cout << "september -> " << months["september"] << endl; system("PAUSE"); } //--- Code end --- and the compile log... //--- Start log --- make.exe -f "D:\Programmering\IDE\Dev-Cpp\tmp\Makefile.win" all g++.exe -c main.cpp -o main.o -I"D:/Programmering/IDE/Dev-Cpp/include/c++"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/mingw32"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/backward"= -I"D:/Programmering/IDE/Dev-Cpp/include"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/ext" main.cpp: In function `int main()': main.cpp:16: `hash_map' undeclared (first use this function) main.cpp:16: (Each undeclared identifier is reported only once for each function it appears in.) main.cpp:16: parse error before `char' main.cpp:18: `months' undeclared (first use this function) make.exe: *** [main.o] Error 1 //--- End log --- The automated make file looks like this // --- End makefile --- # Project: hash_map_test # Makefile created by Dev-C++ 4.9.8.0 CPP =3D g++.exe CC =3D gcc.exe WINDRES =3D windres.exe RES =3D OBJ =3D main.o $(RES) LINKOBJ =3D main.o $(RES) LIBS =3D -L"D:/Programmering/IDE/Dev-Cpp/lib" INCS =3D -I"D:/Programmering/IDE/Dev-Cpp/include" CXXINCS =3D -I"D:/Programmering/IDE/Dev-Cpp/include/c++"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/mingw32"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/backward"= -I"D:/Programmering/IDE/Dev-Cpp/include"= -I"D:/Programmering/IDE/Dev-Cpp/include/c++/ext" BIN =3D hash_map_test.exe CXXFLAGS =3D $(CXXINCS) CFLAGS =3D $(INCS) .PHONY: all all-before all-after clean clean-custom all: all-before hash_map_test.exe all-after clean: clean-custom rm -f $(OBJ) $(BIN) $(BIN): $(LINKOBJ) $(CPP) $(LINKOBJ) -o "hash_map_test.exe" $(LIBS) main.o: main.cpp $(CPP) -c main.cpp -o main.o $(CXXFLAGS) // --- End makefile --- Any ideas??? TIA /J=F6rgen |
|
From: Lambdabit - J. G. S. <jg...@ep...> - 2003-04-06 14:35:25
|
how can I get the speed of my net interface's connection and the = packages sent and received? Thanks! |
|
From: Daniel K. O. <dan...@ya...> - 2003-04-06 14:10:37
|
> I checked and saw that MINGW's long long types are 64-bit. You made a
> mistake in the format specifier of printf(). Thus an example code of
> printf() printing an unsigned long long value is:
>
> #include <stdio.h>
> #include <limits.h>
>
>
> int main(void)
> {
> printf ("Maximum value of unsigned long long: %llu\n", ULLONG_MAX);
>
> getchar();
> }
MinGW uses MSVCRT.DLL; the printf doesn't know what is this %llu, and
there's nothing you can do about it. More details here:
http://sourceforge.net/tracker/index.php?func=detail&aid=661165&group_id=243
5&atid=102435
Use "%I64u" for now.
Daniel K. O.
|
|
From: Ioannis V. <iv...@em...> - 2003-04-06 09:37:06
|
> -----Original Message-----
> From: Ioannis Vranos [mailto:iv...@em...]
> Sent: Sunday, April 06, 2003 12:01 PM
> To: 'Dev-C++ -Users-List'
> Subject: RE: [Dev-C++] Can I handle 64 bits with unsigned
> long long int ?
>
>
> Question about C99. That is a first! See below:
>
>
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Roberto Ricardi
> > Sent: Sunday, April 06, 2003 2:11 AM
> > To: 'Dev-C++ -Users-List'
> > Subject: [Dev-C++] Can I handle 64 bits with unsigned long
> long int ?
> >
> >
> > Hi all,
> >
> > Can I handle 64 bits numbers with unsigned long long ?
> >
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <conio.h>
> >
> > unsigned long long int D0,D1 ;
> >
> > int main(int argc, char *argv[])
> > {
> > D0 = 0;
> > D1 = 0xffffffffffff; /* I put first unsigned long int, compiler
> > alerts about truncated number...) */
> > gotoxy(1,9);printf ("Num hexa : ");
> > scanf ("%x",&D0); /*can handle whatever up to 32 bits*/
> > gotoxy(1,11);printf ("Dec0: %lu\nDec1: %lu\n\n", D0, D1);
> >
> > getchar(); getchar();
> > return 0;
> > }
> > /*
> > Results:
> >
> > Dec0 : 4294967295 mean ok if I put just up to 0xffffffff 32bits
> > Dec1 : 0 ??
> > */
> >
> > Why is ever truncated in 32 bits, how can handle long long to
> > get up to
> > 64 bits numbers ?
>
>
> unsigned long long is not guaranteed to be 64-bit. If you
> want an unsigned integral type to be at least 64-bit, you have to do:
>
>
> #include <stdint.h>
>
> // ...
>
> uint_least64_t D0, D1;
>
> // ...
>
>
>
> which is a typedef of the closest to 64-bit type provided by
> platform (closest from above, that is if unsigned long is 32
> bit and unsigned long long is 128 bit for example, the
> typedef will be of unsigned long long).
>
>
> I read it straight from the standard. I do not know whether
> MINGW has implemented it (and as far as I know these
> facilities are "optional", if the platform doesn't support
> >=64 bit, will not have the above type naturally).
>
>
> By the way, have you got any book regarding C99? If yes, can
> you please tell me which?
I checked and saw that MINGW's long long types are 64-bit. You made a
mistake in the format specifier of printf(). Thus an example code of
printf() printing an unsigned long long value is:
#include <stdio.h>
#include <limits.h>
int main(void)
{
printf ("Maximum value of unsigned long long: %llu\n", ULLONG_MAX);
getchar();
}
For the above to compile you must be careful with the compiler switches.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@em...> - 2003-04-06 09:36:29
|
Question about C99. That is a first! See below:
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Roberto Ricardi
> Sent: Sunday, April 06, 2003 2:11 AM
> To: 'Dev-C++ -Users-List'
> Subject: [Dev-C++] Can I handle 64 bits with unsigned long long int ?
>=20
>=20
> Hi all,
>=20
> Can I handle 64 bits numbers with unsigned long long ?
>=20
> #include <stdio.h>
> #include <stdlib.h>
> #include <conio.h>
>=20
> unsigned long long int D0,D1 ;
> =20
> int main(int argc, char *argv[])
> {
> D0 =3D 0;
> D1 =3D 0xffffffffffff; /* I put first unsigned long int, compiler=20
> alerts about truncated number...) */
> gotoxy(1,9);printf ("Num hexa : ");
> scanf ("%x",&D0); /*can handle whatever up to 32 bits*/
> gotoxy(1,11);printf ("Dec0: %lu\nDec1: %lu\n\n", D0, D1);
> =20
> getchar(); getchar();
> return 0;
> }
> /*
> Results:
>=20
> Dec0 : 4294967295 mean ok if I put just up to 0xffffffff 32bits
> Dec1 : 0 ??
> */
>=20
> Why is ever truncated in 32 bits, how can handle long long to=20
> get up to=20
> 64 bits numbers ?
unsigned long long is not guaranteed to be 64-bit. If you want an =
unsigned
integral type to be at least 64-bit, you have to do:
#include <stdint.h>
// ...
uint_least64_t D0, D1;
// ...
which is a typedef of the closest to 64-bit type provided by platform
(closest from above, that is if unsigned long is 32 bit and unsigned =
long
long is 128 bit for example, the typedef will be of unsigned long long).
I read it straight from the standard. I do not know whether MINGW has
implemented it (and as far as I know these facilities are "optional", if =
the
platform doesn't support >=3D64 bit, will not have the above type =
naturally).
By the way, have you got any book regarding C99? If yes, can you please =
tell
me which?
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@em...> - 2003-04-06 09:25:46
|
Question about C99. That is a first! See below:
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Roberto Ricardi
> Sent: Sunday, April 06, 2003 2:11 AM
> To: 'Dev-C++ -Users-List'
> Subject: [Dev-C++] Can I handle 64 bits with unsigned long long int ?
>=20
>=20
> Hi all,
>=20
> Can I handle 64 bits numbers with unsigned long long ?
>=20
> #include <stdio.h>
> #include <stdlib.h>
> #include <conio.h>
>=20
> unsigned long long int D0,D1 ;
> =20
> int main(int argc, char *argv[])
> {
> D0 =3D 0;
> D1 =3D 0xffffffffffff; /* I put first unsigned long int, compiler=20
> alerts about truncated number...) */
> gotoxy(1,9);printf ("Num hexa : ");
> scanf ("%x",&D0); /*can handle whatever up to 32 bits*/
> gotoxy(1,11);printf ("Dec0: %lu\nDec1: %lu\n\n", D0, D1);
> =20
> getchar(); getchar();
> return 0;
> }
> /*
> Results:
>=20
> Dec0 : 4294967295 mean ok if I put just up to 0xffffffff 32bits
> Dec1 : 0 ??
> */
>=20
> Why is ever truncated in 32 bits, how can handle long long to=20
> get up to=20
> 64 bits numbers ?
unsigned long long is not guaranteed to be 64-bit. If you want an =
unsigned
integral type to be at least 64-bit, you have to do:
#include <stdint.h>
// ...
uint_least64_t D0, D1;
// ...
which is a typedef of the closest to 64-bit type provided by platform
(closest from above, that is if unsigned long is 32 bit and unsigned =
long
long is 128 bit for example, the typedef will be of unsigned long long).
I read it straight from the standard. I do not know whether MINGW has
implemented it (and as far as I know these facilities are "optional", if =
the
platform doesn't support >=3D64 bit, will not have the above type =
naturally).
By the way, have you got any book regarding C99? If yes, can you please =
tell
me which?
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: supperbeyond <sup...@16...> - 2003-04-06 05:15:58
|
SSBoYXZlIHRyaWVkIHRoZSBmaWxlIGdjYy1taW5ndzMyLm1hayxhbmQgaXQgZmFpbGVkLldoZXJl IGlzIHRoZSBwcm9ibGVtIHdpdGggdGhpcz8NCkNhbiBhbnkgb25lIGhlbHAgbWUgaW4gZGV0YWls cz8NCkkgYW0gbm93IHVzaW5nIERldi1DcHAgNC45LjguMCxvciB5b3UgY2FuIHRlbGwgbWUgaG93 IHRvIGRvIHVuZGVyIERldi1DcHAgNC45LjcuMCB3aXRoIGdjYyAyLjkuNT8NClRoYW5rIHlvdSB2 ZXJ5IG11Y2guDQoNCnN1cHBlcmJleW9uZA== |
|
From: Chauncey W. <cw...@tw...> - 2003-04-06 02:50:28
|
Thanks for your reply. I got it, I had to add the libgdi32 to the project options. Thanks, C Samuel Keding wrote: > Please email your source file. > > > ____________________________________________________________ > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: Roberto R. <rob...@ar...> - 2003-04-05 23:10:58
|
Hi all,
Can I handle 64 bits numbers with unsigned long long ?
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
unsigned long long int D0,D1 ;
int main(int argc, char *argv[])
{
D0 = 0;
D1 = 0xffffffffffff; /* I put first unsigned long int, compiler
alerts about truncated number...) */
gotoxy(1,9);printf ("Num hexa : ");
scanf ("%x",&D0); /*can handle whatever up to 32 bits*/
gotoxy(1,11);printf ("Dec0: %lu\nDec1: %lu\n\n", D0, D1);
getchar(); getchar();
return 0;
}
/*
Results:
Dec0 : 4294967295 mean ok if I put just up to 0xffffffff 32bits
Dec1 : 0 ??
*/
Why is ever truncated in 32 bits, how can handle long long to get up to
64 bits numbers ?
Thanks in advance
Roberto
|
|
From: Antonio S. <lu...@ur...> - 2003-04-05 20:37:31
|
Confirm 880227, Tank You, --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003 |