dev-cpp-users Mailing List for Dev-C++ (Page 97)
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: Reid T. <rei...@at...> - 2005-11-30 15:42:57
|
Jason Benjamin wrote:
>In order to convert time_create I probably must use
>time_t or something. How do I do the actual
>conversion though?
>
>//************************
>#include <io.h>
>#include <stdio.h>
>#include <string.h>
>int i = 0;
>int m=0;
>char filelist[100][100];
>
>struct _finddata_t fd;
>
>
>int main() {
>long fh = _findfirst("*.*", &fd);
>
>
>if (fh != -1) {
>
>
> do {
> if (fd.attrib & _A_SUBDIR);
>
>
> else sprintf(filelist[i++], fd.time_create);
>
> }
> while (_findnext(fh, &fd) == 0);
>
>m=i;
>for (i=0; i < m; i++) printf("%s\n", filelist[i]);
>system("pause");
>_findclose(fh);
>}
>return 0;
>}
>
>
See comment 3.1 at the bottom. (
http://www.faqs.org/faqs/unix-faq/faq/part3/section-1.html)
modified from
http://www.unix-ag.uni-siegen.de/docs/unix/unix.html#SEC168 ( should
provide the answer you are requesting).
/********************************************************************/
/* */
/* Reading directories and `statting' files */
/* */
/* modified from
http://www.unix-ag.uni-siegen.de/docs/unix/unix.html#SEC168 */
/********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#define DIRNAME "."
#define bufsize 1024
/********************************************************************/
int main()
{
DIR *dirh;
struct dirent *dirp;
struct stat statbuf;
char pathname[bufsize];
char *linkname[bufsize];
if ((dirh = opendir(DIRNAME)) == NULL)
{
perror("opendir");
exit(1);
}
for (dirp = readdir(dirh); dirp != NULL; dirp = readdir(dirh))
{
if (strcmp(".", dirp->d_name) == 0 || strcmp("..", dirp->d_name)
== 0)
{
continue;
}
if (strcmp("lost+found", dirp->d_name) == 0)
{
continue;
}
sprintf(pathname, "%s/%s", DIRNAME, dirp->d_name);
if (lstat(pathname, &statbuf) == -1) /* see man stat */
{
perror("stat");
continue;
}
if (S_ISREG(statbuf.st_mode))
{
printf("%s is a regular file\n", pathname);
};
if (S_ISDIR(statbuf.st_mode))
{
printf("%s is a directory\n", pathname);
}
if (S_ISLNK(statbuf.st_mode))
{
bzero(linkname, bufsize); /* clear string */
readlink(pathname, linkname, bufsize);
printf("%s is a link to %s\n", pathname, linkname);
}
printf("The mode of %s is %o\n\n", pathname, statbuf.st_mode &
07777);
printf("The c_time is %ld\n\n", statbuf.st_ctime);
printf("This is local time of %s\n\n",
asctime(localtime(&statbuf.st_ctime)));
}
closedir(dirh);
}
3.1) How do I find the creation time of a file?
You can't - it isn't stored anywhere. Files have a last-modified
time (shown by "ls -l"), a last-accessed time (shown by "ls -lu")
and an inode change time (shown by "ls -lc"). The latter is often
referred to as the "creation time" - even in some man pages -
but that's wrong; it's also set by such operations as mv, ln,
chmod, chown and chgrp.
The man page for "stat(2)" discusses this.
|
|
From: Guillermo G. <ggu...@ma...> - 2005-11-30 15:23:24
|
go to www.codeblocks.org , you will find reference to the forums for it = there. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Mark L. Wise Sent: Wednesday, November 30, 2005 7:07 AM To: dev...@li... Subject: RE: [Dev-C++] roadmap I have some questions about codeblocks and wxWidgets. Is there another = list supporting codeblocks??? Thanks! Mark > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Einar > Forselv > Sent: Wednesday, November 23, 2005 12:12 PM > Cc: dev...@li... > Subject: Re: [Dev-C++] roadmap > > > lordSauron wrote: > > >Perhaps we should actually make it in C++ and then use some > >open-source cross-platform UI library, like FLTK or something... > > > > > This is already done, except that they are using wxWidgets. I checked > out the Code::Blocks project today... and I just have to say.. use it! = I > would call Code::Blocks "Dev-C++2" because any Dev-C++ user will adapt > to it in minutes. You can import Dev-C++ projects and use Devpacks = just > like before.. and Code::Blocks have everything Dev-C++ didnt have. > > http://codeblocks.org/ > > Just move on to Code::Blocks. Thats where all the Dev-C++ devs are > anyway :-) > > Version 1.0 RC2 works much better than Dev-C++ in its current state = that > will probably never change. > > -- > Einar Forselv > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > 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 is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick _______________________________________________ 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: Mark L. W. <ma...@al...> - 2005-11-30 15:05:49
|
I have some questions about codeblocks and wxWidgets. Is there another list supporting codeblocks??? Thanks! Mark > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Einar > Forselv > Sent: Wednesday, November 23, 2005 12:12 PM > Cc: dev...@li... > Subject: Re: [Dev-C++] roadmap > > > lordSauron wrote: > > >Perhaps we should actually make it in C++ and then use some > >open-source cross-platform UI library, like FLTK or something... > > > > > This is already done, except that they are using wxWidgets. I checked > out the Code::Blocks project today... and I just have to say.. use it! I > would call Code::Blocks "Dev-C++2" because any Dev-C++ user will adapt > to it in minutes. You can import Dev-C++ projects and use Devpacks just > like before.. and Code::Blocks have everything Dev-C++ didnt have. > > http://codeblocks.org/ > > Just move on to Code::Blocks. Thats where all the Dev-C++ devs are > anyway :-) > > Version 1.0 RC2 works much better than Dev-C++ in its current state that > will probably never change. > > -- > Einar Forselv > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > 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: Johannes P. <joh...@pr...> - 2005-11-30 06:04:35
|
Some ekstra information http://www.geocities.com/SiliconValley/2151/pcgpe.html Very nice, used this years ago and is worth the download. has lot of tips and articals that can help Good luck Johannes At 06:37 PM 29/11/2005, Dimitar wrote: >I use Dev C++ and I make a console application, because I am 3-th year in the University but in Bulgaria. And also I am the only one student that try to use something different from Boland C++ for DOS :) So now i want to ask you how to include graphic lib in my project. I read the help of Borland C++ but Dev C don't want to compile this code? I need to make a small graphic editor for DOS. The other option is ti make it in Pascal, but i want in C++. I think this is the way to learn it. > >-- >S uvajenie, >Dimitar Stoyanov Dimitrov >ICQ: 106627618 >GSM: 0898 633 704 > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >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 > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28/11/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28/11/2005 |
|
From: Johannes P. <joh...@pr...> - 2005-11-30 05:15:46
|
Good day Dimitar =-00-=-=0-=-==90=--0 If you really have the time and want to learn and play at the same time. I would suggest that you go read some of these articals and look at the demo programs. I had all of these, but have to search for them. Basically you will learn C/C++ very good and know more about what is going on. In short it will make your experience better in C and at least YOU will know what is going on with the graphics beings wriiten and not just be a oak that does not know what REALLY is happening in the background. A MUST DOWNLOAD AND READ - Michael Abrash - Graphics Programming Black Book http://www.gamedev.net/reference/articles/article1698.asp Some extra info http://www.gameprogrammer.com/3-tweak.html http://www.programmersheaven.com/zone10/cat103/ http://www.gamedev.net/reference/articles/article315.asp NICE Resource and info place http://www.freeprogrammingresources.com/gamebooks.html Some LOW down info. http://www.faqs.org/faqs/assembly-language/x86/general/part2/ I believe this will help you otherwise check http://www.programmersheaven.com and http://www.freeprogrammingresources.com For resource (libraries) that already done the graphics you just use it likes Borlands graphics lib. Good luck Johannes At 06:37 PM 29/11/2005, Dimitar wrote: >I use Dev C++ and I make a console application, because I am 3-th year in the University but in Bulgaria. And also I am the only one student that try to use something different from Boland C++ for DOS :) So now i want to ask you how to include graphic lib in my project. I read the help of Borland C++ but Dev C don't want to compile this code? I need to make a small graphic editor for DOS. The other option is ti make it in Pascal, but i want in C++. I think this is the way to learn it. > >-- >S uvajenie, >Dimitar Stoyanov Dimitrov >ICQ: 106627618 >GSM: 0898 633 704 > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >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 > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28/11/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28/11/2005 |
|
From: Leon Lai-N. <le...@nt...> - 2005-11-30 04:38:57
|
Try Widget library but for details I am not sure. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Dimitar Sent: Wednesday, November 30, 2005 12:37 AM To: dev...@li... Subject: [Dev-C++] how to make a graphic I use Dev C++ and I make a console application, because I am 3-th year in the University but in Bulgaria. And also I am the only one student that try to use something different from Boland C++ for DOS :) So now i want to ask you how to include graphic lib in my project. I read the help of Borland C++ but Dev C don't want to compile this code? I need to make a small graphic editor for DOS. The other option is ti make it in Pascal, but i want in C++. I think this is the way to learn it. -- S uvajenie, Dimitar Stoyanov Dimitrov ICQ: 106627618 GSM: 0898 633 704 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ 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: Dimitar <dim...@gm...> - 2005-11-29 16:37:44
|
I use Dev C++ and I make a console application, because I am 3-th year in the University but in Bulgaria. And also I am the only one student that try to use something different from Boland C++ for DOS :) So now i want to ask you how to include graphic lib in my project. I read the help of Borland C++ but Dev C don't want to compile this code? I need to make a small graphic editor for DOS. The other option is ti make it in Pascal, but i want in C++. I think this is the way to learn it. -- S uvajenie, Dimitar Stoyanov Dimitrov ICQ: 106627618 GSM: 0898 633 704 |
|
From: Daniel K. O. <dan...@ya...> - 2005-11-28 16:20:38
|
Noorez Kassam wrote: > I was wondering how I could use the wofstream and wcout. I looked in > the iostream include file and wcout was there but i couldn't use it. I > was able to use the function fputwc() to write out the wchar_t to a > file, but I couldn't read it in properly. What function could i use to > read in a wchar_t? It seems like fgetwc() doesn't work... wstreams aren't supported by libstdc++. This was asked a few hours ago on MinGW-users list. See: http://sourceforge.net/mailarchive/forum.php?thread_id=9080137&forum_id=5119 http://sourceforge.net/mailarchive/forum.php?thread_id=9080676&forum_id=5119 Quotes: ---- wide IO streams are not supported because configure does not find sufficient locale support." ---- You are not bound to stdlibc++. STLPort 5.0 works pretty well with mingw and fully supports wchar_t. You may download it from http://sourceforge.net/project/showfiles.php?group_id=146814 http://sourceforge.net/forum/forum.php?forum_id=508500 ---- --- Daniel K. O. _______________________________________________________ Faça do Yahoo! sua página inicial. http://br.yahoo.com/homepageset.html |
|
From: Scott <fre...@ve...> - 2005-11-28 04:21:13
|
>That's the function prototype. You call it just like any other =
function
>remove("Void");
Doh! =20
(Looks, blankly at screen shaking head!)
Thankyou! :)
|
|
From: Josh M. <mrl...@gm...> - 2005-11-28 03:59:38
|
That's the function prototype. You call it just like any other function:
remove("Void");
On 11/27/05, Scott <fre...@ve...> wrote:
>
> Hi Guys,
>
> I'm trying to delete a file (Windows XP Pro)
> that i wrote using fwrite.
>
> To my surprise this seems slightly more trivial
> than i expected. (i'm using DevC/C++)
> Some confusion over Unlink, and remove...
> But i can't get it to work either way...
>
> I tried using "int remove(const char *myfile);"
> But it still leaves the file.
>
> Any ideas?
>
> FILE *myfile;
> myfile =3D fopen("Void","wb");
> fwrite(Obj, 1, 400, myfile);
> fclose(myfile);
> int remove(const char *myfile);
>
> Cheers,
> Scott.
>
--
Cheers,
Josh
|
|
From: Scott <fre...@ve...> - 2005-11-28 03:56:21
|
Hi Guys,
I'm trying to delete a file (Windows XP Pro)
that i wrote using fwrite.
To my surprise this seems slightly more trivial
than i expected. (i'm using DevC/C++)
Some confusion over Unlink, and remove...
But i can't get it to work either way...
I tried using "int remove(const char *myfile);"
But it still leaves the file.=20
Any ideas?
FILE *myfile;
myfile =3D fopen("Void","wb");
fwrite(Obj, 1, 400, myfile);
fclose(myfile);
int remove(const char *myfile);
Cheers,
Scott.
|
|
From: Noorez K. <lor...@ho...> - 2005-11-28 03:09:20
|
I'm having problems with the debugger. When I start it, the console window doesn't start up with it, which causes a whole bunch of problems... How could i fix this? _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Noorez K. <lor...@ho...> - 2005-11-28 02:59:11
|
I was wondering how I could use the wofstream and wcout. I looked in the iostream include file and wcout was there but i couldn't use it. I was able to use the function fputwc() to write out the wchar_t to a file, but I couldn't read it in properly. What function could i use to read in a wchar_t? It seems like fgetwc() doesn't work... _________________________________________________________________ MSN® Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Scott <fre...@ve...> - 2005-11-28 02:48:45
|
>All of you C++ or C users please quit sending me mail. Or tell me how = to unsuscribe to this subcrisption. TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Than unsubscribe, READ the bottom of your OWN message... Look, there it is, right there...... Imagine my surprise! Groan. Cheers, Scott. |
|
From: KISHAN P. <pat...@ms...> - 2005-11-28 02:30:40
|
<html><div style='background-color:'><P><BR><BR></P><BR>All of you C++ or C users please quit sending me mail. Or tell me how to unsuscribe to this subcrisption.<BR><BR><BR> <DIV><FONT face="Lucida Handwriting, Cursive" color=#ff0000 size=5>K.N.P</FONT></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2731??PS=47575" target="_top">Create your own custom mailing list called Groups with MSN Hotmail</a> </html> |
|
From: N D <nc...@ya...> - 2005-11-28 01:46:19
|
Got it, Thanks. Norm. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
|
From: lordSauron <lor...@gm...> - 2005-11-27 06:14:39
|
quite simply, you shouldn't break yourself to make the program idiot-proof. if you do, the world will just make a better idiot.=20 Don't think too hard about problems that aren't of your making - if it breaks, it really isn't your fault. however, this is to be taken within reason - whacking the x key whenever going to save your file to prevent a system lockup, while some lazy nuts could call it the users' problem, really is your problem. but in most instances, don't worry about idiots - things need to backfire on 'em *sometime...* |
|
From: Robert A. <ral...@gm...> - 2005-11-27 05:19:14
|
You have two options... first you need to understand that the OS is passing
the command like arguments to the program and that the OS determines how th=
e
arguments are separated.
So the easily way to handle it would be to change how the program is run
which would tell the OS that the first argument contains spaces.
./a.out "file name with spaces"
./a.out 'file name with spaces'
the other way to do it would be to assume that there is only one argument t=
o
your application (or that the last argument is the filename) and then build
up your filename and include spaces between arguments provided by the OS,
but you will have problems if there are two adjacent spaces with this
method.
./a,out file name with spaces
....
int main(int argc , char * argv[] )
{
char * filename =3D NULL;
unsigned int length =3D 0 ;
unsigned int marker =3D 0 ;
if ( argc <=3D 1 ) then exit(1) ;
for ( int i =3D 1 ; i < argc ; ++i )
length +=3D strlen(argv[i]) + 1 ;
filename =3D malloc(length);
for ( int i =3D 1 ; i < argc ; ++i )
{
for ( int j =3D 0 ; j < strlen(argv[i]) ; ++j )
filename[marker++] =3D argv[i][j] ;
filename[marker++] =3D ' ' ; /* inserting spaces between shell argumen=
ts
*/
}
/* backup and insert end of string marker */
filename[marker - 1] =3D '\0' ;
.....
......
On 11/26/05, Noorez Kassam <lor...@ho...> wrote:
>
> For a program i'm making, i need to pass a file name, but if it has a
> space,
> it seems to pass as two arguments, how do get aroung this problem?
>
> _________________________________________________________________
> Powerful Parental Controls Let your child discover the best the Internet
> has
> to offer.
>
> http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines
> Start enjoying all the benefits of MSN(r) Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
> _______________________________________________
> 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: Noorez K. <lor...@ho...> - 2005-11-27 04:41:07
|
For a program i'm making, i need to pass a file name, but if it has a space, it seems to pass as two arguments, how do get aroung this problem? _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Darryl C. <sma...@gm...> - 2005-11-27 02:18:11
|
On 10/2/05, Andreas Moroder <and...@gm...> wrote: > Hello, > > is there documentation available on how to setup a working combination > of dev-cpp and qt4. Has there ever been a good, concise solution to this? I am trying to get qt4 setup with dev c++ to build, but it's not going so smoothly... Any assistance will be welcome. -- ~ Darryl ~ sma...@gm... http://smartssa.com / http://darrylclarke.com |
|
From: Jason B. <red...@ya...> - 2005-11-26 21:39:43
|
In order to convert time_create I probably must use
time_t or something. How do I do the actual
conversion though?
//************************
#include <io.h>
#include <stdio.h>
#include <string.h>
int i = 0;
int m=0;
char filelist[100][100];
struct _finddata_t fd;
int main() {
long fh = _findfirst("*.*", &fd);
if (fh != -1) {
do {
if (fd.attrib & _A_SUBDIR);
else sprintf(filelist[i++], fd.time_create);
}
while (_findnext(fh, &fd) == 0);
m=i;
for (i=0; i < m; i++) printf("%s\n", filelist[i]);
system("pause");
_findclose(fh);
}
return 0;
}
|
|
From: Josh M. <mrl...@gm...> - 2005-11-26 20:00:50
|
http://www.codeblocks.org On 11/26/05, N D <nc...@ya...> wrote: > > I Decided to migrate over to C++ a couple years ago, messed with a few > compilers, and because of my employeement, thing have been slow, but I am > trudging forward. I dabble with VS6, VS.net, like Dev-C++ better, but I > have no problem adding to the list. So tell me where can I get this > Code::Blocks? > > Norm. > > > ------------------------------ > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.<http:/= /pa.yahoo.com/*http://us.rd.yahoo.com/evt=3D36035/*http://music.yahoo.com/u= nlimited/> > > -- Cheers, Josh |
|
From: N D <nc...@ya...> - 2005-11-26 19:50:05
|
I Decided to migrate over to C++ a couple years ago, messed with a few compilers, and because of my employeement, thing have been slow, but I am trudging forward. I dabble with VS6, VS.net, like Dev-C++ better, but I have no problem adding to the list. So tell me where can I get this Code::Blocks? Norm. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
|
From: Josh M. <mrl...@gm...> - 2005-11-25 01:11:35
|
Gah, I forogt to change the send recipient. ---------- Forwarded message ---------- From: Josh Matthews <mrl...@gm...> Date: Nov 24, 2005 8:11 PM Subject: Re: [Dev-C++] CodeBlocks To: Scott <fre...@ve...> I highly recommend checking out RC3 when it comes out, then (which should b= e pretty soon!). There's a lot of changes under the hood, many features are faster and others bugfixed, and support for single files instead of project= s has been added, just to name some of the differences. On 11/24/05, Scott <fre...@ve...> wrote: > > > As much as DevC++ works for me while I attempt to learn C++, is there a > > good reason not to switch to CodeBlocks if that is where the developmen= t > > is going to be for an IDE? And, by the way, what does a "workspace" do > for > > you? > > While CodeBlocks may be off to a good start, it's still lacking in some > DevC > usefulness, Yesterday i had a 08 octal error in a large array, the > compiler > in DevC++ > managed to give me the line, and column the error appeared in, i.e Line 1= 3 > - > 39... > CodeBlocks, will only give me the line where the error, is not the > column.... > I find this extra DevC feature, quite handy. > > I can't right click on a project or file, and rename it..... (as DevC can= ) > > And even right clicking on project properties, does not work. > > In Dev C++ you can hit, File - New Source File, and start typing > and hit compile and it does...... (no need to create a project) > CodeBlocks, just sits there saying "Nothing to be Done" > It doesn't seem to have any Glut templates, either.. > > That's just the little stuff, that i found a little crap yesterday, > Overall, Codebocks is a nice start, and offers some nice features. > But i think it will be version 2 or later, before it replaces DevC/C++ fo= r > > me. > As it still seems really immature, with lots of glaring omissions..... > > Nice that i halves the size of my Exe and .dll's though...... > One to watch, but not going to be using it much just yet... > > Cheers, > Scott. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > 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 > -- Cheers, Josh -- Cheers, Josh |
|
From: Per W. <pw...@ia...> - 2005-11-25 00:27:13
|
I normally use the project options to add a single include line to the project-generated make-file. The included file is a custom makefile with the settings to use. I use a little script tool to generate this include file based on the required settings. On the command line I just specify debug or release build and the directory where the framework is installed. I made a one-time investment of an hour or two, giving me the ability to prepare a new project or switch between build alternatives within a couple of seconds. Let's say I'm building a wxWidgets application, I might run: configure_wx c:\usr\src\wxWindows-2.5.1 debug in the project directory to have the project setup to use version 2.5.1 of the debug library, complete with path settings, compiler flags etc. My main request from an IDE is to allow easy movement between multiple syntax-highlighted auto-indented source files, together with parsing of compiler messages to directly jump to source code errors. I don't care about online help, class browsers, auto-completion etc. Most editors I have tested takes too long for auto-completion so it's faster to just write all text. The only thing I dislike about Dev-C++ is that the auto-indent function so often fails - at least with the indent options I prefer. Having a IDE do everything might sound good, but if I can accomplish my work by an Alt-Tab now and then, it really doesn't matter. For example, I never try to debug an application in Dev-C++. I either make it right the first time, or I run the debugger stand-alone. An IDE that can do "everything" often starts to hamper. The amount of time fighting with the IDE tends to quickly increase. I often find a need to be able to do a lot of work from the command line. It might be automatic nightly builds, regression testing, cross-compilations etc. Then it helps if the IDE is light-weight and transparent. /Per W On Thu, 24 Nov 2005, Daniel K. O. wrote: > Per Westermark wrote: > > >But that isn't really a problem. You can find out the needed > >configurations yourself and specify in the project. > > > > > Of course, I can always paste this > > -IC:/MINGW/include/gtk-2.0 -IC:/MINGW/lib/gtk-2.0/include > -IC:/MINGW/include/atk-1.0 -IC:/MINGW/include/pango-1.0 > -IC:/MINGW/include/glib-2.0 -IC:/MINGW/lib/glib-2.0/include > > and this > > -LC:/MINGW/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 > -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 > -lgmodule-2.0 -lglib-2.0 -lintl -liconv > > whenever I need to write a quick GTK+ app. But it's obviously tiresome. > I have ~40 .pc files, I use pkg-config a lot - I even create some .pc > files for some setups I use often. > Maybe for just a single big project it isn't a burden, but if you just > want to write a small prototype, a test case, etc, it's really inconvenie= nt. > > > >While it is nice to have the project dynamically auto-adjust itself > >whenever the gtk libraries are rebuilt with other options, it is not a > >show stopper to do it manually... > > > > > And it's nice to have an IDE that was supposed to speed up the work, but > it's not a show stopper to code and invoke all the MinGW binaries in a > shell by hand. IMHO IDEs are all about usability; instead of making the > IDE recognize all the options for different compilers, the developers > should be more concerned about making a confortable environment for the > programmers (the "Project's Build Options" window is a total mess, and > there are too many entries in the main menu). > > > Code::Blocks is much superior to (R.I.P.) Dev-C++, but those little > annoyances still make me use more Dev-C++ than Code::Blocks (yes, I use > both). > > > --- > Daniel K. O. > > > > > > > _______________________________________________________ > Yahoo! Acesso Gr=E1tis: Internet r=E1pida e gr=E1tis. > Instale o discador agora! > http://br.acesso.yahoo.com/ > > > |