dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
(4) |
2
(4) |
3
(4) |
4
(9) |
5
(17) |
6
(25) |
7
(15) |
|
8
(12) |
9
(16) |
10
(22) |
11
(13) |
12
(19) |
13
(13) |
14
(8) |
|
15
(6) |
16
(19) |
17
(11) |
18
(7) |
19
(6) |
20
(10) |
21
(5) |
|
22
(2) |
23
(11) |
24
(12) |
25
(3) |
26
(13) |
27
(10) |
28
(16) |
|
29
(7) |
30
(12) |
31
(13) |
|
|
|
|
|
From: <h.r...@gm...> - 2002-12-10 20:52:02
|
try to include the path C:\Dev-Cpp\include\c++\mingw32 (if you use the default settings) in tools/compiler options/directories/c++ includes. That may help Horst > I downloaded the new version of Dev-C++ (4.9.7). But I have problems > when > I compile the project. When I compile it in version (4.9.6) the compiler > doesn't report any errors, but with version 4.9.7 the compiler reported > around 105 errors! I read a message that gave a solution, something about > including some files, but I deleted it. Can anyone help me? Your help > would > be greatly helpful. > > PS. Sorry for my English. -- Horst Rößner ICQ ID #74808448 h.r...@gm... www.hroess.net +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! |
|
From: Jose A. F. L. <alp...@ho...> - 2002-12-10 18:37:29
|
I downloaded the new version of Dev-C++ (4.9.7). But I have problems when I compile the project. When I compile it in version (4.9.6) the compiler doesn't report any errors, but with version 4.9.7 the compiler reported around 105 errors! I read a message that gave a solution, something about including some files, but I deleted it. Can anyone help me? Your help would be greatly helpful. PS. Sorry for my English. _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: Miguel M <rad...@ya...> - 2002-12-10 17:21:55
|
Hey Rodolfo, I was wondering if you can send me a copy of that file. I would like to take a look at it. Thanks. -Miguel rad...@ya... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now |
|
From: Daniel G. <sp...@ho...> - 2002-12-10 14:51:48
|
Glad you got it figured out!!! >From: Marc Heiligers <ma...@e-...> >To: dev-cpp-users-list <dev...@li...> >Subject: [Dev-C++] windres vs me (I WIN!) >Date: Tue, 10 Dec 2002 16:33:47 +0200 > >Hi All, > >Never mind, I figured it out. Don't define IDB_ABOUT in resource.h, and >then >use > >CONTROL "IDB_ABOUT", IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | >SS_REALSIZEIMAGE, 1, 1, 158, 16 > >Thanks to all of you who are frantically searching through old books and >surfing the web trying to find a an answer for me. > >_____________________________ >Marc Heiligers > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Marc H. <ma...@e-...> - 2002-12-10 14:30:17
|
Hi All, Never mind, I figured it out. Don't define IDB_ABOUT in resource.h, and then use CONTROL "IDB_ABOUT", IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZEIMAGE, 1, 1, 158, 16 Thanks to all of you who are frantically searching through old books and surfing the web trying to find a an answer for me. _____________________________ Marc Heiligers |
|
From: Marc H. <ma...@e-...> - 2002-12-10 14:02:36
|
Hi All, I am trying to display a bitmap on a dialog. I use the following in my resource file: IDB_ABOUT BITMAP "res\\about.bmp" . . . ... DIALOGEX ... CONTROL IDB_ABOUT, IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZEIMAGE, 2, 2, 156, 28 . . . IDB_ABOUT and IDC_ABOUT are defined in resource.h. I keep on getting a "parse error" on the CONTROL line. Any ideas? _____________________________ Marc Heiligers |
|
From: Vlada D. <dj...@im...> - 2002-12-10 12:30:48
|
Hi. I #included commctrl.h in one of my projects trying to create a toolbar. I get error messages like "INITCOMMONCINTROLSEX not declared" and "BTNS_XXX not declared". After that, I used TBSTYLE_XXX for button styles and InitCommonControls() and it worked. I am running Win2000 and Dev-Cpp 4.9.6.0. Could it be that I have some older version of commctrl.h or libcomctl32 (also included in linker settings)? Or maybe I have some older version of comctl32.dll? How can I determine which versions I have? Regards, Vlada |
|
From: Vlada D. <dj...@im...> - 2002-12-10 12:20:04
|
OK. I'll try both things. Thanks ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Tuesday, December 10, 2002 12:29 PM Subject: [Fwd: Re: [Dev-C++] anoying message box] -------- Original Message -------- Subject: Re: [Dev-C++] anoying message box Date: Mon, 09 Dec 2002 16:29:39 -0500 From: Matthews <dem...@uw...> To: Carlos García del Monte <cg...@wo...> References: <008001c29f5f$5a6d57a0$8f3...@im...> I was pretty sure that it was caused by the class browser, not the code completion (which was just part of the problem I think.) Turn off class browsing and everything should be fine. At 12:20 PM 09/12/2002 +0100, you wrote: >Turn code completion off. > >Vlada Djurovic wrote: > >>Hi. >>Sometimes, when I type code in editor, this anoying message box keeps >>appearing, saying "List index out of bounds", or something like that. I >>noticed that it mostly appears when I use the .(dot) operator for assigning >>values to structure members or class members. I use Dev-cpp 4.9.6.0 and >>Win2000. What does this message box mean and is there a way to turn it of? >> >>Regards, >>Vlada >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> >> > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <we...@ha...> - 2002-12-10 11:45:29
|
Hi Carlos and Dev-c++ users, Thkz a lot by your help. But i was searching something done "a function, i don't know" .... if someone know whre find it... :) Else i will do it... thkz for help and attention :) Best Regards [ ]'s ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Saturday, December 07, 2002 7:00 PM Subject: Re: [Dev-C++] Copy files recursively but only updated. :) > I hope this helps a little. Use sys/stats.h, dirent.h and those files > used for directory and file management. In sys/stat.h is defined an > struct anf functions for files, this structs have three members of time: > the creation date, last access and modification. Read at the > documentation of libc (You can find it as chm file from a link in > www.mingw.org documentation section, chapter 15) > > we...@ha... wrote: > > >Hi Guys, > > > >I need implement in my code a funciont that copy a directory recursively > >(the directory and subdirectory) but only the updated files. Someone know > >how to do it ?? > > > >ps.: I use always FileCopy() but it didn't copy updated files only i > >think... :/ > > > >Thkz a lot... > > > >Best Regards.. > > > >[ ]'s > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <cg...@wo...> - 2002-12-10 11:32:47
|
-------- Original Message -------- Subject: Re: [Dev-C++] anoying message box Date: Mon, 09 Dec 2002 16:29:39 -0500 From: Matthews <dem...@uw...> To: Carlos Garc=EDa del Monte <cg...@wo...> References: <008001c29f5f$5a6d57a0$8f3...@im...> I was pretty sure that it was caused by the class browser, not the code completion (which was just part of the problem I think.) Turn off class browsing and everything should be fine. At 12:20 PM 09/12/2002 +0100, you wrote: >Turn code completion off. > >Vlada Djurovic wrote: > >>Hi. >>Sometimes, when I type code in editor, this anoying message box keeps >>appearing, saying "List index out of bounds", or something like that. I >>noticed that it mostly appears when I use the .(dot) operator for assig= ning >>values to structure members or class members. I use Dev-cpp 4.9.6.0 and >>Win2000. What does this message box mean and is there a way to turn it = of? >> >>Regards, >>Vlada >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> =20 >> > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Pierre R. <pie...@wa...> - 2002-12-10 08:44:24
|
Hello, How to manage dependency relations with flex/bison files in Dev-Cpp? Thanks Pierre Raoul |
|
From: Per W. <pw...@ia...> - 2002-12-10 08:29:07
|
Yes, I can see that your code does try to use the <strlib.h> file, but
there are no such standard file. Whenever you find that Dev-C++ is missing
a standard include file, there is a very, very large proability that you
have either misspelled the include file, or that it isn't such a STANDARD
include file, but something special installed by some 3rd party tool on a
machine somewhere.
That's why I wondered if it wasn't <stdlib.h> that should be used instead.
It might also be the <string.h> file that was intended.
<stdlib.h> contains among other things atoi() implemented in your source.
<string.h> contans strchr() declaration.
/Per W
On Mon, 9 Dec 2002, Zachary Uram wrote:
> Well the code I am trying to compile uses strlib.h
> If you could tell me which library calls below use strlib.h and send me
> code to replace it with another library calls I would be happy to do that.
>
> Zach
>
> At 08:05 PM 12/9/02, you wrote:
> >Might you possibly have thought about using the <stdlib.h> include?
> >
> >/Per W
> >
> >On Mon, 9 Dec 2002, Zachary Uram wrote:
> >
> > > I am trying to compile programs that use <strlib.h> I checked in the
> > > Dev-C++ \include directory and there is no such header file?
> > >
> > > Attached is the code:
> > >
> > > #include <ctype.h>
> > > #include <stdio.h>
> > > #include <strlib.h>
> > >
> > > /* getline: get line into s, return length */
> > > int getline(char *s, int lim)
> > > {
> > > char *p;
> > > int c;
> > >
> > > p = s;
> > > while (--lim > 0 && (c = getchar()) != EOF && c != '\n')
> > > *p++ = c;
> > > if (c == '\n')
> > > *p++ = c;
> > > *p = '\0';
> > > return (int)(p - s);
> > > }
> > >
> > > /* atoi: convert s to an integer
> > > *
> > > * Here's the easy way:
> > > * int atoi(char *s){return (int)strtoul(s, NULL, 10);}
> > > * But I'll behave...
> > > */
> > > int atoi(char *s)
> > > {
> > > int n, sign;
> > >
> > > while (isspace(*s))
> > > s++;
> > > sign = (*s == '+' || *s == '-') ? ((*s++ == '+') ? 1 : -1) : 1;
> > > for (n = 0; isdigit(*s); s++)
> > > n = (n * 10) + (*s - '0'); /* note to language lawyers --
> > > * the digits are in consecutive
> > > * order in the character set
> > > * C90 5.2.1
> > > */
> > > return sign * n;
> > > }
> > >
> > > /* Shamelessly copied from my 4-12 answer
> > >
> > > itoa() is non-standard, but defined on p.64 as having this prototype:
> > >
> > > void itoa(int n, char s[])
> > >
> > > Instead of this, I thought I'd use a different prototype (one I got from
> > > the library manual of one of my compilers) since it includes all of the
> > > above:
> > >
> > > char *itoa(int value, char *digits, int base);
> > >
> > > Description: The itoa() function converts an integer value into an
> > > ASCII string of digits. The base argument specifies the number base for
> > > the conversion. The base must be a value in the range [2..36], where 2
> > > is binary, 8 is octal, 10 is decimal, and 16 is hexadecimal. The buffer
> > > pointed to by digits must be large enough to hold the ASCII string of
> > > digits plus a terminating null character. The maximum amount of buffer
> > > space used is the precision of an int in bits + 2 (one for the sign and
> > > one for the terminating null).
> > >
> > > Returns: digits, or NULL if error.
> > >
> > > */
> > >
> > > char *utoa(unsigned value, char *digits, int base)
> > > {
> > > char *s, *p;
> > >
> > > s = "0123456789abcdefghijklmnopqrstuvwxyz"; /* don't care if s is in
> > > * read-only memory
> > > */
> > > if (base == 0)
> > > base = 10;
> > > if (digits == NULL || base < 2 || base > 36)
> > > return NULL;
> > > if (value < (unsigned) base) {
> > > digits[0] = s[value];
> > > digits[1] = '\0';
> > > } else {
> > > for (p = utoa(value / ((unsigned)base), digits, base);
> > > *p;
> > > p++);
> > > utoa( value % ((unsigned)base), p, base);
> > > }
> > > return digits;
> > > }
> > >
> > > char *itoa(int value, char *digits, int base)
> > > {
> > > char *d;
> > > unsigned u; /* assume unsigned is big enough to hold all the
> > > * unsigned values -x could possibly be -- don't
> > > * know how well this assumption holds on the
> > > * DeathStation 9000, so beware of nasal demons
> > > */
> > >
> > > d = digits;
> > > if (base == 0)
> > > base = 10;
> > > if (digits == NULL || base < 2 || base > 36)
> > > return NULL;
> > > if (value < 0) {
> > > *d++ = '-';
> > > u = -value;
> > > } else
> > > u = value;
> > > utoa(u, d, base);
> > > return digits;
> > > }
> > >
> > > /* reverse, shamelessly copied from my 4-13 answer */
> > >
> > > static void swap(char *a, char *b, size_t n)
> > > {
> > > while (n--) {
> > > *a ^= *b;
> > > *b ^= *a;
> > > *a ^= *b;
> > > a++;
> > > b++;
> > > }
> > > }
> > >
> > > void my_memrev(char *s, size_t n)
> > > {
> > > switch (n) {
> > > case 0:
> > > case 1:
> > > break;
> > > case 2:
> > > case 3:
> > > swap(s, s + n - 1, 1);
> > > break;
> > > default:
> > > my_memrev(s, n / 2);
> > > my_memrev(s + ((n + 1) / 2), n / 2);
> > > swap(s, s + ((n + 1) / 2), n / 2);
> > > break;
> > > }
> > > }
> > >
> > > void reverse(char *s)
> > > {
> > > char *p;
> > >
> > > for (p = s; *p; p++)
> > > ;
> > > my_memrev(s, (size_t)(p - s));
> > > }
> > >
> > > /* strindex: return index of t in s, -1 if not found */
> > >
> > > /* needed strchr(), so here it is: */
> > >
> > > static char *strchr(char *s, int c)
> > > {
> > > char ch = c;
> > >
> > > for ( ; *s != ch; ++s)
> > > if (*s == '\0')
> > > return NULL;
> > > return *s;
> > > }
> > >
> > > int strindex(char *s, char *t)
> > > {
> > > char *u, *v, *w;
> > >
> > > if (*t == '\0')
> > > return 0;
> > > for (u = s; (u = strchr(u, *t)) != NULL; ++u) {
> > > for (v = u, w = t; ; )
> > > if (*++w == '\0')
> > > return (int)(u - s);
> > > else if (*++v != *w)
> > > break;
> > > }
> > > return -1;
> > > }
> > >
> > > /* getop */
> > >
> > > #define NUMBER '0' /* from Chapter 4 */
> > >
> > > int getop(char *s)
> > > {
> > > int c;
> > >
> > > while ((*s = c = getch()) == ' ' || c == '\t')
> > > ;
> > > *(s + 1) = '\0';
> > > if (!isdigit(c) && c != '.')
> > > return c; /* not a number */
> > > if (isdigit(c)) /* collect integer part */
> > > while (isdigit(*++s = c = getch()))
> > > ;
> > > if (c == '.') /* collect fraction part */
> > > while (isdigit(*++s = c = getch()))
> > > ;
> > > *++s = '\0';
> > > if (c != EOF)
> > > ungetch(c);
> > > return NUMBER;
> > > }
> > >
> > > /* Is there any more? */
> > >
> > >
> > > Zachary Uram
> > > John 3:16
> > > <><
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Dev-cpp-users mailing list
> > > Dev...@li...
> > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> > >
>
> Zachary Uram
> John 3:16
> <><
>
>
|
|
From: Luigi S. <gi...@li...> - 2002-12-10 06:09:53
|
On Fri, Dec 06, 2002 at 04:10:13PM +0000, Carl Franks wrote: > Hi, > > I'm trying to set up Dev-C++ to use the borland cbuilder 5.5 compiler. > I'm running win98 (rel. 2) > Dev-C++ 4.9.6.0 > ... > > Carl Franks > Hello Carl, On Win98SE, I have used Dev-C++ together with the "freecommandlinetools" of Borland. Version of Dev was 4.9.6.0, while the Borland compiler was named BC++ 5.5 (hope it is the same you call "cbuilder 5.5"). I placed a few notes, about my approach, at the page: www.gisan.freeurl.com (once there follow the link named "dev_bor") A brief remark is due: I should be considered a newbie and my experience is limited to simple console applications, so information I was able to provide, about using Dev-C++ and BC++ 5.5, is the answer to these 2 questions: - how do I compile a program like "hello world"? - how do I compile a program whose source code is in more than one file? Hopefully, my answers can get you started :-) -- >> gisan >> |
|
From: <fer...@te...> - 2002-12-10 03:40:29
|
Very, very much thanks!!! It´s works fine. Thanks again Fernando Correa da Conceição Rodolfo d'Ettorre escreveu: >Hi, > >Yes it is only that file, but since it links with a DLL, I guess it will be different for Linux. But the MySQL functions should be very similar. The zip file I am sending you contains libmysql.a, libmysql.dll and a small project example. > >If yoy could expand the zip file in this path: > >C:\mysql\examples\libmysqltest > >and place libmysql.a in the lib path the example should compile without any problem. > >Cheers > >Rodolfo > > >-----Original Message----- >From: Fernando Correa Da Conceição >[mailto:fer...@te...] >Sent: Tuesday, 10 December 2002 1:31 PM >To: Rodolfo d'Ettorre >Cc: dev...@li... >Subject: Re: [Dev-C++] mysql compile > > >I want it, and wank know how to link it to my aplication and what I need >to develop aplications with mysql on devcpp, is only this file? >I work with mysql on linux too, but there is different. > >Thanks >Fernando Correa da Conceição > >Rodolfo d'Ettorre escreveu: > > > >>Hi, >> >>I have generated a file, libmysql.a, that allows me to link with LibMySQL.DLL, so I could compile one of the examples that comes with MySQL. If anyone needs it, I can email it. >> >>Regards >> >>Rodolfo d'Ettorre >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >>. >> >> >> >> >> > > > > |
|
From: James B. <jag...@ya...> - 2002-12-10 03:15:31
|
well its not too serious;)..., but the "current" (already opened on display) working source file in the new project profile i created wont have its background color changed after changing the 'space color' in Editor Options... i tried a new source file being made in the project after applying changes to the Editor Options, and the colors were correct..keep up the good work to the Bloodshed team.! :) (this shouldn't too hard to resolve.;)) jagginess --------------------------------- Post your free ad now! Yahoo! Canada Personals |
|
From: James B. <jag...@ya...> - 2002-12-10 03:15:26
|
well its not too serious;)..., but the "current" (already opened on display) working source file in the new project profile i created wont have its background color changed after changing the 'space color' in Editor Options... i tried a new source file being made in the project after applying changes to the Editor Options, and the colors were correct..keep up the good work to the Bloodshed team.! :) (this shouldn't too hard to resolve.;)) jagginess --------------------------------- Post your free ad now! Yahoo! Canada Personals |
|
From: Zachary U. <ne...@st...> - 2002-12-10 02:53:22
|
Well the code I am trying to compile uses strlib.h
If you could tell me which library calls below use strlib.h and send me
code to replace it with another library calls I would be happy to do that.
Zach
At 08:05 PM 12/9/02, you wrote:
>Might you possibly have thought about using the <stdlib.h> include?
>
>/Per W
>
>On Mon, 9 Dec 2002, Zachary Uram wrote:
>
> > I am trying to compile programs that use <strlib.h> I checked in the
> > Dev-C++ \include directory and there is no such header file?
> >
> > Attached is the code:
> >
> > #include <ctype.h>
> > #include <stdio.h>
> > #include <strlib.h>
> >
> > /* getline: get line into s, return length */
> > int getline(char *s, int lim)
> > {
> > char *p;
> > int c;
> >
> > p = s;
> > while (--lim > 0 && (c = getchar()) != EOF && c != '\n')
> > *p++ = c;
> > if (c == '\n')
> > *p++ = c;
> > *p = '\0';
> > return (int)(p - s);
> > }
> >
> > /* atoi: convert s to an integer
> > *
> > * Here's the easy way:
> > * int atoi(char *s){return (int)strtoul(s, NULL, 10);}
> > * But I'll behave...
> > */
> > int atoi(char *s)
> > {
> > int n, sign;
> >
> > while (isspace(*s))
> > s++;
> > sign = (*s == '+' || *s == '-') ? ((*s++ == '+') ? 1 : -1) : 1;
> > for (n = 0; isdigit(*s); s++)
> > n = (n * 10) + (*s - '0'); /* note to language lawyers --
> > * the digits are in consecutive
> > * order in the character set
> > * C90 5.2.1
> > */
> > return sign * n;
> > }
> >
> > /* Shamelessly copied from my 4-12 answer
> >
> > itoa() is non-standard, but defined on p.64 as having this prototype:
> >
> > void itoa(int n, char s[])
> >
> > Instead of this, I thought I'd use a different prototype (one I got from
> > the library manual of one of my compilers) since it includes all of the
> > above:
> >
> > char *itoa(int value, char *digits, int base);
> >
> > Description: The itoa() function converts an integer value into an
> > ASCII string of digits. The base argument specifies the number base for
> > the conversion. The base must be a value in the range [2..36], where 2
> > is binary, 8 is octal, 10 is decimal, and 16 is hexadecimal. The buffer
> > pointed to by digits must be large enough to hold the ASCII string of
> > digits plus a terminating null character. The maximum amount of buffer
> > space used is the precision of an int in bits + 2 (one for the sign and
> > one for the terminating null).
> >
> > Returns: digits, or NULL if error.
> >
> > */
> >
> > char *utoa(unsigned value, char *digits, int base)
> > {
> > char *s, *p;
> >
> > s = "0123456789abcdefghijklmnopqrstuvwxyz"; /* don't care if s is in
> > * read-only memory
> > */
> > if (base == 0)
> > base = 10;
> > if (digits == NULL || base < 2 || base > 36)
> > return NULL;
> > if (value < (unsigned) base) {
> > digits[0] = s[value];
> > digits[1] = '\0';
> > } else {
> > for (p = utoa(value / ((unsigned)base), digits, base);
> > *p;
> > p++);
> > utoa( value % ((unsigned)base), p, base);
> > }
> > return digits;
> > }
> >
> > char *itoa(int value, char *digits, int base)
> > {
> > char *d;
> > unsigned u; /* assume unsigned is big enough to hold all the
> > * unsigned values -x could possibly be -- don't
> > * know how well this assumption holds on the
> > * DeathStation 9000, so beware of nasal demons
> > */
> >
> > d = digits;
> > if (base == 0)
> > base = 10;
> > if (digits == NULL || base < 2 || base > 36)
> > return NULL;
> > if (value < 0) {
> > *d++ = '-';
> > u = -value;
> > } else
> > u = value;
> > utoa(u, d, base);
> > return digits;
> > }
> >
> > /* reverse, shamelessly copied from my 4-13 answer */
> >
> > static void swap(char *a, char *b, size_t n)
> > {
> > while (n--) {
> > *a ^= *b;
> > *b ^= *a;
> > *a ^= *b;
> > a++;
> > b++;
> > }
> > }
> >
> > void my_memrev(char *s, size_t n)
> > {
> > switch (n) {
> > case 0:
> > case 1:
> > break;
> > case 2:
> > case 3:
> > swap(s, s + n - 1, 1);
> > break;
> > default:
> > my_memrev(s, n / 2);
> > my_memrev(s + ((n + 1) / 2), n / 2);
> > swap(s, s + ((n + 1) / 2), n / 2);
> > break;
> > }
> > }
> >
> > void reverse(char *s)
> > {
> > char *p;
> >
> > for (p = s; *p; p++)
> > ;
> > my_memrev(s, (size_t)(p - s));
> > }
> >
> > /* strindex: return index of t in s, -1 if not found */
> >
> > /* needed strchr(), so here it is: */
> >
> > static char *strchr(char *s, int c)
> > {
> > char ch = c;
> >
> > for ( ; *s != ch; ++s)
> > if (*s == '\0')
> > return NULL;
> > return *s;
> > }
> >
> > int strindex(char *s, char *t)
> > {
> > char *u, *v, *w;
> >
> > if (*t == '\0')
> > return 0;
> > for (u = s; (u = strchr(u, *t)) != NULL; ++u) {
> > for (v = u, w = t; ; )
> > if (*++w == '\0')
> > return (int)(u - s);
> > else if (*++v != *w)
> > break;
> > }
> > return -1;
> > }
> >
> > /* getop */
> >
> > #define NUMBER '0' /* from Chapter 4 */
> >
> > int getop(char *s)
> > {
> > int c;
> >
> > while ((*s = c = getch()) == ' ' || c == '\t')
> > ;
> > *(s + 1) = '\0';
> > if (!isdigit(c) && c != '.')
> > return c; /* not a number */
> > if (isdigit(c)) /* collect integer part */
> > while (isdigit(*++s = c = getch()))
> > ;
> > if (c == '.') /* collect fraction part */
> > while (isdigit(*++s = c = getch()))
> > ;
> > *++s = '\0';
> > if (c != EOF)
> > ungetch(c);
> > return NUMBER;
> > }
> >
> > /* Is there any more? */
> >
> >
> > Zachary Uram
> > John 3:16
> > <><
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
Zachary Uram
John 3:16
<><
|
|
From: <fer...@te...> - 2002-12-10 02:28:55
|
I want it, and wank know how to link it to my aplication and what I need to develop aplications with mysql on devcpp, is only this file? I work with mysql on linux too, but there is different. Thanks Fernando Correa da Conceição Rodolfo d'Ettorre escreveu: >Hi, > >I have generated a file, libmysql.a, that allows me to link with LibMySQL.DLL, so I could compile one of the examples that comes with MySQL. If anyone needs it, I can email it. > >Regards > >Rodolfo d'Ettorre > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >. > > > |
|
From: Rodolfo d'E. <rod...@la...> - 2002-12-10 01:43:29
|
Hi, I have generated a file, libmysql.a, that allows me to link with = LibMySQL.DLL, so I could compile one of the examples that comes with = MySQL. If anyone needs it, I can email it. =20 Regards Rodolfo d'Ettorre |
|
From: Rodolfo d'E. <rod...@la...> - 2002-12-10 01:32:36
|
Hi, I have generated a file, libmysql.a, that allows me to link with = LibMySQL.DLL, so I could compile one of the examples that comes with = MySQL. If anyone needs it, I can email it. =20 Regards Rodolfo d'Ettorre |
|
From: Per W. <pw...@ia...> - 2002-12-10 01:07:00
|
Might you possibly have thought about using the <stdlib.h> include?
/Per W
On Mon, 9 Dec 2002, Zachary Uram wrote:
> I am trying to compile programs that use <strlib.h> I checked in the
> Dev-C++ \include directory and there is no such header file?
>
> Attached is the code:
>
> #include <ctype.h>
> #include <stdio.h>
> #include <strlib.h>
>
> /* getline: get line into s, return length */
> int getline(char *s, int lim)
> {
> char *p;
> int c;
>
> p = s;
> while (--lim > 0 && (c = getchar()) != EOF && c != '\n')
> *p++ = c;
> if (c == '\n')
> *p++ = c;
> *p = '\0';
> return (int)(p - s);
> }
>
> /* atoi: convert s to an integer
> *
> * Here's the easy way:
> * int atoi(char *s){return (int)strtoul(s, NULL, 10);}
> * But I'll behave...
> */
> int atoi(char *s)
> {
> int n, sign;
>
> while (isspace(*s))
> s++;
> sign = (*s == '+' || *s == '-') ? ((*s++ == '+') ? 1 : -1) : 1;
> for (n = 0; isdigit(*s); s++)
> n = (n * 10) + (*s - '0'); /* note to language lawyers --
> * the digits are in consecutive
> * order in the character set
> * C90 5.2.1
> */
> return sign * n;
> }
>
> /* Shamelessly copied from my 4-12 answer
>
> itoa() is non-standard, but defined on p.64 as having this prototype:
>
> void itoa(int n, char s[])
>
> Instead of this, I thought I'd use a different prototype (one I got from
> the library manual of one of my compilers) since it includes all of the
> above:
>
> char *itoa(int value, char *digits, int base);
>
> Description: The itoa() function converts an integer value into an
> ASCII string of digits. The base argument specifies the number base for
> the conversion. The base must be a value in the range [2..36], where 2
> is binary, 8 is octal, 10 is decimal, and 16 is hexadecimal. The buffer
> pointed to by digits must be large enough to hold the ASCII string of
> digits plus a terminating null character. The maximum amount of buffer
> space used is the precision of an int in bits + 2 (one for the sign and
> one for the terminating null).
>
> Returns: digits, or NULL if error.
>
> */
>
> char *utoa(unsigned value, char *digits, int base)
> {
> char *s, *p;
>
> s = "0123456789abcdefghijklmnopqrstuvwxyz"; /* don't care if s is in
> * read-only memory
> */
> if (base == 0)
> base = 10;
> if (digits == NULL || base < 2 || base > 36)
> return NULL;
> if (value < (unsigned) base) {
> digits[0] = s[value];
> digits[1] = '\0';
> } else {
> for (p = utoa(value / ((unsigned)base), digits, base);
> *p;
> p++);
> utoa( value % ((unsigned)base), p, base);
> }
> return digits;
> }
>
> char *itoa(int value, char *digits, int base)
> {
> char *d;
> unsigned u; /* assume unsigned is big enough to hold all the
> * unsigned values -x could possibly be -- don't
> * know how well this assumption holds on the
> * DeathStation 9000, so beware of nasal demons
> */
>
> d = digits;
> if (base == 0)
> base = 10;
> if (digits == NULL || base < 2 || base > 36)
> return NULL;
> if (value < 0) {
> *d++ = '-';
> u = -value;
> } else
> u = value;
> utoa(u, d, base);
> return digits;
> }
>
> /* reverse, shamelessly copied from my 4-13 answer */
>
> static void swap(char *a, char *b, size_t n)
> {
> while (n--) {
> *a ^= *b;
> *b ^= *a;
> *a ^= *b;
> a++;
> b++;
> }
> }
>
> void my_memrev(char *s, size_t n)
> {
> switch (n) {
> case 0:
> case 1:
> break;
> case 2:
> case 3:
> swap(s, s + n - 1, 1);
> break;
> default:
> my_memrev(s, n / 2);
> my_memrev(s + ((n + 1) / 2), n / 2);
> swap(s, s + ((n + 1) / 2), n / 2);
> break;
> }
> }
>
> void reverse(char *s)
> {
> char *p;
>
> for (p = s; *p; p++)
> ;
> my_memrev(s, (size_t)(p - s));
> }
>
> /* strindex: return index of t in s, -1 if not found */
>
> /* needed strchr(), so here it is: */
>
> static char *strchr(char *s, int c)
> {
> char ch = c;
>
> for ( ; *s != ch; ++s)
> if (*s == '\0')
> return NULL;
> return *s;
> }
>
> int strindex(char *s, char *t)
> {
> char *u, *v, *w;
>
> if (*t == '\0')
> return 0;
> for (u = s; (u = strchr(u, *t)) != NULL; ++u) {
> for (v = u, w = t; ; )
> if (*++w == '\0')
> return (int)(u - s);
> else if (*++v != *w)
> break;
> }
> return -1;
> }
>
> /* getop */
>
> #define NUMBER '0' /* from Chapter 4 */
>
> int getop(char *s)
> {
> int c;
>
> while ((*s = c = getch()) == ' ' || c == '\t')
> ;
> *(s + 1) = '\0';
> if (!isdigit(c) && c != '.')
> return c; /* not a number */
> if (isdigit(c)) /* collect integer part */
> while (isdigit(*++s = c = getch()))
> ;
> if (c == '.') /* collect fraction part */
> while (isdigit(*++s = c = getch()))
> ;
> *++s = '\0';
> if (c != EOF)
> ungetch(c);
> return NUMBER;
> }
>
> /* Is there any more? */
>
>
> Zachary Uram
> John 3:16
> <><
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Zachary U. <ne...@st...> - 2002-12-10 00:32:17
|
I am trying to compile programs that use <strlib.h> I checked in the
Dev-C++ \include directory and there is no such header file?
Attached is the code:
#include <ctype.h>
#include <stdio.h>
#include <strlib.h>
/* getline: get line into s, return length */
int getline(char *s, int lim)
{
char *p;
int c;
p = s;
while (--lim > 0 && (c = getchar()) != EOF && c != '\n')
*p++ = c;
if (c == '\n')
*p++ = c;
*p = '\0';
return (int)(p - s);
}
/* atoi: convert s to an integer
*
* Here's the easy way:
* int atoi(char *s){return (int)strtoul(s, NULL, 10);}
* But I'll behave...
*/
int atoi(char *s)
{
int n, sign;
while (isspace(*s))
s++;
sign = (*s == '+' || *s == '-') ? ((*s++ == '+') ? 1 : -1) : 1;
for (n = 0; isdigit(*s); s++)
n = (n * 10) + (*s - '0'); /* note to language lawyers --
* the digits are in consecutive
* order in the character set
* C90 5.2.1
*/
return sign * n;
}
/* Shamelessly copied from my 4-12 answer
itoa() is non-standard, but defined on p.64 as having this prototype:
void itoa(int n, char s[])
Instead of this, I thought I'd use a different prototype (one I got from
the library manual of one of my compilers) since it includes all of the
above:
char *itoa(int value, char *digits, int base);
Description: The itoa() function converts an integer value into an
ASCII string of digits. The base argument specifies the number base for
the conversion. The base must be a value in the range [2..36], where 2
is binary, 8 is octal, 10 is decimal, and 16 is hexadecimal. The buffer
pointed to by digits must be large enough to hold the ASCII string of
digits plus a terminating null character. The maximum amount of buffer
space used is the precision of an int in bits + 2 (one for the sign and
one for the terminating null).
Returns: digits, or NULL if error.
*/
char *utoa(unsigned value, char *digits, int base)
{
char *s, *p;
s = "0123456789abcdefghijklmnopqrstuvwxyz"; /* don't care if s is in
* read-only memory
*/
if (base == 0)
base = 10;
if (digits == NULL || base < 2 || base > 36)
return NULL;
if (value < (unsigned) base) {
digits[0] = s[value];
digits[1] = '\0';
} else {
for (p = utoa(value / ((unsigned)base), digits, base);
*p;
p++);
utoa( value % ((unsigned)base), p, base);
}
return digits;
}
char *itoa(int value, char *digits, int base)
{
char *d;
unsigned u; /* assume unsigned is big enough to hold all the
* unsigned values -x could possibly be -- don't
* know how well this assumption holds on the
* DeathStation 9000, so beware of nasal demons
*/
d = digits;
if (base == 0)
base = 10;
if (digits == NULL || base < 2 || base > 36)
return NULL;
if (value < 0) {
*d++ = '-';
u = -value;
} else
u = value;
utoa(u, d, base);
return digits;
}
/* reverse, shamelessly copied from my 4-13 answer */
static void swap(char *a, char *b, size_t n)
{
while (n--) {
*a ^= *b;
*b ^= *a;
*a ^= *b;
a++;
b++;
}
}
void my_memrev(char *s, size_t n)
{
switch (n) {
case 0:
case 1:
break;
case 2:
case 3:
swap(s, s + n - 1, 1);
break;
default:
my_memrev(s, n / 2);
my_memrev(s + ((n + 1) / 2), n / 2);
swap(s, s + ((n + 1) / 2), n / 2);
break;
}
}
void reverse(char *s)
{
char *p;
for (p = s; *p; p++)
;
my_memrev(s, (size_t)(p - s));
}
/* strindex: return index of t in s, -1 if not found */
/* needed strchr(), so here it is: */
static char *strchr(char *s, int c)
{
char ch = c;
for ( ; *s != ch; ++s)
if (*s == '\0')
return NULL;
return *s;
}
int strindex(char *s, char *t)
{
char *u, *v, *w;
if (*t == '\0')
return 0;
for (u = s; (u = strchr(u, *t)) != NULL; ++u) {
for (v = u, w = t; ; )
if (*++w == '\0')
return (int)(u - s);
else if (*++v != *w)
break;
}
return -1;
}
/* getop */
#define NUMBER '0' /* from Chapter 4 */
int getop(char *s)
{
int c;
while ((*s = c = getch()) == ' ' || c == '\t')
;
*(s + 1) = '\0';
if (!isdigit(c) && c != '.')
return c; /* not a number */
if (isdigit(c)) /* collect integer part */
while (isdigit(*++s = c = getch()))
;
if (c == '.') /* collect fraction part */
while (isdigit(*++s = c = getch()))
;
*++s = '\0';
if (c != EOF)
ungetch(c);
return NUMBER;
}
/* Is there any more? */
Zachary Uram
John 3:16
<><
|