dev-cpp-users Mailing List for Dev-C++ (Page 434)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Per W. <pw...@ia...> - 2003-02-24 09:05:25
|
The _msize() you are referring to is part of heap-walk code. They are not
expected to be used for a normal application, but for debug code to verify
memory leaks etc.
There are NO standard method of keeping track of the size of a block of
memory. When you allocate the block, YOU have to assign the size to a
separate variable, in case you want to support dynamic resizing.
However, your malloc() or calloc() call will return your 1000 bytes of
available buffer space, to be used for whatever you want.
You may not assume anything about any extra bytes before the returned
pointer, or after your 1000 bytes of requested data. You may also assume
that - unless you have buffer overflow problems in the code - that you are
the sole owner of these 1000 byte of data, i.e. what you put there will
stay there until your RAM memory fails, or until you put something else
there.
The only thing you might assume, is that p+1000 is a valid pointer value,
even if you may not read/write at that location.
If these limitations are bothersome, they still represents the hard
reality.
/Per W
On Mon, 24 Feb 2003, veenurs wrote:
> Hi PW ,
> Well , I guessed it had something to do with the AT Least qualifier
> .But , I just can't help bothoring abt . the extra bytes !
> It's lioke this- the memory created is used to store bytes of formatted
> data , which are then to be used by another part of application . So ,
> the extra bytes are screwing up the formatting and making 6the data
> useless !!
> The data itself is comming from decryption routines , so I cannot be
> sure of the exact size before decryption ( therefore , I NEED the
> malloc- realloc thing , would hate to use arrays .)
>
> MoreOvere , There is no such problem In VC++ ( I have a learner ed.), or
> LCC .
>
> Thanks , any other solution ?
>
> -Rahul.
>
> Per Westermark wrote:
>
> >Stop bothering about the size of the returned memory block.
> >
> >The allocation functions are only required to return AT LEAST the required
> >amount of memory, or a NULL pointer.
> >
> >Internally, they normally add 8-16 byte of internal header for
> >book-keeping on the heap, i.e. to allow the heap manager to walk free and
> >used memory block.
> >
> >Besides, most heap managers performs one of the following:
> >- rounds each block up to the nearest 8 or 16 byte increment.
> >- allocates the nearest larger 2^n size.
> >- uses the buddy system and allocates the nearest larger block size.
> >
> >As a result - for allocation of very small objects, it might often
> >be better to allocate a bunch of objects at a time, and keep pool of
> >evailable objects in a list.
> >
> >In the example below, the calloc call MUST use sizeof(BYTE). The
> >statement calloc(1000,BYTE) doesn't make sense.
> >
> >/Per W
> >
> >On Mon, 24 Feb 2003, Danny Roelofs wrote:
> >
> >
> >
> >>Hi,
> >>
> >>Well i dont realy know what youre doing with it.. and i never used calloc but it seems your allocating memory for 1000 bytes
> >>and a additional 8 bytes.. sizeof(byte) reserves 8 bytes in my opinion. is it perhaps that you have to do this:
> >>
> >>calloc(1000,BYTE) instead of calloc(1000,sizeof(BYTE))
> >>
> >>Well i actualy dont know.. i am just programming in C for just a month or so..
> >>
> >>
> >> ----- Original Message -----
> >> From: veenurs
> >> To: dev...@li... ; ra...@ww...
> >> Sent: Monday, February 24, 2003 1:16 AM
> >> Subject: [Dev-C++] Re: malloc , extra bytes ! Somewhat urgent !
> >>
> >>
> >>
> >>
> >> Hi !
> >> It seems too simple .But what is it !?
> >> if( (buffer = ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) == NULL ){
> >> ------
> >> -------
> >> }
> >> size = _msize( buffer );
> >>
> >> The size I get it is not 1000 , but 1008 !Same for malloc. Any subsequent call to realloc does not add the 8 bytes,though .
> >>
> >> [ Dev Cpp Version 4.9.7.0 ]
> >> What's happening ?
> >> BTW - "Generate debugging info" is OFF .
> >> Thanks in advance .
> >>
> >> -Rahul.
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
|
|
From: Daniel G. <sp...@ho...> - 2003-02-24 08:48:47
|
int MyFunction(int /* MyInt */, HWND /* Hwnd */ )
{
//... some code
}
what is the significance of /* MyInt */ etc. ? Is it something to do with
default values?
_________________________________________________________________
Chat online in real time with MSN Messenger http://messenger.msn.co.uk
|
|
From: veenurs <ve...@ma...> - 2003-02-24 07:02:34
|
Hi PW ,
Well , I guessed it had something to do with the AT Least qualifier
.But , I just can't help bothoring abt . the extra bytes !
It's lioke this- the memory created is used to store bytes of formatted
data , which are then to be used by another part of application . So ,
the extra bytes are screwing up the formatting and making 6the data
useless !!
The data itself is comming from decryption routines , so I cannot be
sure of the exact size before decryption ( therefore , I NEED the
malloc- realloc thing , would hate to use arrays .)
MoreOvere , There is no such problem In VC++ ( I have a learner ed.), or
LCC .
Thanks , any other solution ?
-Rahul.
Per Westermark wrote:
>Stop bothering about the size of the returned memory block.
>
>The allocation functions are only required to return AT LEAST the required
>amount of memory, or a NULL pointer.
>
>Internally, they normally add 8-16 byte of internal header for
>book-keeping on the heap, i.e. to allow the heap manager to walk free and
>used memory block.
>
>Besides, most heap managers performs one of the following:
>- rounds each block up to the nearest 8 or 16 byte increment.
>- allocates the nearest larger 2^n size.
>- uses the buddy system and allocates the nearest larger block size.
>
>As a result - for allocation of very small objects, it might often
>be better to allocate a bunch of objects at a time, and keep pool of
>evailable objects in a list.
>
>In the example below, the calloc call MUST use sizeof(BYTE). The
>statement calloc(1000,BYTE) doesn't make sense.
>
>/Per W
>
>On Mon, 24 Feb 2003, Danny Roelofs wrote:
>
>
>
>>Hi,
>>
>>Well i dont realy know what youre doing with it.. and i never used calloc but it seems your allocating memory for 1000 bytes
>>and a additional 8 bytes.. sizeof(byte) reserves 8 bytes in my opinion. is it perhaps that you have to do this:
>>
>>calloc(1000,BYTE) instead of calloc(1000,sizeof(BYTE))
>>
>>Well i actualy dont know.. i am just programming in C for just a month or so..
>>
>>
>> ----- Original Message -----
>> From: veenurs
>> To: dev...@li... ; ra...@ww...
>> Sent: Monday, February 24, 2003 1:16 AM
>> Subject: [Dev-C++] Re: malloc , extra bytes ! Somewhat urgent !
>>
>>
>>
>>
>> Hi !
>> It seems too simple .But what is it !?
>> if( (buffer = ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) == NULL ){
>> ------
>> -------
>> }
>> size = _msize( buffer );
>>
>> The size I get it is not 1000 , but 1008 !Same for malloc. Any subsequent call to realloc does not add the 8 bytes,though .
>>
>> [ Dev Cpp Version 4.9.7.0 ]
>> What's happening ?
>> BTW - "Generate debugging info" is OFF .
>> Thanks in advance .
>>
>> -Rahul.
>>
>>
>>
>>
>>
>
>
>
>
|
|
From: lamont <lam...@ve...> - 2003-02-24 06:47:23
|
I have wxwindows version 2.4.0 and dev cpp 4.9.7.4. I'm able to get wxwindows compiled into a lib from the command line, but when I try to compile an example program it fails with the following error: unrecognised emulation mode: windows Supported emulations: i386pe I have check every option that I know of in dev cpp and the -mwindows directive is not listed. Here are my compiler and linker options: compiler: -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -DWINVER=0x400 -D__WIN95__ -DSTRICT -D__WXDEBUG__ linker: -lwxmswd -lcomdlg32 -luser32 -lgdi32 -lole32 -lwsock32 -lcomctl32 -l ctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid -Le:\work_area \programming\wxWindows\lib The project type is set to 'Win32 GUI' and here is the command line that devcpp sends to the compiler: g++.exe -D__DEBUG__ 1stproject.o -o "Project1.exe" -lwinmm -L"D:/program_files/Dev-Cpp/lib" -L"E:/work_area/prog ramming/c++/utilLib" -L"" -mwindows -lwxmswd -lcomdlg32 -luser32 -lgdi32 -lo le32 -lwsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -lad vapi32 -luuid -Le:/work_area/programming/wxWindows/lib -I"D:/program_files/ Dev-Cpp/include" -I"e:/work_area/programming/wxwindows/include" -I"e:/work _area/programming/wxwindows/lib/mswd" -fexpensive-optimizations -g3 Anyone know how I can get rid of the -mwindows option? Or is there some other problem?? thanks. |
|
From: Nadeem A. <gha...@ho...> - 2003-02-24 05:57:30
|
confirm 795556 _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Per W. <pw...@ia...> - 2003-02-24 03:51:33
|
Stop bothering about the size of the returned memory block.
The allocation functions are only required to return AT LEAST the required
amount of memory, or a NULL pointer.
Internally, they normally add 8-16 byte of internal header for
book-keeping on the heap, i.e. to allow the heap manager to walk free and
used memory block.
Besides, most heap managers performs one of the following:
- rounds each block up to the nearest 8 or 16 byte increment.
- allocates the nearest larger 2^n size.
- uses the buddy system and allocates the nearest larger block size.
As a result - for allocation of very small objects, it might often
be better to allocate a bunch of objects at a time, and keep pool of
evailable objects in a list.
In the example below, the calloc call MUST use sizeof(BYTE). The
statement calloc(1000,BYTE) doesn't make sense.
/Per W
On Mon, 24 Feb 2003, Danny Roelofs wrote:
> Hi,
>
> Well i dont realy know what youre doing with it.. and i never used calloc but it seems your allocating memory for 1000 bytes
> and a additional 8 bytes.. sizeof(byte) reserves 8 bytes in my opinion. is it perhaps that you have to do this:
>
> calloc(1000,BYTE) instead of calloc(1000,sizeof(BYTE))
>
> Well i actualy dont know.. i am just programming in C for just a month or so..
>
>
> ----- Original Message -----
> From: veenurs
> To: dev...@li... ; ra...@ww...
> Sent: Monday, February 24, 2003 1:16 AM
> Subject: [Dev-C++] Re: malloc , extra bytes ! Somewhat urgent !
>
>
>
>
> Hi !
> It seems too simple .But what is it !?
> if( (buffer = ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) == NULL ){
> ------
> -------
> }
> size = _msize( buffer );
>
> The size I get it is not 1000 , but 1008 !Same for malloc. Any subsequent call to realloc does not add the 8 bytes,though .
>
> [ Dev Cpp Version 4.9.7.0 ]
> What's happening ?
> BTW - "Generate debugging info" is OFF .
> Thanks in advance .
>
> -Rahul.
>
>
>
|
|
From: Matthews <dem...@uw...> - 2003-02-24 02:50:54
|
vUpdate has been giving me problems ever since I started using it, resulting in the fact that I'm unable to download packages because of "socket errors." This also means that I'm not able to download new versions of Dev-C++. A request to the admins: Could you possibly mirror the updates, if not all the packages, in a site accessable from a webbrowser? Preferrably not an FTP server, as that causes havoc with me. Thanks. |
|
From: <ri...@te...> - 2003-02-24 01:46:22
|
Matt Roslevich escribió: > I use MetroWorks CodeWarrior IDE on my computer at school, and I > assumed that C++ compilers were all the same. I tried a simple > program that works all the time on C++ and it failed on DEV C++ 5. It > was a simple program that took i, which equaled 5, and incremented it > using a for loop, until it hit 10, and then the loop stoped. But when > I compiled it, the program said that cout and endl were un-defined > identifiers and that <iostream.h> was not right? Why won't it work? Well you shouldn't use headers in C++ that way, even with CodeWarrior. It´s very advisable to use <iostream> (with/o .h) and tell the compiler to use the standard name space, like this: #include <iostream> using namespace std; ...your code here Cheers |
|
From: Danny R. <dro...@ho...> - 2003-02-24 01:07:41
|
Hi,
Well i dont realy know what youre doing with it.. and i never used =
calloc but it seems your allocating memory for 1000 bytes=20
and a additional 8 bytes.. sizeof(byte) reserves 8 bytes in my opinion. =
is it perhaps that you have to do this:
calloc(1000,BYTE) instead of calloc(1000,sizeof(BYTE))
Well i actualy dont know.. i am just programming in C for just a month =
or so..
----- Original Message -----=20
From: veenurs=20
To: dev...@li... ; ra...@ww...=20
Sent: Monday, February 24, 2003 1:16 AM
Subject: [Dev-C++] Re: malloc , extra bytes ! Somewhat urgent !
Hi !=20
It seems too simple .But what is it !?=20
if( (buffer =3D ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) =3D=3D NULL ){=20
------=20
-------=20
}=20
size =3D _msize( buffer );=20
The size I get it is not 1000 , but 1008 !Same for malloc. Any =
subsequent call to realloc does not add the 8 bytes,though .=20
[ Dev Cpp Version 4.9.7.0 ]=20
What's happening ?=20
BTW - "Generate debugging info" is OFF .=20
Thanks in advance .=20
-Rahul.=20
|
|
From: veenurs <ve...@ma...> - 2003-02-24 00:16:28
|
Hi !
It seems too simple .But what is it !?
if( (buffer = ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) == NULL ){
------
-------
}
size = _msize( buffer );
The size I get it is not 1000 , but 1008 !Same for malloc. Any
subsequent call to realloc does not add the 8 bytes,though .
[ Dev Cpp Version 4.9.7.0 ]
What's happening ?
BTW - "Generate debugging info" is OFF .
Thanks in advance .
-Rahul.
|
|
From: Matt R. <mro...@al...> - 2003-02-23 23:42:54
|
I use MetroWorks CodeWarrior IDE on my computer at school, and I assumed = that C++ compilers were all the same. I tried a simple program that = works all the time on C++ and it failed on DEV C++ 5. It was a simple = program that took i, which equaled 5, and incremented it using a for = loop, until it hit 10, and then the loop stoped. But when I compiled = it, the program said that cout and endl were un-defined identifiers and = that <iostream.h> was not right? Why won't it work? |
|
From: va13ak <va...@uk...> - 2003-02-23 22:35:49
|
Hello , Add to following string -D__WXDEBUG__ -DWIN32 -D_WIN32 -D__WIN95__ -D__GNUWIN32 read attached file for more info -- Best regards, va13ak mailto:va...@uk... |
|
From: Josh S. <jd...@ya...> - 2003-02-23 21:36:18
|
Thanks, That led me to the right place, I just looked at the flags used to compile wxWindows. I'm a newby at this and am clinbing the learning curve. I got it compiled but now it has a fatal error that I compiled wxWindows with debug and my program with no debug...<SIGH>. I get there one of these days. Thanks again. Josh. OROSZI Balázs wrote: > Josh Sharp wrote: > >> I am trying to compile a test wxWinodws app and keep getting: >> >> c:\Dev-Cpp\include\wx\string.h:164 #error: "Please define string >> case-insensitive compare for your OS/compiler" >> >> What does this mean and how can I fix it? > > First of all, it is always advisable to send the compiler command > line, what flags was the compiler called with, other error messages, > etc., so others can help you efficiently and quickly, without the need > to ask for this extra info. > > I can only guess you didn't specify a few flags on the command line, > like -DWIN32 -D_WIN32 -D__WIN95__ -D__GNUWIN32 or others. > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > 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-use |
|
From: <or...@vp...> - 2003-02-23 20:12:50
|
Josh Sharp wrote: > I am trying to compile a test wxWinodws app and keep getting: > > c:\Dev-Cpp\include\wx\string.h:164 #error: "Please define string > case-insensitive compare for your OS/compiler" > > What does this mean and how can I fix it? First of all, it is always advisable to send the compiler command line, what flags was the compiler called with, other error messages, etc., so others can help you efficiently and quickly, without the need to ask for this extra info. I can only guess you didn't specify a few flags on the command line, like -DWIN32 -D_WIN32 -D__WIN95__ -D__GNUWIN32 or others. -- Greetings, Balázs |
|
From: Josh S. <jd...@ya...> - 2003-02-23 19:00:39
|
I am trying to compile a test wxWinodws app and keep getting: c:\Dev-Cpp\include\wx\string.h:164 #error: "Please define string case-insensitive compare for your OS/compiler" What does this mean and how can I fix it? |
|
From: Michel W. <mic...@fr...> - 2003-02-23 17:58:04
|
OROSZI Balázs a écrit: > Hello! > > I am using my externally self compiled wxWindows. How do I know, which > include dirs, library dirs, and libraries do I need to add to the > project, when I write a program which uses wxWindows, from Dev-C++? you should add the wxwindows library (.a) and use the right compilation options. You could also add <dev-cpp>/include in resource directory (if you have hand.cur file not find) > > I looked at the makefile, which comes with wxWindows and I digged and > copy-pasted the dirs and libs from it. > > Is this the normal way, or is there a more general one? you could try my dev-packs at <<http://michel.weinachter.free.fr>> I need more tests. > > I am using Dev-C++ 4.9.7.6 (the latest). > -- > Regards, > Balázs > > P.S.: Please don't forget my previous question. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > 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: Michel W. <mic...@fr...> - 2003-02-23 17:51:47
|
OROSZI Balázs a écrit: > Hello! > > Does Dev-C++ support environment variables at giving include and lib > directories? > > If yes how? yes but you have do change that with a test editor in the project file (.dev) > > If no, how can it be emulated? > > It would be very good to support it, because I am using 2 external > libraries (wxWindows(not the DevPak!) and Crystal Space 3D SDK) for my > project, and I want to publish it, but the include and lib directories > are absolute in Dev-C++, and it would be easier for others if they > only set an environment variable, and just hit compile. > > -- > Thank you in advance, > Balázs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > 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: Louis G. <lg...@ya...> - 2003-02-23 16:34:47
|
Greets to List members:
Can anyone help me on this question:
There appears to be several C++ string classes that can be implemented
using the gcc compiler that comes with DevC++. Can anyone recommend a
string class that has many useful string manipulation methods ? Where can
I get a help help file or doc for the class methods ?
--- Ioannis Vranos <no...@ho...> wrote:
> -------Original Message-------
>
> From: Jeeun Cho
> Date: ÊõñéáêÞ, 23 ÖåâñïõÜñéïò 2003 9:25:06 ðì
> To: dev...@li...
> Subject: [Dev-C++] string and char
>
> hello..
> this is the part of my program..
> ===============================================
>
> for(int x=0;x<lengCom;x++)
> {
> comet[x]=nameCom.substr(fir,1);
> fir++;
> }
>
> ===============================================
> in this part, the array, comet is char, and im trying
> to store a single alphabet into comet array...but the
> problem is that it's not right to relate different
> datatype...
> how can i change string into char?
> (to make this part work?)
>
>
> #include <cstring>
>
> // ...
>
> char *c-style=new char[cppstring.size()+1];
>
>
> // Copies the string to a c-style string. string::c_str() returns a
> const
> char *.
> std::strcpy(c-style, cppstring.c_str());
>
>
> Ioannis Vranos
>
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
|
|
From: Lars-Bo J. <la...@fo...> - 2003-02-23 12:55:43
|
Hi all I am using latest MingW with all updates including Msys, that is gcc 3.2. I am experiencing some peculiarities and I am not sure if it is bugs in Dev-Cpp 4.9.7.6 or just a consequence of the fact that it might not be wise to use another compiler then the one supplied with Dev-Cpp. I hope someone can tell me if it is bugs, wrong set-up and how to fix it then or if I should not use an external MingW compiler. When compiling a program with error the first tab in the bottom sometimes has other information in the line column then line numbers, also in the message column only a fragment of the error message appears, looking at the compiler log tab reveals that the reason is that the compiler reports messages over several lines and only the part from the first lines is reported in the message column of the compiler tab. Trying to debug, nothing appears in the debug window (the one to the left) even though dev-cpp recognise the classes and so on. Adding a watch does nothing, where should the watch result appear ?. Doing a rebuild all results in error, while deleting all the objects files and the compile is ok. I did tell dev-cpp to use minw32-make.exe (due to the existence of msys), doing rebuild all reports: Compiler: Default compiler Building Makefile: "C:\Documents and Settings\lars_bo\My Documents\Coding\egne\classes\FIG06_10\Makefile.win" Executing make clean rm -f Fig06_10.o Time3.o Fig06_10.exe process_begin: CreateProcess((null), rm -f Fig06_10.o Time3.o Fig06_10.exe, ...) failed. make (e=2): The system cannot find the file specified. mingw32-make.exe: *** [clean] Error 2 Execution terminated Regards Lars-Bo |
|
From: Brian S. <blu...@at...> - 2003-02-23 07:24:36
|
I just saw the information on the Dev C++ Website about some of the new = packages not working with the latest updates. A fresh install of DevC++ = did the trick. Sorry to bother you all ;-) -Brian |
|
From: Jeeun C. <koo...@ya...> - 2003-02-23 07:23:19
|
hello..
this is the part of my program..
===============================================
for(int x=0;x<lengCom;x++)
{
comet[x]=nameCom.substr(fir,1);
fir++;
}
===============================================
in this part, the array, comet is char, and im trying
to store a single alphabet into comet array...but the
problem is that it's not right to relate different
datatype...
how can i change string into char?
(to make this part work?)
thanks
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
|
|
From: Brian S. <blu...@at...> - 2003-02-23 07:05:07
|
Hello all, After looking up Allegro on the net, I decided to get the Allegro = package from the Dev-C++ updater. When trying to compile even just the = un-modified sample project file I get tons of Linker Erros. Any Idea = whats going on? Thanks in advance. Some of the errors: =20 [Linker error] undefined reference to `_imp__font' =20 [Linker error] undefined reference to `_imp__screen' =20 [Linker error] undefined reference to `_imp__font' =20 [Linker error] undefined reference to `_imp__screen' =20 [Linker error] undefined reference to `_imp__key' =20 [Linker error] undefined reference to `DirectSoundEnumerateA@8' ... and the list goes on. Any help would be greatly appreciated! -Brian |
|
From: Jeeun C. <koo...@ya...> - 2003-02-23 02:25:34
|
hello.. i want to use matrix in my program... but i couldnt find apmatrix.h in dev-c++... is there other header instead of apmatrix.h? thanks __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ |
|
From: <ri...@te...> - 2003-02-22 23:27:54
|
Jeeun Cho escribió: >hello... >actually i jst got dev c++ and..made a simple string >program to test.. >in the program, i used apstring.h, but it didnt work.. >and after that, i used string.h, but that didnt work >either. >How can i make string work? > >thanks > > Use this instead: #include <string> using namespace std; //Your code here Greetings |
|
From: <ri...@te...> - 2003-02-22 23:25:19
|
Well if you don´t want to use STL you have two options:
1) Build your own vector class which can resize an array in run time.
That´s good for learning, but choosing this option means more writing
more code and since you already have the vector class in STL I think
it´s no point in it.
2) Write a function for resize an array:
Good option if you are using "old-school" arrays. A generic
function could be:
template <class T>
T* resize(& T* source_array, const int &source_array_size, const int
&new_n_elements, const T &inital_value = (T) 0 ){
//Allocate memory for new array;
T* temp = new T [new_n_elements];
//Copy the "old" array direction
T* temp" = source_array;
//Copy the source array
for(int i=0; (i < source_array_elements) && (i < new_n_elements); i++)
temp[i]=source_array[i];
//Init new values.
for (int i = source_array_size; i < new_n_elements; i++)
temp[i] = initial_value;
source_array = temp;
delete [] temp;
return source_array;
}
And, if you have an sprite array which you want to resize:
int size_array = 10;
SPRITE array[size];
resize (array[], size, size+1);
And last, one advice: don´t resize the array for just one element, it
would be better in little increments because of function overhead
A value between 5 - 10 is a good value for your SPRITE class IMHO.
Greetings.
|