dev-cpp-users Mailing List for Dev-C++ (Page 335)
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: Abhijit S. <mu...@gm...> - 2003-08-04 18:24:42
|
Hello, Michael. > I notice that Dev C++ has fcntl.h. My UNIX book says fcntl is the > only file > lock that works ( is implemented ) across all UNIX platforms. > Working on my > home computer it seems that Windows always locks a file that's in > use, but > then this is not a server. About those I know nothing. > > Dev C++ is a Windows version and it has fcntl so I'm "assuming" it's a > Windows compatible implementation but, if so, does it still work if the > executable is copied to a UNIX machine, or does it have to be compiled on > the machine it's going to be ran on? Executables compiled on Windows will not work on Linux, the source has to be recompiled for this. About your problem, it's a bit tricky, because _fmode() is a function on some platforms and a variable on others. The best way to handle this would be to use a wrapper function and conditional compilation (#ifdef etc.). -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: <ten...@ne...> - 2003-08-04 17:30:45
|
...of lines of code which are not executed. Or functions which does nothing or not what it's claimed they do... e.g.: case ID_LABEL: SendMessage(GetDlgItem(hwnd, ID_EDIT), EM_SETMODIFY, (WPARAM)(UINT)TRUE, 0L); break; menu->label menu->quit Oh, SendMessage... EM_GETMODIFY.... says FALSE. Oh, what was EM_SETMODIFY supposed to do. Wasn't it make EM_GETMODIFY return TRUE????? |
|
From: Michael D. S. <for...@hi...> - 2003-08-04 14:40:36
|
Afraid of that. I suppose that's why downloads often have different links depending on your OS, which brings up how many different versions are necessary? I'm "pretty sure:)" I'm cross platform on UNIX -- if I can find a UNIX server to compile it on. Going back and looking where I didn't pay much attention when I downloaded Dev, I see there's one download for Windows 95/98/NT/2000/XP although I'm sure for other programs I've seen different versions for different Windows platforms. One jerk crashed my system by not telling me his "program" was XP specific. I really don't want to be remembered forever for an incident like that. If I compile a Windows version with Dev C++ here on my old '98 box, will it work on all Windows systems or just some -- is a 9x version, a 2000 version, a XP version necessary? Keep in mind, this CGI isn't a lot more than "Hello World." It's purpose is to output some text (HTML) to standard out. If I was creating a window of course it would be Windows specific. But even setting up standard out could be, probably is, platform specific so... Where does a setup program fit -- have anything to do with this problem? In general, they don't seem large enough to contain a compiler. If you got this far, thanks for listening to my confused ramblings. Comments appreciated. ms If everything seems to be going well, you have obviously overlooked something At 07:02 AM 8/4/03, you wrote: >the executable must be compiled for the operating system that it is >going to run on. > >reid > > > > -----Original Message----- > > From: Michael D. Smith [mailto:for...@hi...] > > Sent: Monday, August 04, 2003 3:30 AM > > To: dev...@li... > > Subject: [Dev-C++] CGI File Locking across server types > > > > > > > > I notice that Dev C++ has fcntl.h. My UNIX book says fcntl is > > the only file > > lock that works ( is implemented ) across all UNIX platforms. > > Working on my > > home computer it seems that Windows always locks a file > > that's in use, but > > then this is not a server. About those I know nothing. > > > > Dev C++ is a Windows version and it has fcntl so I'm > > "assuming" it's a > > Windows compatible implementation but, if so, does it still > > work if the > > executable is copied to a UNIX machine, or does it have to be > > compiled on > > the machine it's going to be ran on? > > > > Anyone have any experience with this? Any advice? > > > > ms > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites > > including Data Reports, E-commerce, Portals, and Forums are > > available now. Download today and enter to win an XBOX or > > Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet >_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <or...@vp...> - 2003-08-04 14:33:43
|
Hi!
Again, a question. Suppose I have a structure like this:
typedef struct _block{
int array[16][16];
int v1;
int v2;
}block;
So, my question is, is that array[16][16] stored linearly in the
structure? Can I do a memcpy directly on it, to copy it elsewhere, like
this:
memcpy(destination->array,source->array,16*16*sizeof(int));
/* destination*/ /* source*/ /* bytes to copy */
Can I do this?
--
Greetings,
Balázs
|
|
From: <or...@vp...> - 2003-08-04 14:20:12
|
Hi!
Now, I have a question.
I need to do heavy optimizations in the project I am working on, and I
am asking you, whether will I gain any speedup by optimizing loops. I am
interested in the for loop exactly. Let's take this example:
for(i=0;i<getint();i++){
/* ... */
}
Would it worth it to take that getint() into an outer variable, and only
use that in the conditional, like this:
int c = getint();
for(i=0;i<c;i++){
/* ... */
}
Will this give me any speedup? I am interested in particular, is for
going to call getint() EVERY time in the first case (on top), or will it
do it only once? I think the second case is better, am I right?
Allright, that was my first question, here is the second:
What is the case, if the conditional is a KNOWN value. Something, like a
macro. Here is the example:
#define GETINT (10*5)
for(i=0;i<GETINT;i++){
/* ... */
}
I suppose, this will be optimised by the compiler, and this can even be
unrolled, am I right?
Thanks in advance.
--
Greetings,
Balázs
|
|
From: <or...@vp...> - 2003-08-04 12:54:01
|
Pukara Rob wrote: > By the way, about the stdio.h file. I think it is pretty neccessary so I > am wondering why these guys chose to leave it out? Has any one of you > worked with Visual C++? Is there a replacemente for the standard stdio.h > there? I asked because the Aria guys provided some project files for VC > but since I work with DevC++... > > About the .. > > #ifdef SOMETHING > ....... > #endif > > how do I define and undefine something from the compiling environment. I > am trying to force it compile because I have lost too much time already. > > By the way ARIA is the name of a control system for Pioneer robots. VC++ project files have nothing to do with includes, as they don't contain any. They may only contain defines, but they are imported by dev anyway (I assume, that you used the import function of dev, no?). I think, that the stdio.h file is the same in Dev-C++ (well, actually in MinGW) and both in VC++. So I really don't know what and why have they done. To define something globally, through the environment, you need to pass a flag to the compiler. It has the form: -DSOMETHING This will define SOMETHING for the currently compiled file. Add -DWHAT_YOU_WANT to the compiler flags in the Project options -> Parameters -> Compiler or C++ compiler. I hope this helps. Good luck! -- Greetings, Balázs |
|
From: Pukara R. <puk...@ya...> - 2003-08-04 12:25:18
|
Thank you very much for all your answers.
By the way, about the stdio.h file. I think it is pretty neccessary so I am wondering why these guys chose to leave it out? Has any one of you worked with Visual C++? Is there a replacemente for the standard stdio.h there? I asked because the Aria guys provided some project files for VC but since I work with DevC++...
About the ..
#ifdef SOMETHING
.......
#endif
how do I define and undefine something from the compiling environment. I am trying to force it compile because I have lost too much time already.
By the way ARIA is the name of a control system for Pioneer robots.
Abhijit Shylanath <mu...@gm...> wrote:
> Since you have worked in windows, could you tell me: time_t or this kind
of things are not used > in windows? I asked because I open both files:
time.h and timeb.h and while time.h seems very
> complete (with the definition of time_t for instance) , timeb.h seems
incomplete. Is there a
> equivalent of time_t for windows. Is the file timeb.h correct? Or for that
matter should I
> cheat the compiler and make it think we are in windows....hummm. I am
confused. Are those files
> complete? Sorry for so many questions, it is that I want to start working
already and I am
> stuck in the no compilation problem and the Aria guys dont answer me yet
:(
Hello, Pukara.
Try #including before all your Aria headers. is ANSI, and
is portable. I don't know why they've decided not to work with it on
Windows, but you can try it out anyway.
Specifically:
* time_t is legal.
* timeb.h is the header for the Unix ftime() function, and is not ANSI.
Here's a dump of what my reference says about ftime():
-- Cut here --
Syntax
#include
void ftime(struct timeb *buf)
Description
Stores current time in timeb structure.
On UNIX platforms ftime is available only on System V systems.
ftime determines the current time and fills in the fields in the timeb
structure pointed to by buf. The timeb structure contains four fields: time,
millitm, _timezone, and dstflag:
struct timeb {
long time ;
short millitm ;
short _timezone ;
short dstflag ;
};
time provides the time in seconds since 00:00:00 Greenwich mean time (GMT)
January 1 1970.
millitm is the fractional part of a second in milliseconds.
_timezone is the difference in minutes between GMT and the local time. This
value is computed going west from GMT. ftime gets this field from the global
variable _timezone which is set by tzset.
dstflag is set to nonzero if daylight saving time is taken into account
during time calculations.
Note: ftime calls tzset. Therefore it isn't necessary to call tzset
explicitly when you use ftime.
Return Value
None.
Borland C++ 5.0 Programmer's Guide
-- Cut here --
--
Abhijit Shylanath
Homepage: http://mudeth.tripod.com/
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software |
|
From: Graham D. <g.d...@nt...> - 2003-08-04 08:51:19
|
To just add a small amount to Abhijit's reply, think of it like this: '\n' (note: _not_ '/n') is just a character, but endl is a function that can do all sorts of things in addition to just adding a character or two to the output stream. Abhijit Shylanath wrote: >Hello, Graham. > > > >>My book defines "/n" as new line. >>And defines " endl " as end line. >>But gives me no clue as to what the difference is or when to use which. >>can anyone explain the difference to me ? >> >> > >Two differences you should know: > > '\n' is new-line to C, and to Unix, but may not be new-line to your OS. >For example, for Windows, "\r\n" is new-line. IIRC, for macs, it's just >'\r'. endl takes care of these platform specific thingies for you (as a >matter of fact, so does '\n' in files opened in text mode in STDIO, but endl >is a more graceful and conformant solution. > > Next, endl makes sure that the text that you've written is flushed. Most >streams have a buffer, so that when you write to them, the connected device >or file is not updated instantly, but the results are stored in memory (this >is for reasons of speed). endl makes sure that they (the files or devices) >are updated. > > If in doubt, use endl. If you're working with raw data (binary files or >such), then you will have to use '\n'. When you start working with binary >files, you should be able to tell the difference anyway, if your book is any >good. > >Hope this helps. > >-- >Abhijit Shylanath >Homepage: http://mudeth.tripod.com/ > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: Michael D. S. <for...@hi...> - 2003-08-04 07:30:33
|
I notice that Dev C++ has fcntl.h. My UNIX book says fcntl is the only file lock that works ( is implemented ) across all UNIX platforms. Working on my home computer it seems that Windows always locks a file that's in use, but then this is not a server. About those I know nothing. Dev C++ is a Windows version and it has fcntl so I'm "assuming" it's a Windows compatible implementation but, if so, does it still work if the executable is copied to a UNIX machine, or does it have to be compiled on the machine it's going to be ran on? Anyone have any experience with this? Any advice? ms |
|
From: David M. <ci...@ya...> - 2003-08-04 02:42:59
|
Hmm, That would work. The only slow down would be when a description changes. If it is the same size we are fine if it is different then the indexes for all the records that follow would have to be updated. There will be more reads than writes anyway. Sincerly David Mcken ----- Original Message ----- From: "Joel Bushart" <bus...@be...> To: <ci...@ya...> Sent: Sunday, August 03, 2003 9:46 PM Subject: Re: [Dev-C++] Quick flat-file searching and I/O > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David McKen wrote: > > | Small problem. > | > | Room descriptions are strings of variable length. Also the > | exit descriptions > | are included in the same structure(also varible length > | strings). This can > | cause the size of a room to vary greatly). > | > | This might still work if I were to put a limit on how long > | a room > | description could be and padd shorter descriptions to make > | it equal the > | standard size > | > > Perhaps, you could have two files one holding the data and one holding a > ~ index of the data in an array or bintree. Say you wanted to load room 50 > you look it up in the index file (or array if you pre-load it into > memory) and then read that location using fseek. > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE/LbsC5Wf7lt1ATJ4RAr0pAJwKLhW1CfdtDMUu5Snli15zNDKL7wCeOPpv > NJonQxtZfspRYrdLfUSCGUQ= > =Xc1/ > -----END PGP SIGNATURE----- > __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
|
From: <lis...@da...> - 2003-08-03 19:52:37
|
I will try that, once I find the sources... Thanks for your reply! Your Message: (Sunday, August 03, 2003, 10:51:28 AM) OB> Dennis Möhlmann wrote: >> Oops, didn't know the linker can any other error messages than this one (never >> received a different error so far...) >> >> (hope this doesn't get wrapped...) >> >> g++.exe ../_obj/BlackMagic3D.o ../_obj/world.o ../_obj/entity.o ../_obj/engine.o ../_obj/model.o ../_obj/winmsg.o ../_obj/viewport.o ../_obj/keyboard.o ../_obj/renderer.o ../_obj/image.o -o >> "..\_exe\BlackMagic3D.exe" -L"C:/Programme/Dev-Cpp/lib" -mwindows -lopengl32 -lglu32 -lglaux -lwinmm -ljpeg >> >> ../_obj/image.o(.text+0x68e):image.cpp: undefined reference to `jpeg_std_error(jpeg_error_mgr*)' >> ../_obj/image.o(.text+0x6ad):image.cpp: undefined reference to `jpeg_CreateDecompress(jpeg_decompress_struct*, int, unsigned)' >> ../_obj/image.o(.text+0x6c2):image.cpp: undefined reference to `jpeg_stdio_src(jpeg_decompress_struct*, _iobuf*)' >> ../_obj/image.o(.text+0x6d6):image.cpp: undefined reference to `jpeg_read_header(jpeg_decompress_struct*, int)' >> ../_obj/image.o(.text+0x6e8):image.cpp: undefined reference to `jpeg_start_decompress(jpeg_decompress_struct*)' >> ../_obj/image.o(.text+0x7f0):image.cpp: undefined reference to `jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)' >> ../_obj/image.o(.text+0x828):image.cpp: undefined reference to `jpeg_finish_decompress(jpeg_decompress_struct*)' >> ../_obj/image.o(.text+0x83a):image.cpp: undefined reference to `jpeg_destroy_decompress(jpeg_decompress_struct*)' OB> Well, it sais, it has undefined references of jpeg functions. OB> I have no idea though why it has them, as the jpeg library has these OB> functions. OB> Maybe you should try to recompile the jpeg library from the code. OB> -- OB> Greetings, OB> Balázs -- Best regards, Dennis mailto:lis...@da... |
|
From: <or...@vp...> - 2003-08-03 18:22:13
|
Pukara Rob wrote: > Since you have worked in windows, could you tell me: time_t or this kind > of things are not used in windows? I asked because I open both files: > time.h and timeb.h and while time.h seems very complete (with the > definition of time_t for instance) , timeb.h seems incomplete. Is there > a equivalent of time_t for windows. Is the file timeb.h correct? Or for > that matter should I cheat the compiler and make it think we are in > windows....hummm. I am confused. Are those files complete? Sorry for so > many questions, it is that I want to start working already and I am > stuck in the no compilation problem and the Aria guys dont answer me yet :( Simply include <time.h> or <sys/time.h>, it's all the same, as <sys/time.h> actually includes only <time.h> That's all you need to do. Change the Aria headers directly, or make the time.h include yourself, before the Aria includes. Anyway, what is this "Aria" system, that you use? -- Greetings, Balazs |
|
From: Abhijit S. <mu...@gm...> - 2003-08-03 18:18:47
|
Hello, Graham. > My book defines "/n" as new line. > And defines " endl " as end line. > But gives me no clue as to what the difference is or when to use which. > can anyone explain the difference to me ? Two differences you should know: '\n' is new-line to C, and to Unix, but may not be new-line to your OS. For example, for Windows, "\r\n" is new-line. IIRC, for macs, it's just '\r'. endl takes care of these platform specific thingies for you (as a matter of fact, so does '\n' in files opened in text mode in STDIO, but endl is a more graceful and conformant solution. Next, endl makes sure that the text that you've written is flushed. Most streams have a buffer, so that when you write to them, the connected device or file is not updated instantly, but the results are stored in memory (this is for reasons of speed). endl makes sure that they (the files or devices) are updated. If in doubt, use endl. If you're working with raw data (binary files or such), then you will have to use '\n'. When you start working with binary files, you should be able to tell the difference anyway, if your book is any good. Hope this helps. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2003-08-03 18:02:23
|
> Since you have worked in windows, could you tell me: time_t or this kind
of things are not used > in windows? I asked because I open both files:
time.h and timeb.h and while time.h seems very
> complete (with the definition of time_t for instance) , timeb.h seems
incomplete. Is there a
> equivalent of time_t for windows. Is the file timeb.h correct? Or for that
matter should I
> cheat the compiler and make it think we are in windows....hummm. I am
confused. Are those files
> complete? Sorry for so many questions, it is that I want to start working
already and I am
> stuck in the no compilation problem and the Aria guys dont answer me yet
:(
Hello, Pukara.
Try #including <time.h> before all your Aria headers. <time.h> is ANSI, and
is portable. I don't know why they've decided not to work with it on
Windows, but you can try it out anyway.
Specifically:
* time_t is legal.
* timeb.h is the header for the Unix ftime() function, and is not ANSI.
Here's a dump of what my reference says about ftime():
-- Cut here --
Syntax
#include <sys\timeb.h>
void ftime(struct timeb *buf)
Description
Stores current time in timeb structure.
On UNIX platforms ftime is available only on System V systems.
ftime determines the current time and fills in the fields in the timeb
structure pointed to by buf. The timeb structure contains four fields: time,
millitm, _timezone, and dstflag:
struct timeb {
long time ;
short millitm ;
short _timezone ;
short dstflag ;
};
time provides the time in seconds since 00:00:00 Greenwich mean time (GMT)
January 1 1970.
millitm is the fractional part of a second in milliseconds.
_timezone is the difference in minutes between GMT and the local time. This
value is computed going west from GMT. ftime gets this field from the global
variable _timezone which is set by tzset.
dstflag is set to nonzero if daylight saving time is taken into account
during time calculations.
Note: ftime calls tzset. Therefore it isn't necessary to call tzset
explicitly when you use ftime.
Return Value
None.
Borland C++ 5.0 Programmer's Guide
-- Cut here --
--
Abhijit Shylanath
Homepage: http://mudeth.tripod.com/
|
|
From: Abhijit S. <mu...@gm...> - 2003-08-03 17:42:45
|
> thanks for your quick reply. The compiler itself is a modified > gcc for ARM processors. The SDKs which contains the compilers If it is a modified gcc, which way is it modified in? Does it take the same command-line arguments as GCC? Does it output errors in the same way? In other words, is the interface the same? If it is, it should work in Dev, without the need for any hack. Only if the interface is different (different output format, different arguments, different filenames, etc.), do we have to think about other ways. I presume that you've tried it and failed? > http://www.symbian .com/developer/SDKs.html > > (purpose of the SDKs is integration with Metroworks Codewarrior IDE) > > The downloads are huge and a big hassle to install ! > > In case you choose to install the SDKs, do not install the > emulator for the UIQ-SDK, beacuse it requires the Metroworks IDE. > Otherwise I can sent you (next week) just the (automatically > generated) makefiles for some example projects, maybe this is > enough, and you do not need to install the SDKs. What do you think ? Yes, I'll look at those first, since I am horrified at the prospect of a huge download; I'm a poor little dial-up user. :'-( I will need a log of a compilation session also (along with the makefile for that session). -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: P.D. v. Z. <pa...@my...> - 2003-08-03 16:58:39
|
Yes, I found those settings soon after I sent the mail... but the point of my e-mail is still valid though... I think the _default_ behaviour, the default shortcuts, should be changed... without the user having to change it him/herself first. The shortcuts Ctrl+F4 and Alt+F4 have a clearly defined behaviour for all Windows applications, and deviating from that is frustrating to the user. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Carlos Garc=EDa del Monte Sent: Sunday, August 03, 2003 5:52 PM To: OROSZI Bal=E1zs Cc: dev...@li... Subject: Re: [Dev-C++] Default shortcut change You can change it in Tools->configure shortcuts. OROSZI Bal=E1zs wrote: > P.D. van Zelst wrote: > >> I wonder if this will get considered at all, but anyway. I find the=20 >> default shortcut for closing the current file quite annoying (I don't >> even know if it's customizable)... Alt+F4 is used throughout Windows=20 >> for closing the entire application, and Ctrl+F4 is used (within MDI=20 >> apps) for closing the current MDI child window... it's not proper=20 >> style for >> Dev-C++ to go ahead and switch those around.. using Alt+F4 for=20 >> Dev-C++ closing a >> file (and I can't seem to find a shortcut for closing the=20 >> application). I wonder if this could be changed to the default=20 >> Windows behaviour... >> Alt+F4 for closing the application, Ctrl+F4 for closing the current >> file. > > > I also find this VERY annoying. I hope the devs will fix it sometime. > > -- > Greetings, > Bal=E1zs > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now.=20 > Download today and enter to win an XBOX or Visual Studio .NET.=20 > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_ > 01/01 > > _______________________________________________ > Dev-cpp-users mailing list Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <ten...@ne...> - 2003-08-03 15:56:10
|
You can change it in Tools->configure shortcuts. OROSZI Balázs wrote: > P.D. van Zelst wrote: > >> I wonder if this will get considered at all, but anyway. I find the >> default shortcut for closing the current file quite annoying (I don't >> even know if it's customizable)... Alt+F4 is used throughout Windows for >> closing the entire application, and Ctrl+F4 is used (within MDI apps) >> for closing the current MDI child window... it's not proper style for >> Dev-C++ to go ahead and switch those around.. using Alt+F4 for closing a >> file (and I can't seem to find a shortcut for closing the application). >> I wonder if this could be changed to the default Windows behaviour... >> Alt+F4 for closing the application, Ctrl+F4 for closing the current >> file. > > > I also find this VERY annoying. I hope the devs will fix it sometime. > > -- > Greetings, > Balázs > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Pukara R. <puk...@ya...> - 2003-08-03 15:31:54
|
Thank you for the quick answer: >I dunno. >What exactly is this library, that you are working with? Well it says: ArLog is a utility class to log all messages from Aria to a choosen destintation. Messages can be logged to stdout, stderr, a file, and turned off completely. Logging by default is set to stdout. The level of logging can be changed as well. Allowed levels are Terse, Normal, and Verbose. By default the level is set to Normal. Aria is the system I am using. \\\\\\\\\\\\\\\\\\\\\\\\\\\ Since you have worked in windows, could you tell me: time_t or this kind of things are not used in windows? I asked because I open both files: time.h and timeb.h and while time.h seems very complete (with the definition of time_t for instance) , timeb.h seems incomplete. Is there a equivalent of time_t for windows. Is the file timeb.h correct? Or for that matter should I cheat the compiler and make it think we are in windows....hummm. I am confused. Are those files complete? Sorry for so many questions, it is that I want to start working already and I am stuck in the no compilation problem and the Aria guys dont answer me yet :( thanks a lot OROSZI_Bal#30169;s <or...@vp...> wrote: Yes, as you see, it tells you, that time_t is not declared. Which means, that (assuming you have -DWIN32 on command line) sys/timeb.h is not going to be good for you. I suppose, that they used MSVC for the library's Windows port, and probably sys/timeb.h worked well for them. It is only my guess though. Anyway, if you look at , you'll notice, that it actually includes , which has time_t. So what you need is: I guess you already noticed all the above, as you asked about the difference details. I cannot tell you that, as I have never worked with time stuff under linux. Maybe a linux guru here can tell you more. I hope this helps. -- Greetings, Bal#30169;s ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |
|
From: w.y. <yok...@be...> - 2003-08-03 12:26:57
|
airam wrote:
>
> #include <time.h>
> #include <stdlib.h>
> #include <stdio.h>
>
> main()
> {
> int rolls=1;
> char tel[100];
>
> srand((unsigned int)time((time_t *)NULL));
> while(rolls--)
> {
> sprintf(tel,"telnet %d.%d.%d.%d",
> (rand()%254)+1,(rand()%254)+1,(rand()%254)+1,(rand()%254)+1);
>
> }
> system("tel");
> return 0;
> }
You're sending your system "tel" but unless you have a program
called "tel" you get what you got on your system.
Try:
system(tel);
|
|
From: <or...@vp...> - 2003-08-03 08:51:32
|
Dennis Möhlmann wrote: > Oops, didn't know the linker can any other error messages than this one (never > received a different error so far...) > > (hope this doesn't get wrapped...) > > g++.exe ../_obj/BlackMagic3D.o ../_obj/world.o ../_obj/entity.o ../_obj/engine.o ../_obj/model.o ../_obj/winmsg.o ../_obj/viewport.o ../_obj/keyboard.o ../_obj/renderer.o ../_obj/image.o -o "..\_exe\BlackMagic3D.exe" -L"C:/Programme/Dev-Cpp/lib" -mwindows -lopengl32 -lglu32 -lglaux -lwinmm -ljpeg > > ../_obj/image.o(.text+0x68e):image.cpp: undefined reference to `jpeg_std_error(jpeg_error_mgr*)' > ../_obj/image.o(.text+0x6ad):image.cpp: undefined reference to `jpeg_CreateDecompress(jpeg_decompress_struct*, int, unsigned)' > ../_obj/image.o(.text+0x6c2):image.cpp: undefined reference to `jpeg_stdio_src(jpeg_decompress_struct*, _iobuf*)' > ../_obj/image.o(.text+0x6d6):image.cpp: undefined reference to `jpeg_read_header(jpeg_decompress_struct*, int)' > ../_obj/image.o(.text+0x6e8):image.cpp: undefined reference to `jpeg_start_decompress(jpeg_decompress_struct*)' > ../_obj/image.o(.text+0x7f0):image.cpp: undefined reference to `jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)' > ../_obj/image.o(.text+0x828):image.cpp: undefined reference to `jpeg_finish_decompress(jpeg_decompress_struct*)' > ../_obj/image.o(.text+0x83a):image.cpp: undefined reference to `jpeg_destroy_decompress(jpeg_decompress_struct*)' Well, it sais, it has undefined references of jpeg functions. I have no idea though why it has them, as the jpeg library has these functions. Maybe you should try to recompile the jpeg library from the code. -- Greetings, Balázs |
|
From: airam <ai...@so...> - 2003-08-03 08:18:41
|
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
main()
{
int rolls=1;
char tel[100];
srand((unsigned int)time((time_t *)NULL));
while(rolls--)
{
sprintf(tel,"telnet %d.%d.%d.%d",
(rand()%254)+1,(rand()%254)+1,(rand()%254)+1,(rand()%254)+1);
}
system("tel");
return 0;
}
i have the following error
'tel' is not recognized as an internal or external command,operable
program or batch file!!!
some help????
|
|
From: <or...@vp...> - 2003-08-03 08:09:22
|
P.D. van Zelst wrote: > It's fixed within a matter of seconds, it's only a matter of will :P > I installed Delphi 7 myself, and downloaded the source of Dev-C++, but > didn't feel like getting into the details of yet another project :) A > while ago I used Borland C++Builder for my job (was company policy.. I > don't like C++Builder nor Delphi at all), and I more or less know how > those products work... it's just a matter of changing one property for a > control somewhere, and all the irritations are gone :) Okay, but I for me, it also a matter of money, as I don't have Delphi. Also, it would be better, if it was fixed "offically". -- Greetings, Balázs |
|
From: <lis...@da...> - 2003-08-03 08:02:23
|
Oops, didn't know the linker can any other error messages than this one (never received a different error so far...) (hope this doesn't get wrapped...) g++.exe ../_obj/BlackMagic3D.o ../_obj/world.o ../_obj/entity.o ../_obj/engine.o ../_obj/model.o ../_obj/winmsg.o ../_obj/viewport.o ../_obj/keyboard.o ../_obj/renderer.o ../_obj/image.o -o "..\_exe\BlackMagic3D.exe" -L"C:/Programme/Dev-Cpp/lib" -mwindows -lopengl32 -lglu32 -lglaux -lwinmm -ljpeg ../_obj/image.o(.text+0x68e):image.cpp: undefined reference to `jpeg_std_error(jpeg_error_mgr*)' ../_obj/image.o(.text+0x6ad):image.cpp: undefined reference to `jpeg_CreateDecompress(jpeg_decompress_struct*, int, unsigned)' ../_obj/image.o(.text+0x6c2):image.cpp: undefined reference to `jpeg_stdio_src(jpeg_decompress_struct*, _iobuf*)' ../_obj/image.o(.text+0x6d6):image.cpp: undefined reference to `jpeg_read_header(jpeg_decompress_struct*, int)' ../_obj/image.o(.text+0x6e8):image.cpp: undefined reference to `jpeg_start_decompress(jpeg_decompress_struct*)' ../_obj/image.o(.text+0x7f0):image.cpp: undefined reference to `jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)' ../_obj/image.o(.text+0x828):image.cpp: undefined reference to `jpeg_finish_decompress(jpeg_decompress_struct*)' ../_obj/image.o(.text+0x83a):image.cpp: undefined reference to `jpeg_destroy_decompress(jpeg_decompress_struct*)' Your Message: (Saturday, August 02, 2003, 9:20:42 PM) OB> Dennis Möhlmann wrote: >> Hello dev-cpp-users, >> >> I want to compile code from an OpenGL tutorial that uses libjpeg to read >> textures from a jpeg file. Unfortunatly, whenever I try to compile the code, I >> get linker errors for all libjpeg functions. (I use the -ljpeg parameter.) >> >> I searched the Dev C++ forums and a lot of other people seem to have the same >> problem, but none of them received a helpful reply. Maybe somebody here knows >> a sollution ? OB> Yes, I know the solution. OB> But I'll keep it a secret, until you tell me the errors you get. ;) OB> -- OB> Greetings, OB> Balázs -- Best regards, Dennis mailto:lis...@da... |
|
From: Graham <sai...@bi...> - 2003-08-03 03:07:49
|
woops ... here is the question :) I am a newbie fighting my way through a C tutorial My book defines "/n" as new line. And defines " endl " as end line. But gives me no clue as to what the difference is or when to use which. can anyone explain the difference to me ? regards Graham |
|
From: Ed C. <em...@ed...> - 2003-08-03 02:48:25
|
What was your question? -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Graham Sent: Saturday, August 02, 2003 9:45 PM To: dev...@li... Subject: [Dev-C++] Newbie Q " /n " or " endl" ? ----- Original Message ----- From: "Ed Cottrell" <em...@ed...> To: <dev...@li...> Sent: Sunday, August 03, 2003 8:31 AM Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > Yeoh - > > That was perfect! Thank you. I'll be bookmarking your homepage! God > bless. > > -Ed > > > -----Original Message----- > From: Yeoh HS [mailto:ye...@ye...] > Sent: Thursday, July 31, 2003 10:10 PM > To: Ed Cottrell; dev...@li... > Subject: Re: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > > ----- Original Message ----- > From: "Ed Cottrell" <em...@ed...> > That's just it - I don't know how to connect to the database from C or C++. > I know the database end of things (SQL, recordsets, all that); I just don't > know how to access the database, at all, with C code. -Ed > > Hi, > > I have written an example program that shows how to access Microsoft Access > databases using Dev-C++ without requiring the end-user to set up a > DSN.. > > By changing the connection string, you should be able to access FoxPro > databases. > > To download the free example program, the URL is: > http://www.yeohhs.com/free/portal.asp > > Best Regards, > Yeoh > -- > P.S. More free downloads for Dev-C++ users at http://www.yeohhs.com > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |