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
(2) |
2
|
3
|
4
|
5
(4) |
6
(2) |
7
(5) |
8
(4) |
9
|
10
|
11
(10) |
12
(1) |
13
|
14
|
15
|
16
|
17
|
18
|
19
(7) |
20
(2) |
21
|
22
(3) |
23
|
24
|
25
|
26
(2) |
27
|
28
(1) |
29
|
30
|
From: Philip B. <phi...@pb...> - 2007-06-28 13:40:45
|
Hi everyone, I'm having some issues while trying to compile a dll in Dev-C++ with the = stdcall calling convention. I want all my functions to export only as = stdcall, without the @4, @8 and what not after them. What do I set on = the command line, and do I need a def file at all? I declare my = functions like: extern "C" __declspec( dllexport ) int __stdcall myFunction(void); And then in the .def file taht I have right now I do: EXPORTS myFunction@0 Because as far as I understood it you add 4 for each parameter that the = function has because that's the size in bytes of a Win32 pointer. But i'm having some issues getting it to work in other languages, = especially when returning HANDLE which is of course void*. Can anyone = help? I want it to be compatible with as many languages as possible. Regards Philip Bennefall |
From: Jonathan W. <jon...@gm...> - 2007-06-26 10:30:09
|
Hi, This should help: http://en.wikipedia.org/wiki/C_preprocessor For a multiple-inclusion guard, it would be something like this: #ifndef SOMEHEADER_H // or whatever symbol you wish #define SOMEHEADER_H /* insert whole header data here */ #endif I can't help you for Pascal though.. Cheers, Jonathan On 6/26/07, Jan Mura <jan...@vo...> wrote: > > Hello, > > I would like to ask about the preprocesor directives. > I mean the directives which are for including the header > files . > I remember something like #ifdef __someheader_h__ ... > but now I cannot find it in my manuals. > I hope someone will understand what I mean. It is > for not including the header file several times. > > I have another question but maybe it is not a good > place here. > But it is about gcc compiler. Is the compiler for Pascal language in gcc > somehow compatible with Borland Turbo Pascal? > > Thank you very much > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Jan M. <jan...@vo...> - 2007-06-26 10:20:16
|
Hello, I would like to ask about the preprocesor directives. I mean the directives which are for including the header files . I remember something like #ifdef __someheader_h__ ... but now I cannot find it in my manuals. I hope someone will understand what I mean. It is for not including the header file several times. I have another question but maybe it is not a good place here. But it is about gcc compiler. Is the compiler for Pascal language in gcc somehow compatible with Borland Turbo Pascal? Thank you very much Jan Mura jan...@vo... |
From: Jonathan W. <jon...@gm...> - 2007-06-22 16:52:27
|
Well, this is the right place indeed, welcome. Just ask us when you just can't figure something out, but please include in your question anything we need to understand what you are doing, and precisely what you want to do :) Also, most people appreciate us signing our postings. That said, Happy Coding ! Jonathan On 6/22/07, wmaple <wm...@12...> wrote: > > Hi, > I am new to Dev-c++, and want to get some help here. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Per W. <pw...@ia...> - 2007-06-22 16:48:04
|
You really have to be more specific than that... /pwm On Sat, 23 Jun 2007, wmaple wrote: > Hi, > I am new to Dev-c++, and want to get some help here. |
From: wmaple <wm...@12...> - 2007-06-22 16:43:58
|
SGksIA0KSSBhbSBuZXcgdG8gRGV2LWMrKywgYW5kIHdhbnQgdG8gZ2V0IHNvbWUgaGVscCBoZXJl LiA= |
From: Jonathan W. <jon...@gm...> - 2007-06-20 08:03:19
|
Well that's interesting :D So I asked 'cd' what it's got to say for its self: 'cd /?' the help option for most commands in windows, and apparently (plus I tested) 'cd /d d:\mysourcecode' should take you directly to the right place in one go (useful for scripting maybe) You'll probably notice that the current folder is stored per volume: if you go from c:\whatever to d:\ and then back to c:\ by using 'C:', you will end up in c:\whatever again. Using 'cd /d c:' will have the same effect, but 'cd /d c:\' will take you to c:\ Jonathan On 6/20/07, brent lambert <bre...@ya...> wrote: > > just typing "D:" is going to do the trick. But, also you can use the "/D" > switch associated with the "cd" command. Here is an example; if you are on > the "C:" drive in command prompt, type "cd /d d:" and that should also take > you to the "d:" drive > > Brent > > ----- Original Message ---- > From: Jonathan Winterflood <jon...@gm...> > To: Jamiil <jal...@gm...> > Cc: Dev-Cpp Mailing List <dev...@li...>; > Rei...@at... > Sent: Tuesday, June 19, 2007 6:01:11 PM > Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > hi again, > > Just type "D:", nothing more > that will change drive > as you noticed, "CD something" only changes folder inside a drive > "letter:" switches to drive 'letter' > > Jonathan > > On 6/20/07, Jamiil <jal...@gm...> wrote: > > > > I tried this: > > 'cd D:\MySourceCode\' > > But it did not change directory, it stayed in the original directory. > > What am I doing wrong?! > > > > ----- Original Message ----- > > *From:* Jonathan Winterflood <jon...@gm...> > > *To:* Jamiil <jal...@gm...> > > *Cc:* Rei...@at... ; Dev-Cpp Mailing List<dev...@li...> > > *Sent:* Tuesday, June 19, 2007 1:28 PM > > *Subject:* Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > > > Hi, > > > > That's just how windows (DOS) works..... never mind how barmey it is, it > > probably won't change anytime soon... > > > > type [Drive Letter]: instead (eg.: D: ) > > > > Jonathan > > > > On 6/20/07, Jamiil <jal...@gm... > wrote: > > > > > > You know I tried that, but... OK, here is another issue. > > > I have one hard drive, which is partitioned in two. When I type 'cd: > > > d' the > > > OS does not even change from the subdirectory I am in, why is this? > > > > > > Thanks man! > > > ----- Original Message ----- > > > From: "Reid Thompson" <Rei...@at... > > > > To: "Jamiil" <jal...@gm... <jal...@gm...+>> > > > Cc: "Dev-Cpp Mailing List" < dev...@li...> > > > Sent: Tuesday, June 19, 2007 10:04 AM > > > Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > > > > > > > > > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: > > > >> My program compiles, but it has a runtime error. > > > >> I would like to backtrace the bug, but don't know how. After F8ing > > > I > > > >> don't get any output in Backtrace window. So, I guess it does not > > > does > > > >> it automatically. How can I get the backtrace displayed. > > > >> Thanks! > > > >> > > > >> > > > ------------------------------------------------------------------------- > > > >> This SF.net email is sponsored by DB2 Express > > > >> Download DB2 Express C - the FREE version of DB2 express and take > > > >> control of your XML. No limits. Just data. Click to get it now. > > > >> http://sourceforge.net/powerbar/db2/ > > > >> _______________________________________________ Dev-cpp-users > > > mailing > > > >> list Dev...@li... TO UNSUBSCRIBE: > > > >> http://www23.brinkster.com/noicys/devcpp/ub.htm > > > >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > open a cmd window, cd to dir containing your exe, > > > > > > > > run > > > > gdb your.exe > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > > -- > > <Morpheus> linux, c'est une question de VI ou de MORE > > > > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------ > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0A>to find your fit. > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Jamiil <jal...@gm...> - 2007-06-20 01:32:56
|
Yap! That did the trick! Thanks man, thaks so much! ----- Original Message -----=20 From: Jonathan Winterflood=20 To: Jamiil=20 Cc: Rei...@at... ; Dev-Cpp Mailing List=20 Sent: Tuesday, June 19, 2007 2:01 PM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem hi again, Just type "D:", nothing more that will change drive as you noticed, "CD something" only changes folder inside a drive "letter:" switches to drive 'letter' Jonathan On 6/20/07, Jamiil <jal...@gm...> wrote: I tried this: 'cd D:\MySourceCode\' But it did not change directory, it stayed in the original = directory.=20 What am I doing wrong?! ----- Original Message -----=20 From: Jonathan Winterflood=20 To: Jamiil=20 Cc: Rei...@at... ; Dev-Cpp Mailing List=20 Sent: Tuesday, June 19, 2007 1:28 PM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem Hi, That's just how windows (DOS) works..... never mind how barmey it = is, it probably won't change anytime soon... type [Drive Letter]: instead (eg.: D: )=20 Jonathan On 6/20/07, Jamiil <jal...@gm... > wrote:=20 You know I tried that, but... OK, here is another issue. I have one hard drive, which is partitioned in two. When I type = 'cd: d' the OS does not even change from the subdirectory I am in, why is = this?=20 Thanks man! ----- Original Message ----- From: "Reid Thompson" <Rei...@at... > To: "Jamiil" <jal...@gm... > Cc: "Dev-Cpp Mailing List" < = dev...@li...> Sent: Tuesday, June 19, 2007 10:04 AM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem=20 > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: >> My program compiles, but it has a runtime error. >> I would like to backtrace the bug, but don't know how. After = F8ing I=20 >> don't get any output in Backtrace window. So, I guess it does = not does=20 >> it automatically. How can I get the backtrace displayed. >> Thanks! >> >> = -------------------------------------------------------------------------= =20 >> This SF.net email is sponsored by DB2 Express=20 >> Download DB2 Express C - the FREE version of DB2 express and = take >> control of your XML. No limits. Just data. Click to get it = now.=20 >> http://sourceforge.net/powerbar/db2/=20 >> _______________________________________________ Dev-cpp-users = mailing=20 >> list Dev...@li... TO UNSUBSCRIBE: >> http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 > > open a cmd window, cd to dir containing your exe, > > run > gdb your.exe = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express=20 Download DB2 Express C - the FREE version of DB2 express and = take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/=20 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm=20 https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --=20 <Morpheus> linux, c'est une question de VI ou de MORE=20 --=20 <Morpheus> linux, c'est une question de VI ou de MORE |
From: Jonathan W. <jon...@gm...> - 2007-06-19 21:01:16
|
hi again, Just type "D:", nothing more that will change drive as you noticed, "CD something" only changes folder inside a drive "letter:" switches to drive 'letter' Jonathan On 6/20/07, Jamiil <jal...@gm...> wrote: > > I tried this: > 'cd D:\MySourceCode\' > But it did not change directory, it stayed in the original directory. > What am I doing wrong?! > > ----- Original Message ----- > *From:* Jonathan Winterflood <jon...@gm...> > *To:* Jamiil <jal...@gm...> > *Cc:* Rei...@at... ; Dev-Cpp Mailing List<dev...@li...> > *Sent:* Tuesday, June 19, 2007 1:28 PM > *Subject:* Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > Hi, > > That's just how windows (DOS) works..... never mind how barmey it is, it > probably won't change anytime soon... > > type [Drive Letter]: instead (eg.: D: ) > > Jonathan > > On 6/20/07, Jamiil <jal...@gm...> wrote: > > > > You know I tried that, but... OK, here is another issue. > > I have one hard drive, which is partitioned in two. When I type 'cd: d' > > the > > OS does not even change from the subdirectory I am in, why is this? > > > > Thanks man! > > ----- Original Message ----- > > From: "Reid Thompson" <Rei...@at...> > > To: "Jamiil" <jal...@gm... <jal...@gm...+>> > > Cc: "Dev-Cpp Mailing List" <dev...@li...> > > Sent: Tuesday, June 19, 2007 10:04 AM > > Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > > > > > > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: > > >> My program compiles, but it has a runtime error. > > >> I would like to backtrace the bug, but don't know how. After F8ing I > > >> don't get any output in Backtrace window. So, I guess it does not > > does > > >> it automatically. How can I get the backtrace displayed. > > >> Thanks! > > >> > > >> > > ------------------------------------------------------------------------- > > >> This SF.net email is sponsored by DB2 Express > > >> Download DB2 Express C - the FREE version of DB2 express and take > > >> control of your XML. No limits. Just data. Click to get it now. > > >> http://sourceforge.net/powerbar/db2/ > > >> _______________________________________________ Dev-cpp-users mailing > > >> list Dev...@li... TO UNSUBSCRIBE: > > >> http://www23.brinkster.com/noicys/devcpp/ub.htm > > >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > open a cmd window, cd to dir containing your exe, > > > > > > run > > > gdb your.exe > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE > > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Jamiil <jal...@gm...> - 2007-06-19 20:53:07
|
I tried this: 'cd D:\MySourceCode\' But it did not change directory, it stayed in the original directory. What am I doing wrong?! ----- Original Message -----=20 From: Jonathan Winterflood=20 To: Jamiil=20 Cc: Rei...@at... ; Dev-Cpp Mailing List=20 Sent: Tuesday, June 19, 2007 1:28 PM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem Hi, That's just how windows (DOS) works..... never mind how barmey it is, = it probably won't change anytime soon... type [Drive Letter]: instead (eg.: D: ) Jonathan On 6/20/07, Jamiil <jal...@gm...> wrote: You know I tried that, but... OK, here is another issue. I have one hard drive, which is partitioned in two. When I type 'cd: = d' the OS does not even change from the subdirectory I am in, why is this? Thanks man! ----- Original Message ----- From: "Reid Thompson" <Rei...@at...> To: "Jamiil" <jal...@gm... > Cc: "Dev-Cpp Mailing List" <dev...@li...> Sent: Tuesday, June 19, 2007 10:04 AM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem=20 > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: >> My program compiles, but it has a runtime error. >> I would like to backtrace the bug, but don't know how. After = F8ing I >> don't get any output in Backtrace window. So, I guess it does not = does=20 >> it automatically. How can I get the backtrace displayed. >> Thanks! >> >> = -------------------------------------------------------------------------= >> This SF.net email is sponsored by DB2 Express=20 >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/=20 >> _______________________________________________ Dev-cpp-users = mailing >> list Dev...@li... TO UNSUBSCRIBE: >> http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 > > open a cmd window, cd to dir containing your exe, > > run > gdb your.exe = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express=20 Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/=20 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --=20 <Morpheus> linux, c'est une question de VI ou de MORE |
From: Jonathan W. <jon...@gm...> - 2007-06-19 20:28:24
|
Hi, That's just how windows (DOS) works..... never mind how barmey it is, it probably won't change anytime soon... type [Drive Letter]: instead (eg.: D: ) Jonathan On 6/20/07, Jamiil <jal...@gm...> wrote: > > You know I tried that, but... OK, here is another issue. > I have one hard drive, which is partitioned in two. When I type 'cd: d' > the > OS does not even change from the subdirectory I am in, why is this? > > Thanks man! > ----- Original Message ----- > From: "Reid Thompson" <Rei...@at...> > To: "Jamiil" <jal...@gm...> > Cc: "Dev-Cpp Mailing List" <dev...@li...> > Sent: Tuesday, June 19, 2007 10:04 AM > Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > > > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: > >> My program compiles, but it has a runtime error. > >> I would like to backtrace the bug, but don't know how. After F8ing I > >> don't get any output in Backtrace window. So, I guess it does not does > >> it automatically. How can I get the backtrace displayed. > >> Thanks! > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ Dev-cpp-users mailing > >> list Dev...@li... TO UNSUBSCRIBE: > >> http://www23.brinkster.com/noicys/devcpp/ub.htm > >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > open a cmd window, cd to dir containing your exe, > > > > run > > gdb your.exe > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Per W. <pw...@ia...> - 2007-06-19 20:23:12
|
To must write: d: cd \my\directory gdb myapp.exe The command: cd d:\foo changes the current directory on the d: drive, but does not move you to the d: drive. /pwm On Tue, 19 Jun 2007, Jamiil wrote: > You know I tried that, but... OK, here is another issue. > I have one hard drive, which is partitioned in two. When I type 'cd: d' the > OS does not even change from the subdirectory I am in, why is this? > > Thanks man! > ----- Original Message ----- > From: "Reid Thompson" <Rei...@at...> > To: "Jamiil" <jal...@gm...> > Cc: "Dev-Cpp Mailing List" <dev...@li...> > Sent: Tuesday, June 19, 2007 10:04 AM > Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > > > > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: > >> My program compiles, but it has a runtime error. > >> I would like to backtrace the bug, but don't know how. After F8ing I > >> don't get any output in Backtrace window. So, I guess it does not does > >> it automatically. How can I get the backtrace displayed. > >> Thanks! > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ Dev-cpp-users mailing > >> list Dev...@li... TO UNSUBSCRIBE: > >> http://www23.brinkster.com/noicys/devcpp/ub.htm > >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > open a cmd window, cd to dir containing your exe, > > > > run > > gdb your.exe > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Jamiil <jal...@gm...> - 2007-06-19 20:20:52
|
You know I tried that, but... OK, here is another issue. I have one hard drive, which is partitioned in two. When I type 'cd: d' the OS does not even change from the subdirectory I am in, why is this? Thanks man! ----- Original Message ----- From: "Reid Thompson" <Rei...@at...> To: "Jamiil" <jal...@gm...> Cc: "Dev-Cpp Mailing List" <dev...@li...> Sent: Tuesday, June 19, 2007 10:04 AM Subject: Re: [Dev-C++] Gtkmm/Dev-Cpp problem > On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: >> My program compiles, but it has a runtime error. >> I would like to backtrace the bug, but don't know how. After F8ing I >> don't get any output in Backtrace window. So, I guess it does not does >> it automatically. How can I get the backtrace displayed. >> Thanks! >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ Dev-cpp-users mailing >> list Dev...@li... TO UNSUBSCRIBE: >> http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > open a cmd window, cd to dir containing your exe, > > run > gdb your.exe |
From: Reid T. <Rei...@at...> - 2007-06-19 17:04:38
|
On Tue, 2007-06-19 at 12:56 -0700, Jamiil wrote: > My program compiles, but it has a runtime error. > I would like to backtrace the bug, but don't know how. After F8ing I > don't get any output in Backtrace window. So, I guess it does not does > it automatically. How can I get the backtrace displayed. > Thanks! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users open a cmd window, cd to dir containing your exe, run gdb your.exe |
From: Jamiil <jal...@gm...> - 2007-06-19 16:53:45
|
My program compiles, but it has a runtime error. I would like to backtrace the bug, but don't know how. After F8ing I = don't get any output in Backtrace window. So, I guess it does not does = it automatically. How can I get the backtrace displayed. Thanks! |
From: <Ber...@eu...> - 2007-06-12 10:11:54
|
Jan Mura wrote: > I do not know if anyone is familiar with it but=20 > I would to ask, how to create some installation=20 > script for Windows system > It means it just place an exe to PATH > so it is runnable. > I know it is done by these things like > Install Shield and similar.=20 > But I have nothing like this and to be honest > I do not to want to learn > programs like this. Of cause you can write a simple batch which copies your binary f.e. to = c:\windows\system32 or whereever. But have a look at http://nsis.sourceforge.net/Main_Page Use one of the basic examples and you will be able to create a = professional installer in 5 minutes. Regards, G=E9r=F4me |
From: Per W. <pw...@ia...> - 2007-06-11 14:36:13
|
If you run the application from gdb, it will immediately catch the error and show you the line where it happened. Then you can look at all variables and the call stack. Note that the OS may have blocked the generation of core dumps, or put a limit to their sizes. /pwm On Mon, 11 Jun 2007, Lloyd wrote: > Hi, > My application crashes randomly. (I am on Linux). I have set > "ulimit" to unlimited. And when the program crashes, it shows > "Segmentation fault core dumped". But I have searched in the > application's path, and could not find the core file. Where could be the > core dump? > > Or else, how can I find the source of the problem of my program? > > Thanks, > Lloyd > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Lloyd <ll...@cd...> - 2007-06-11 14:16:44
|
Hi, My application crashes randomly. (I am on Linux). I have set "ulimit" to unlimited. And when the program crashes, it shows "Segmentation fault core dumped". But I have searched in the application's path, and could not find the core file. Where could be the core dump? Or else, how can I find the source of the problem of my program? Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Reid T. <Rei...@at...> - 2007-06-11 12:29:31
|
I rarely post, but I follow the list and re.. > > I was reviewing some threads, and I noticed that Per Westermark is > almost > > a center piece in this list... To be thruthful he/she helped me a > couple of > > times already and I feel almost oblidge to issue a recognition... +1 reid |
From: Per W. <pw...@ia...> - 2007-06-11 12:24:37
|
Thanks :) /pwm On Mon, 11 Jun 2007, hhh hhh wrote: > > > Hello dev...@li... : > > Let me start off saying that I dom not want to spam, nor create a > non-computer realted threat, but I felt it was time to thank some people > that helped me to developed myself as a programmer. > I wish to thank everyone in the list. This list is very good, I find it > amasing that one can ask almost everything related to computer science and > get an answer in a matter of minutes. > I was reviewing some threads, and I noticed that Per Westermark is almost > a center piece in this list... To be thruthful he/she helped me a couple of > times already and I feel almost oblidge to issue a recognition... Thank you > for every help you provided, with the upmost forthcoming and speedy manner. > To everyone in particular, but to Per Westermark in Particular, > Thank you. > > _________________________________________________________________ > Partilhe o que quizer com quem quizer. Use as Pastas Partilhadas! > http://get.live.com/pt-pt/messenger/overview > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: hhh h. <the...@ho...> - 2007-06-11 11:37:17
|
Hello dev...@li... : Let me start off saying that I dom not want to spam, nor create a non-computer realted threat, but I felt it was time to thank some people that helped me to developed myself as a programmer. I wish to thank everyone in the list. This list is very good, I find it amasing that one can ask almost everything related to computer science and get an answer in a matter of minutes. I was reviewing some threads, and I noticed that Per Westermark is almost a center piece in this list... To be thruthful he/she helped me a couple of times already and I feel almost oblidge to issue a recognition... Thank you for every help you provided, with the upmost forthcoming and speedy manner. To everyone in particular, but to Per Westermark in Particular, Thank you. _________________________________________________________________ Partilhe o que quizer com quem quizer. Use as Pastas Partilhadas! http://get.live.com/pt-pt/messenger/overview |
From: Per W. <pw...@ia...> - 2007-06-11 11:24:13
|
There are several free installers available, and some of the advantages of using one is: - distribute a compressed binary - automatically add start menu item - add a documentation file - allow uninstall that works even for people who don't know computers. /pwm On Mon, 11 Jun 2007, Jan Mura wrote: > Hello, > > I do not know if anyone is familiar with it but > I would to ask, how to create some installation > script for Windows system > It means it just place an exe to PATH > so it is runnable. > I know it is done by these things like > Install Shield and similar. > But I have nothing like this and to be honest > I do not to want to learn > programs like this. > > Thank you > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Jan M. <jan...@vo...> - 2007-06-11 11:10:43
|
Hello, I do not know if anyone is familiar with it but I would to ask, how to create some installation script for Windows system It means it just place an exe to PATH so it is runnable. I know it is done by these things like Install Shield and similar. But I have nothing like this and to be honest I do not to want to learn programs like this. Thank you Jan Mura jan...@vo... |
From: Per W. <pw...@ia...> - 2007-06-11 08:14:58
|
Why do you reply to a daily digest, without even removing all mails from the digest? This means that a large part of the list readers gets that days mails twice, and makes the people who know the answer to your question quite a lot less inclined to help you... /pwm |
From: Akua A. <ek...@sb...> - 2007-06-11 07:43:39
|
Hello, Does anyone know how to create resource script files and link these to source programs? I created a Resource (.rc) file using WinAPI. I then created a header file and my c-source code. I put my header file, which contained definitions into the header region of my .rc file. I also put the header file in my c-source code file. Next, I pressed compile and tried to link all of it together. However, I got an error, it said that the resource file could not be found. It opened up a separate file which actually contained no information at all. Can someone with experience usin the DEV C++ IDE teach me how to create a project with these component files? Thanks. dev...@li... wrote: Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. What is wrong (Jan Mura) 2. Re: What is wrong (Per Westermark) 3. Re: What is wrong (Jan Mura) 4. Formula question (Philip Bennefall) 5. Re: Formula question (Jonathan Winterflood) 6. Re: Formula question (Per Westermark) 7. Re: Formula question (Per Westermark) 8. Linked list (Jan Mura) ---------------------------------------------------------------------- Message: 1 Date: Wed, 6 Jun 2007 19:08:24 +0200 From: "Jan Mura" Subject: [Dev-C++] What is wrong To: Message-ID: <000701c7a85d$4c763a70$e6e218ac@TERASUS2> Content-Type: text/plain; charset="iso-8859-2" Hello, I would like to ask what is wrong on the following: ... int *i; *i = 1; printf ("%d", *i); ... As I read in Brian W. Kernighan, Denis M. Ritchie it should work. But anyway in my program it prints nothing. If I delete the line *i = 1; it works properly. I am on XP Professional with Dev-Cpp. Thanks Jan Mura jan...@vo... ------------------------------ Message: 2 Date: Wed, 6 Jun 2007 19:13:43 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] What is wrong To: Jan Mura Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII i is a pointer, i'e an address to a separate memory for storing the integer value. You must first assign an address to i, before you may assign an integer to the memory area pointed to by i. int main() { int *i; i = (int*)malloc(sizeof(int)); *i = 1; printf("%d\n",*i); free(i); // release the memory allocated with the malloc() call. return 0; } /pwm On Wed, 6 Jun 2007, Jan Mura wrote: > Hello, > > I would like to ask what is wrong on the following: > > ... > int *i; > *i = 1; > printf ("%d", *i); > > ... > > As I read in > Brian W. Kernighan, Denis M. Ritchie it should work. > > But anyway in my program it prints nothing. > > If I delete the line > > *i = 1; > > it works properly. > > > > I am on XP Professional with Dev-Cpp. > > > > Thanks > > > > Jan Mura > > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------ Message: 3 Date: Thu, 7 Jun 2007 08:39:45 +0200 From: "Jan Mura" Subject: Re: [Dev-C++] What is wrong To: Message-ID: <001401c7a8ce$a48a12b0$720c18ac@TERASUS2> Content-Type: text/plain; charset="iso-8859-2" Well, of course. Maybe I am a little bit out of order because of dealing with C and its pointers now quite intensively. Thank you anyway Jan Mura ----- Original Message ----- From: "Per Westermark" To: "Jan Mura" Cc: Sent: Wednesday, June 06, 2007 7:13 PM Subject: Re: [Dev-C++] What is wrong > i is a pointer, i'e an address to a separate memory for storing the > integer value. > > You must first assign an address to i, before you may assign an integer to > the memory area pointed to by i. > > int main() { > int *i; > i = (int*)malloc(sizeof(int)); > *i = 1; > printf("%d\n",*i); > free(i); // release the memory allocated with the malloc() call. > return 0; > } > > /pwm > > On Wed, 6 Jun 2007, Jan Mura wrote: > > > Hello, > > > > I would like to ask what is wrong on the following: > > > > ... > > int *i; > > *i = 1; > > printf ("%d", *i); > > > > ... > > > > As I read in > > Brian W. Kernighan, Denis M. Ritchie it should work. > > > > But anyway in my program it prints nothing. > > > > If I delete the line > > > > *i = 1; > > > > it works properly. > > > > > > > > I am on XP Professional with Dev-Cpp. > > > > > > > > Thanks > > > > > > > > Jan Mura > > > > jan...@vo... > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > __________ Informace od NOD32 2313 (20070606) __________ > > Tato zprava byla proverena antivirovym systemem NOD32. > http://www.nod32.cz > > ------------------------------ Message: 4 Date: Thu, 7 Jun 2007 18:03:30 +0200 From: "Philip Bennefall" Subject: [Dev-C++] Formula question To: Message-ID: <008b01c7a91d$64efc790$4800a8c0@Pbgames> Content-Type: text/plain; charset="iso-8859-1" Hi, Could anyone tell me the formula which is used to calculate the min and max values for a numerical data type of x bytes? Say for instance that I use the sizeof(datatype) function and get the answer 4, which is usually an integer, how do I then programatically calculate the min and max values for a signed and unsigned version of the data type respectively. Thanks in advance. Regards Philip Bennefall -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Thu, 7 Jun 2007 18:55:32 +0200 From: "Jonathan Winterflood" Subject: Re: [Dev-C++] Formula question To: "Philip Bennefall" Cc: dev...@li... Message-ID: Content-Type: text/plain; charset="iso-8859-1" On 6/7/07, Philip Bennefall wrote: > > Hi, > Could anyone tell me the formula which is used to calculate the min and > max values for a numerical data type of x bytes? Say for instance that I use > the > sizeof(datatype) function and get the answer 4, which is usually an > integer, how do I then programatically calculate the min and max values for > a signed > and unsigned version of the data type respectively. > Thanks in advance. > Regards > Philip Bennefall > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > Hi, Usually there are constants defined for this use, which might be more useful. However, this is how to calculate the values, supposing the encoding for negative number is 2's complement (machines that don't use this are rather rare, I believe, and won't be running windows...) Also supposing your data type is some kind of binary integer (floats and double are encoded differently) nb_bytes = sizeof(...) nb_bits = 8*nb_bytes max_unsigned = 2^nb_bits - 1 min_unsigned = 0 //no kidding ! max_signed = 2^(nb_bits-1) - 1 min_unsigned = -( 2^(nb_bits-1) ) Jonathan -- linux, c'est une question de VI ou de MORE -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 6 Date: Thu, 7 Jun 2007 19:09:10 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] Formula question To: Philip Bennefall Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII There are no formula for that. This is the normal way of doing it in C (available in the standard header files) #define MAX(a,b) ((a) >= (b) ? (a) : (b)) #define MIN(a,b) ((a) <= (b) ? (a) : (b)) Note that the above two constructs have problems if the parameters have side effects, i.e. for something like: max = MAX(*a++,*b--); For c++, there is a algorithm std::max() available in the standard template library. /pwm On Thu, 7 Jun 2007, Philip Bennefall wrote: > Hi, > Could anyone tell me the formula which is used to calculate the min and max values for a numerical data type of x bytes? Say for instance that I use the > sizeof(datatype) function and get the answer 4, which is usually an integer, how do I then programatically calculate the min and max values for a signed > and unsigned version of the data type respectively. > > Thanks in advance. > > Regards > Philip Bennefall ------------------------------ Message: 7 Date: Thu, 7 Jun 2007 19:10:58 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] Formula question To: Philip Bennefall Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII Oops, missed the meaning of your question. Look at the file - it contains a lot of defines for numeric ranges for different data types (char, short, int, long, ...) /pwm On Thu, 7 Jun 2007, Philip Bennefall wrote: > Hi, > Could anyone tell me the formula which is used to calculate the min and max values for a numerical data type of x bytes? Say for instance that I use the > sizeof(datatype) function and get the answer 4, which is usually an integer, how do I then programatically calculate the min and max values for a signed > and unsigned version of the data type respectively. > > Thanks in advance. > > Regards > Philip Bennefall ------------------------------ Message: 8 Date: Fri, 8 Jun 2007 16:46:05 +0200 From: "Jan Mura" Subject: [Dev-C++] Linked list To: Message-ID: <000601c7a9db$bff90b10$8ce118ac@TERASUS2> Content-Type: text/plain; charset="iso-8859-2" Hello, I would like to ask about some things in linked list I try to write. It looks like: struct s { int id; char *name; struct s *next; }; int main () { struct s *front = NULL; /*the front of a list */ int i = 1; char *name; while (1) { gets (name); if (strlen(name) == 0) break; in_list (&front, i, name); i++; } return 0; } void in_list (struct s **q, int in_id, const char *in_name) { struct s*member, *temp; member = malloc (sizeof (struct s)); member -> name = malloc (strlen (in_name) +1); member-> id = in_id; strcpy (member -> name, in_name); member -> next = NULL; /* it will be the last member in the list */ if (q == NULL) /* empty list */ { q = member; q -> next = NULL; } else { temp = q; temp -> next = q -> next; while (temp -> next != NULL) temp = temp -> next; /* looking for the last member in the list */ temp ->next = member; /* the last member is no more the last one */ } } Should I allocate the space for temp and temp -> next when I am putting an adress from member to temp? So should it looks like: temp = malloc ...; temp = member; ??? Thanks for your answer. Jan Mura jan...@vo... ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ 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 End of Dev-cpp-users Digest, Vol 13, Issue 2 ******************************************** |