dev-cpp-users Mailing List for Dev-C++ (Page 472)
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: 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
<><
|
|
From: <cg...@wo...> - 2002-12-09 18:37:22
|
Someone had the idea of make it with FLTK, he made a Pakage maker and was thinking in do so, wit a link for feedback him if there is interest, but I forgot the url. Search it in internet, I'll do. Big Pilot wrote: >I know this is probably blasphemous to conjure up on this mailinglist but...how about developing a C++ version of Dev-cpp using wxWindows, which is also multiplatform. Well at least Win32 and Linux, then (Mac I don't know since AFAIK there isn't a GCC version for Apple Mac OS X). > >I love Dev-cpp, but as a C++ user I find it irritating not able to fix bugs or help out because it's written in Object Pascal. > > > > |
|
From: <eas...@t-...> - 2002-12-09 17:33:02
|
Hi , Everybody I am using Dev C++ and its GTK-Package (2.0.3). But now I have a little problem , which was solved in the latest stable version of GTK (2.0.9) and Pango 1.0.5. So I would like to ask you how to upgrade my gtk manually, or is there a newer version of GTK-Package??? Thanks for all, Martin |
|
From: <eas...@t-...> - 2002-12-09 16:54:49
|
Hi , Everybody I am using Dev C++ and its GTK-Package (2.0.3). But now I have a little problem , which was solved in the latest stable version of GTK (2.0.9) and Pango 1.0.5. So I would like to ask you how to upgrade my gtk manually, or is there a newer version of GTK-Package??? Thanks for all, Martin |
|
From: <eas...@t-...> - 2002-12-09 16:54:11
|
Hi , Everybody I am using Dev C++ and its GTK-Package (2.0.3). But now I have a little problem , which was solved in the latest stable version of GTK (2.0.9) and Pango 1.0.5. So I would like to ask you how to upgrade my gtk manually, or is there a newer version of GTK-Package??? Thanks for all, Martin |
|
From: Big P. <big...@li...> - 2002-12-09 15:42:28
|
I know this is probably blasphemous to conjure up on this mailinglist but...how about developing a C++ version of Dev-cpp using wxWindows, which is also multiplatform. Well at least Win32 and Linux, then (Mac I don't know since AFAIK there isn't a GCC version for Apple Mac OS X). I love Dev-cpp, but as a C++ user I find it irritating not able to fix bugs or help out because it's written in Object Pascal. -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze |
|
From: Rafael C. <cha...@un...> - 2002-12-09 12:25:45
|
Sorry! I didn't mean "an integer" as a string.
I meant it could be any integer argument.
void main () {
...
int i = 0;
f2(i);
...
}
OR
void main () {
...
int i;
i = i + 5;
f2(i);
...
}
OR
void main () {
...
f2(10);
...
}
Rafael
Matthews wrote:
> Wouldn't this line
>
>>f2("an integer");
>
> cause an error because it's passing a quoted string rather than an integer
> name or value? Remember, the function was declared like so:
>
>>void f2 (int);
>
>
|
|
From: <cg...@wo...> - 2002-12-09 11:36:20
|
In the Win32 API reference it is said that the maximum text limit for a multiline edit control is 65535 characters. Things are not this way, and it should be noticed a couple of things about it. When in a simple edit control you want to retrieve the selection it's claimed in books that 65535 is the highest position that can be selected through EM_SETSEL message, and the maximum you can retrieve thorugh EM_GETSEL (with the correspondent pointings to how get them with rich edits or some other messages or variables) Yeah, this is not accurate, I've not now the info at hand and I have no will to see at it, so forget this paragraph. ;-) Good, I haven't tried it, so I trust it. But I noticed with my edit experiment (I'm back to it) that pasting the whole code for it (1126 lines) cut the text in the middle. So I send EM_GETLIMITTEXT in WM_CREATE, it was 30000, the half of the maximum. This is a datum it's not in the reference and I don't remember having read it in my book (Perhaps I forgot it). Then I send EM_SETLIMITTEXT with WPARAM set to 65535. Right, now the edit field has place for all the lines of code plus a half of it. Then I watch again at the reference, if you pass the message with 0 in the WPARAM field the limit is set to the maximum, I do the change, now EM_GETLIMITTEXT reports -1 and I paste the code up to five times and I've not reached the maximum. I scroll up checking if it is being possible at the cost the edit is deleting the begin of the text (as command window, although it mustn't be so, since with 30000 was neither) and there are the full five code repetitions. So the limit for a multiline edit control seems to default to 30000, at least in my computer, if you want to be the maximum, so high it seems unlimited, you have to set it explicitly with SendMessage(edit_window_handle, EM_SETLIMITTEXT, (WPARAM)0, (LPARAM)0);. |
|
From: <cg...@wo...> - 2002-12-09 11:24:25
|
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 > > > |
|
From: Franz R. <fr...@we...> - 2002-12-09 11:02:31
|
Hi, I installed devcpp4970-gcc295.exe on my Win98 system. The first time=20 after installation, it has crashed. But the next time it started=20 successfully, but the icons in the menu and the toolbar are not=20 visible. I've tried all styles, but no real success. The only choice I=20 had was between totally grey or white icon outlines. Any hints for this ? Shall I change my display color depht or=20 resolution ? Or do I need a newer version of a graphics library (=20 libpng, libjpeg ?) for this ? TIA, Franz |
|
From: Esa V. <esa...@bo...> - 2002-12-09 09:42:28
|
Carlos García del Monte wrote:
Esa Vuokko wrote:
>* Ablity to make ctrl+tab to work as in most windows apps.
> So that it would change between windows on single press
> and change between more if you keep ctrl pressed and
> press tab many times.
>
It works for me, for applications, for windows within a MDI is
used Ctrl+F6.
Ehm, I wasn't clear. I want ctrl+tab, release all keys,
ctrl+tab to return same file I was at, afaik that's how
Ms apps work.
I didn't find option for this, maybe someone could englighten me
other dialogs I've missed? :)
>* Ability to choose ctrl+f4 to close tab and alt+f4 to
> close the program
>
You can set it in tools->configure shortcuts
Yea, thanks. Stupid me, didn't occur me that "shortcut" would
be keys and I must have somehow missed the whole dialog while
searching for these.
Sorry for the noise.
>
>Other nitpicks:
>
>* export keyword is not highlighted, as aren't alternative
> tokens (and,and_eq,bitand,bitor,compl,not,not_eq,or,
> or_eq,xor,xor_eq).
>
I agree.
>* nor are trigraph sequences recognised, but this is really
> small thing ;-).
>
What's that? :-)
Certain characters might be hard or impossible type. So standard
says that these three-letter combinations mean other characters:
Standard section 2.4, Table 1 - trigraph sequences (modified
by me, because original table didn't copy correctly)
trigraph replacement
??= #
??( [
??< {
??/ \
??) ]
??> }
?? ^
??! |
??- ~
Sometimes people use these inside complex macros, dunno why's
that exactly. But if you want to be perfect this is missing :)
>(I am sure you will or have fixed the bug with
>certain characters beginning the line inside some classes
>and stuff, but for that crash I sent an bug report,
>it's by far most annoying problem for me atm.)
The last beta works great, except that it brings up that
"crash" dialog inside complex classes. This always
happens when I am typing first non-whitespace character
on line. It works correctly if I paste it or split
previous line, be it one or many characters. This won't
go away even if I turn code inspection etc away,
highlighting bug?
Also, could you remove "quick" keys or "shortcuts" from
that crash dialog...sometimes I type fast and happen to
press key that closes the application...while I'd like to
continue and save.
Keep the great work up!
Esa
|
|
From: Sebastien M. <seb...@te...> - 2002-12-09 09:30:03
|
Hello, I would like to set an autoflush property on a ostream, how can I do that? Thanks, Sebastien. |
|
From: Vlada D. <dj...@im...> - 2002-12-09 08:43:39
|
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 |
|
From: erwan a. <erw...@fr...> - 2002-12-09 07:57:17
|
yes: it is said in the manual that I should link with mysqlclient and z. But
this is not enough.
Ok, I will search again this library...
Thanks.
Erwan
----- Original Message -----
From: "Ihsan Ali Al Darhi" <ia...@jo...>
To: <dev...@li...>
Sent: Saturday, December 07, 2002 8:05 PM
Subject: Re: [Dev-C++] mysql compile
> Have you looked at Mysql manual to see what libraries to link to your app?
>
> I think _chkstk is a function that imilar to "check stack" but I am not
> sure. If this is true, you are missing one of the libraries that is
> required. Id wring, then you have your vendor to provide you with this
lib.
>
> I almost assure that it is a function in some unlinked lib.
>
> Mohammed
>
>
> ----- Original Message -----
> From: "erwan ancel" <erw...@fr...>
> To: <dev...@li...>
> Sent: Sunday, December 08, 2002 11:09 AM
> Subject: [Dev-C++] mysql compile
>
>
> > Hi,
> >
> > I would like to compile a soft that uses mysql functions. I obtain an
> > unresolved symbol: "_chkstk"
> >
> > The libraries I link with are mysqlclient, z, wsock32, msvcrt40. Should
I
> > link an other library? I am looking for this library but do not find it
> ...
> >
> >
> > Thanks.
> >
> > Erwan
> >
> >
> >
> > -------------------------------------------------------
> > 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: Ihsan A. Al D. <ia...@jo...> - 2002-12-09 07:28:14
|
Have you looked at Mysql manual to see what libraries to link to your app? I think _chkstk is a function that imilar to "check stack" but I am not sure. If this is true, you are missing one of the libraries that is required. Id wring, then you have your vendor to provide you with this lib. I almost assure that it is a function in some unlinked lib. Mohammed ----- Original Message ----- From: "erwan ancel" <erw...@fr...> To: <dev...@li...> Sent: Sunday, December 08, 2002 11:09 AM Subject: [Dev-C++] mysql compile > Hi, > > I would like to compile a soft that uses mysql functions. I obtain an > unresolved symbol: "_chkstk" > > The libraries I link with are mysqlclient, z, wsock32, msvcrt40. Should I > link an other library? I am looking for this library but do not find it ... > > > Thanks. > > Erwan > > > > ------------------------------------------------------- > 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: Sebastien M. <seb...@te...> - 2002-12-09 04:30:13
|
Hi! Ok, I just check documentation, it seems you can't use a dynamic cast in your case because File is not a base type for Element (of course, since Element is a base class for File :) So maybe you should use static_cast, or directly a standard C cast (personnaly, I found all the cast operator useless, even if it's more safe, it's too boring too use them :) and I never got a problem with cast, bugs are generally elsewhere :) I can give you a good documentation, but it's in french, so if you can read french, here it is: http://www.developpez.com/c/megacours/x4009.html#AEN4058 Happy coding, Sebastien. On Sun, Dec 08, 2002 at 07:51:09AM +0100, tc...@gm... wrote: > Hi all, >=20 > I have a dynamic_cast problem and I am not comming forward since then i= n=20 > my project. Therefore I decided too find some help here in ths ML. >=20 > OK, >=20 > I actually want to implement the iterator design Pattern in order to=20 > iterate through abstract Elements of abstract CollectionObjects.=20 > Therefore I have a class Element and CollectionObject. >=20 > Now I have written some concrete implementing classes Directory and Fil= e=20 > that are supposed to be both Elements, with the supplement that=20 > Directory is also a CollectionObject. >=20 > So I have sth. like >=20 > class Element{...} >=20 > class FileSystem : public Element { } >=20 > class File : public FileSystem {...} >=20 > class Directory : public CollectionObject, public FileSystem { ... } >=20 > Now I decided to include some Filters, Iteated elements should be=20 > matched by Patterns (abstract class). I have created for this one a=20 > PatternExtension concrete class. It all looks lie this: >=20 > class Pattern { > ... > public: > virtual bool match( Element *p_Element ) =3D 0; > } >=20 >=20 > class PatternExtension : public Pattern > { > ... > virtual bool match( Element *p_Element ) > { > //here starts the problem: > //writing this instruction is causes an Error from the =20 > //compiler. Therefore I have been looking in my doc. > //and I am convince to be doing it properly.... >=20 > File *l_File; >=20 > if( l_File =3D dynamic_cast<File *>( p_Element ) !=3D NULL ) > { > ... > } > /* > Compiler error message: >=20 > PatternExtension.cpp:19: cannot dynamic_cast `p_Element' (of type `clas= s=20 > fs::Element *') to type `class fs::File *' > make[1]: *** [PatternExtension.o] Fehler 1 > make[1]: Verlassen des Verzeichnisses Verzeichnis=20 > =BB/work/Projects/C++/Project1/fs=AB > make: *** [all] Fehler 2 > */ > } > } >=20 > Why then? >=20 > I hope I wasn't too long and that I made myself clear enough. I would b= e=20 > pleased for any hint, tip to help me comming forward. >=20 > Thanx >=20 > -- > Eric Tchepannou >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 --=20 Time remaining: 29 weeks 1 days 2 hours 17 minutes |
|
From: Robert P. B. <xte...@co...> - 2002-12-09 03:18:02
|
>I also get errors like: > >*** 6 C:\DEV-CPP\include\wx\wxchar.h:429 >#error "Please define string case-insensitive compare for your >OS/compiler" *** I started going through the codelearn tutorial tonight (might as well see which API is the easiest to use, yeah?) and I came up with three errors; two of them are this type (in wx\wxchar.h and wx\string.h). The other is an "Unsupported toolkit" in wx\fontutil.h. I'm using 4.9.6.0, so the difference in version may be the thing; note the mention on the download page for 4.9.7.0: "/!\ WARNING /!\ : Due to changes in the C++ ABI in GCC 3.2, currently available Dev-C++ Packages for the C++ language will not work." Don't know whether that applies to wxWindows, but it's possible. (It's the reason I haven't gone to 4.9.7.0.) So anyway-- anyone encountered these case-insensitive compare and unsupported toolkit errors in wx? Got any ideas on how to fix them? Thanks, R |
|
From: Luc Saint-E. <lu...@re...> - 2002-12-08 21:26:44
|
Hello If you're looking for one to embed in you app have a look at : http://www.sqlite.org Luc At 17:45 08/12/2002 -0200, Fernando Correa Da Concei=E7=E3o wrote: >Can someone tell me how to use and where search for a database to use with= =20 >dev-cpp, or how can I use the mysql or postgress. > >Thanks >Fernando |
|
From: <fer...@te...> - 2002-12-08 19:43:08
|
Can someone tell me how to use and where search for a database to use with dev-cpp, or how can I use the mysql or postgress. Thanks Fernando |