dev-cpp-users Mailing List for Dev-C++ (Page 533)
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: Abhijit S. <mu...@gm...> - 2002-08-31 11:36:36
|
> > Is There ANY Way To Put In Graphics AND/OR Sound In A DOS Application??? > > Please, Tell How, In Detail, Cause Im Very New At Programming... > > Garrett B. > > > > Email: Jed...@ms... > > Try the Allegro library. It does sound, graphics, timing, etc. It's meant > mainly for games, but there's nothing stopping you from using it for writing > programs. It's also very portable (to Linux, Windows, DOS, Solaris, etc.). Oh, right... URL... http://www.allegro.cc or something. What, you aren't telepathic? ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Ouroborus <our...@so...> - 2002-08-31 04:53:17
|
Now that cheaters in the game are mostly dealt with (and we've got plans on how to further drive them to extinction) the next major issue to deal with is whiners. Mostly this has to do with the forum at blacknova.net. I believe we should put something in the header stating that we have a zero tolerance for whining and that if you must give critisism, it must be constructive or done privately. Further, a zero tolerance policy on flames should be taken. If members cannot control thier language and tempers then they will be deamed not mature enough to participate in those forums. Once posted, give it a few days and then start deleting forum accounts that ignore these policies. |
|
From: <Met...@ao...> - 2002-08-30 14:24:42
|
I'm working on W98SE since ever and I've never seen this problem occur on my machine. And I compile some projects with 200+ lines resources files. Really don't understand what's happening. Perhaps you could ask Colin. -- Seb |
|
From: <al...@te...> - 2002-08-30 11:46:08
|
Finaly i have found the problem, it was mi AntiVirus monitor (Cheyenne), i.ve turn it off, next compile any thing with Dev-cpp and IT WORKS!!! Don=B4t ask me the reason...i am very happy that Windres.exe works again. Thank=B4s and sorry for bothering all of you.... ----- Original Message ----- From: <al...@te...> To: <dev...@li...> Sent: Friday, August 30, 2002 1:31 PM Subject: Re: [Dev-C++] trouble with windres.exe After reinstalling Win98 over it self (just toke me 3 hours!!!) windes.ex= e worked only one time, the second time i tried to compile i,ve got the message: "windres.exe: no resources" it woun=B4t work again... ----- Original Message ----- From: "Zendar" <ze...@ne...> Sent: Friday, August 30, 2002 6:30 AM Subject: [Dev-C++] trouble with windres.exe > >FROM: teleline.es > >DATE: 08/29/2002 06:03:13 > >SUBJECT: [Dev-C++] trouble with windres.exe > > > > >Sudently i can use resources file.... > > >Allway the same answer, with all the programs i have tried to compile that > >have resources files: > >message is: "windres.exe: no resources" > > >I've reinstall Dev-C++ 5.0 beta 5 (4.9.5.0) three or four times and i can=B4t > >compile anythig whit resources, not even the simples examples that com= e with > >it. > > >I am using win98. > > >don=B4t understand anything.. > > I am using Windows 98 also and I see this same error.. > It does not occur on my NT box. > Seems it is realated to Windows 98 > > > > > ------------------------------------------------------- > 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: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=3Durceforge1&refcode1=3D3390 _______________________________________________ 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: <al...@te...> - 2002-08-30 11:31:13
|
After reinstalling Win98 over it self (just toke me 3 hours!!!) windes.ex= e worked only one time, the second time i tried to compile i,ve got the message: "windres.exe: no resources" it woun=B4t work again... ----- Original Message ----- From: "Zendar" <ze...@ne...> Sent: Friday, August 30, 2002 6:30 AM Subject: [Dev-C++] trouble with windres.exe > >FROM: teleline.es > >DATE: 08/29/2002 06:03:13 > >SUBJECT: [Dev-C++] trouble with windres.exe > > > > >Sudently i can use resources file.... > > >Allway the same answer, with all the programs i have tried to compile that > >have resources files: > >message is: "windres.exe: no resources" > > >I've reinstall Dev-C++ 5.0 beta 5 (4.9.5.0) three or four times and i can=B4t > >compile anythig whit resources, not even the simples examples that com= e with > >it. > > >I am using win98. > > >don=B4t understand anything.. > > I am using Windows 98 also and I see this same error.. > It does not occur on my NT box. > Seems it is realated to Windows 98 > > > > > ------------------------------------------------------- > 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: Elizabeth B. <sog...@ya...> - 2002-08-30 05:40:23
|
> > Hello, > > I'm working my way through C++ in Action. And I'm stuck with the error > > message: > > > > C:\Projects\Winnie\Class.cpp > > In method `void Win::ClassMaker::SetIcons(int)': > > 23 C:\Projects\Winnie\Class.cpp > > no matching function for call to `StdIcon::Load (void *&, int &)' > > 43 C:\Projects\Winnie\Icon.h > > candidates are: void StdIcon::Load(HINSTANCE__ *, int) > > > > I have gone through the files Icon.h, Icon.cpp and the functions are all > > there. Icon.h has also been included in Class.cpp. What could be wrong. > > For > > the record I have all the project files in one directory. I have linker > > errors when I split them into differnt directories. > > > > I'll appreciate your help please. It may not be a match. Try doing such things as casting your parameters to the ones in StdIcon::Load, e.g.: Load( (HINSTANCE) x, (int) y); // you probably won't need to cast the int I've worked through a number of the examples on Reliable Software's site (<http://www.relisoft.com/win32/>) - that and reinterpret_cast caused me the most difficulties. For reinterpret_cast, I just replaced it with a c-style cast (instead of "reinterpret_cast<int> y" I just did "(int) y").q By the way, how do you like that book? I really enjoy Bartosz' fine win32 examples from the link above, esp.the model-view-controller information. Elizabeth |
|
From: Abhijit S. <mu...@gm...> - 2002-08-30 04:51:46
|
> Is There ANY Way To Put In Graphics AND/OR Sound In A DOS Application??? > Please, Tell How, In Detail, Cause Im Very New At Programming... > Garrett B. > > Email: Jed...@ms... Try the Allegro library. It does sound, graphics, timing, etc. It's meant mainly for games, but there's nothing stopping you from using it for writing programs. It's also very portable (to Linux, Windows, DOS, Solaris, etc.). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2002-08-30 04:51:20
|
Greets, Napoleon.
> Hello,
> I'm working my way through C++ in Action. And I'm stuck with the error
> message:
>
> C:\Projects\Winnie\Class.cpp
> In method `void Win::ClassMaker::SetIcons(int)':
> 23 C:\Projects\Winnie\Class.cpp
> no matching function for call to `StdIcon::Load (void *&, int &)'
> 43 C:\Projects\Winnie\Icon.h
> candidates are: void StdIcon::Load(HINSTANCE__ *, int)
>
> I have gone through the files Icon.h, Icon.cpp and the functions are all
> there. Icon.h has also been included in Class.cpp. What could be wrong.
> For
> the record I have all the project files in one directory. I have linker
> errors when I split them into differnt directories.
>
> I'll appreciate your help please.
>
> Napoleon.
When you place a file in a different directory, say "icon_class", you have
to update the #include directive correspondingly. For example, if it was
#include "icon.h"
when `icon.h' is in the same directory, then, if you move it to
`icon_class', it would become:
#include "icon_class/icon.h"
This is for the header files. For the CPP files, you have to update the
Dev-C++ project itself, so it's better that you decide on the directory
structure before-hand and stick to it.
Hope this helps.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Zendar <ze...@ne...> - 2002-08-30 04:29:38
|
>FROM: teleline.es >DATE: 08/29/2002 06:03:13 >SUBJECT: [Dev-C++] trouble with windres.exe >Sudently i can use resources file.... >Allway the same answer, with all the programs i have tried to compile that >have resources files: >message is: "windres.exe: no resources" >I've reinstall Dev-C++ 5.0 beta 5 (4.9.5.0) three or four times and i can´t >compile anythig whit resources, not even the simples examples that come with >it. >I am using win98. >don´t understand anything.. I am using Windows 98 also and I see this same error.. It does not occur on my NT box. Seems it is realated to Windows 98 |
|
From: Garrett B. <Jed...@ms...> - 2002-08-29 23:04:28
|
Is There ANY Way To Put In Graphics AND/OR Sound In A DOS Application??? Please, Tell How, In Detail, Cause Im Very New At Programming... Garrett B. Email: Jed...@ms... more from the Web. FREE MSN Explorer down= load : http://explorer.msn.com |
|
From: <Met...@ao...> - 2002-08-29 16:54:23
|
mu...@gm... wrote : > It's a knowledge-based task rather than an intelligence-based one Yes indeed ! And like I was saying earlier, it's a huge-spare-time-based task ! -- Seb |
|
From: <Met...@ao...> - 2002-08-29 16:52:44
|
mu...@gm... wrote :
> In what you do here, you're overwriting the pointer to the memory allocated,
> causing a memory leak.
Yes indeed !
In fact, I was thinking of one of my program I am currently developping. It
makes intensive use of chained lists like this :
typedef struct _coldesc
{
SQLCHAR ColumnName[255];
SQLSMALLINT NameLength;
SQLSMALLINT DataType;
SQLUINTEGER ColumnSize;
SQLSMALLINT DecimalDigits;
SQLSMALLINT Nullable;
TCHAR *buffer;
SQLLEN IndPtr;
struct _coldesc *next;
};
_coldesc *thisbinding=NULL;
_coldesc *firstbinding=NULL;
_coldesc *nextbinding=NULL;
firstbinding=(_coldesc*)malloc(sizeof(_coldesc));
thisbinding=firstbinding;
**Do calls to SQLDescribeCol here**
nextbinding=(_coldesc*)malloc(sizeof(_coldesc));
thisbinding->next=nextbinding;
thisbinding=thisbinding->next;
Sorry for the misunderstanding ! This small code example shows better what I
was trying to tell.
--
Seb
|
|
From: Napoleon A. <nah...@so...> - 2002-08-29 16:45:24
|
[windows 2000, DevCpp (mingw)]C++ in Action Windows project after script = 9. -------------------------------------------------------------------- Hello, I'm working my way through C++ in Action. And I'm stuck with the error = message: C:\Projects\Winnie\Class.cpp In method `void Win::ClassMaker::SetIcons(int)': 23 C:\Projects\Winnie\Class.cpp no matching function for call to `StdIcon::Load (void *&, int &)' 43 C:\Projects\Winnie\Icon.h candidates are: void StdIcon::Load(HINSTANCE__ *, int) I have gone through the files Icon.h, Icon.cpp and the functions are all = there. Icon.h has also been included in Class.cpp. What could be wrong. = For the record I have all the project files in one directory. I have = linker errors when I split them into differnt directories. I'll appreciate your help please. Napoleon. |
|
From: Abhijit S. <mu...@gm...> - 2002-08-29 16:28:50
|
> It's rather hard to find good and free res editor. Maybe it's time to write > one. > I was thinking about creating such tool but I'm not sure I can manage. > Do you think it is too big enterprise? It's a knowledge-based task rather than an intelligence-based one. I was, for long considering writing one (using Allegro), but decided not to. For one, you need to know all the controls, the syntax, their peculiarities, the #defines that go into their STYLE statements and their hair colours. That in itself will be a massive task, even if you have a good reference. It'll take a long time to reach a respectable stage. If you try to hurry things up, you'll end up with a half-baked program, and god knows we have enough of those already. This is probably why you say that it's hard to find a `good and free res editor'. However, if you still decide to write one, please let me know, I'd like to help as much as I can. |
|
From: Abhijit S. <mu...@gm...> - 2002-08-29 16:28:14
|
> Did you allocated the memory needed by the data element pointed to by the
struct pointer ?
>
> Ie :
>
> typedef struct _s
> {
> int x,y;
> struct -s *next=NULL;
Typo: struct_s *next = NULL, right?
> }
>
> struct_s foo;
> struct_s bar;
Remember this line...
>
> If you wish to make the foo.next elemnt to point to bar, you must :
>
> foo.next=(struct _s*)malloc(sizeof(struct _s));
> foo.next=bar;
In what you do here, you're overwriting the pointer to the memory allocated,
causing a memory leak.
It's like saying:
b = 25;
a = 35;
a = b;
That's dangerous and unnecessary, since `bar' is already allocated on the
stack on the line marked. So you would just have to say
foo.next = &bar;
Only if `bar' is a pointer would you do this:
struct_s *bar;
bar = new struct_s;
foo.next = bar;
Regarding the original problem, of filling up a pointer to a struct, it
would be like this:
struct_s *foo = new struct_s;
foo->value = 25;
This will not cause a crash (provided `new' allocated).
Also note that `malloc' is considered dangerous (since it doesn't call the
constructor), and only `new' should be used. However, for allocating buffers
(of chars, etc.), I find it better to use malloc() and realloc().
One more thing, it's always better to initialize all pointers to NULL, so
that any error in your code will result in an immediate crash with a
NULL-pointer error, rather than a hidden bug that'll surface on the other
side of the program and make debugging a nightmare.
|
|
From: <al...@te...> - 2002-08-29 13:03:01
|
Sudently i can use resources file.... Allway the same answer, with all the programs i have tried to compile tha= t have resources files: message is: "windres.exe: no resources" I've reinstall Dev-C++ 5.0 beta 5 (4.9.5.0) three or four times and i can= =B4t compile anythig whit resources, not even the simples examples that come w= ith it. I am using win98. don=B4t understand anything... |
|
From: <Met...@ao...> - 2002-08-29 12:34:05
|
No, writing a resource editor is not quite difficult to do You just have to set up some dialog boxes and retrieve some values from them. Not so difficult yes, but a very big project anyway. It needs a lot of spare time to do this. LCC's wedit does the job well, apart from some little bugs... Kind regards -- Seb |
|
From: <Met...@ao...> - 2002-08-29 12:31:21
|
Explain ? Yes indeed... A pointer points (Yes, this is his job !) to a certain piece of memory. If you don't initialise the part of memory where it points, you might get unpredictable values through the pointer or sometimes memory crashes. When you declare a pointer like : struct _s *next; C++ knows that the next pointer points to a part of memory that contains a "struct _s" type of data. BUT a first, the pointer points to...nothing or random adress ! You first have to allocate some memory (malloc) to receive a struct _s data. Then, acessing to the "next" pointer gives you access to a struct _s for *real* this time. But, if you think you're not a CPP hero, I think you might get some books about it and read it from cover to cover. There are a huge amount of tutorials for newbies almost everywhere on the net. Just check out Google for this. Kind regards -- Seb |
|
From: Adam M. <ada...@sk...> - 2002-08-29 11:38:15
|
It's rather hard to find good and free res editor. Maybe it's time to write one. I was thinking about creating such tool but I'm not sure I can manage. Do you think it is too big enterprise? Upanie. |
|
From: <Met...@ao...> - 2002-08-29 10:03:08
|
Did you allocated the memory needed by the data element pointed to by the
struct pointer ?
Ie :
typedef struct _s
{
int x,y;
struct -s *next=NULL;
}
struct _s foo;
struct_s bar;
If you wish to make the foo.next elemnt to point to bar, you must :
foo.next=(struct _s*)malloc(sizeof(struct _s));
foo.next=bar;
Kind regards
--
Seb
|
|
From: Christian W. <Chr...@vo...> - 2002-08-29 09:54:49
|
Hi there, does someone now how can i fill up a pointer to a struckt. I have to put a pointer of a struckt to a function, if I try it with struckt->value the function crashes or i dont have the right values ... Does someone have an idea ???? Kind r Christian |
|
From: Ramana K. <ra...@my...> - 2002-08-29 09:48:14
|
just simple word for word substitution? -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of joanna juaneza Sent: Wednesday, 28 August 2002 9:35 PM To: dev...@li... Subject: [Dev-C++] asking code create a program that would translate 1 to 100 to words. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ 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: Monique <ho...@su...> - 2002-08-29 02:48:37
|
----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Tuesday, August 27, 2002 11:00 AM Subject: Dev-cpp-users digest, Vol 1 #940 - 11 msgs > 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. Adding and creating my own Lib files to Project (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 2. Re: Adding and creating my own Lib files to Project (Elizabeth Barham) > 3. Upgrading (Wilmar O. Guday) > 4. MySQL++ (Gerardo Enrique Paredes) > 5. Re: 7-ZIP Source code (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 6. RE: 7-ZIP Source code (Ioannis Vranos) > 7. Re: link and create my own libraries (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 8. RE: Upgrading (Rob) > 9. [win 2000 , DevCpp Beta 5] Missing resource editor features (Napoleon Ahiable) > 10. Re: Adding my own Lib files to Project (Napoleon Ahiable) > 11. Re: [win 2000 , DevCpp Beta 5] Missing resource editor features (Met...@ao...) > > --__--__-- > > Message: 1 > Date: Mon, 26 Aug 2002 21:13:24 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: [Dev-C++] Adding and creating my own Lib files to Project > > I don't know if I sent this message to the right direction or not, I post it > again. > > I have a couple of files: > file.h and file.cpp > which I want add to a project, but which I'll want add to other projects, too. > So I think make a library file, libfile.a. > I compile in command line g++ -c file.cpp > Then I do ar -r libfile.a file.o > Then ar -s libfile.a > I copy it to c:\dev-cpp\lib\ > I put in options (either project if it is organized as project or compiler if > simply mainfile.cpp #include "file.cpp") > -lfile, or -llibfile or -libfile or -lfile.a or -llibfile.a, but depending on what > I use I get or it does not find it or undefined references. It happens the same if > I leave libfile in the same directory than the rest of the project (one single > more file, mainfile.cpp). > > What's my error? I mistake binutil? (ar -s = ranlib) > > P.S. - In my computer (windows 2000, Intel III x86 6.5.5), when I type in the > command line ar -pv file it starts beeping continuosly, the command line does not > respond anymore and that continues after it has printed all. I had to restart the > computer. (I didn't proved without v[verbose], but surely it would do the same). > > > > --__--__-- > > Message: 2 > To: "dev-cpp-users-list" <dev...@li...> > Subject: Re: [Dev-C++] Adding and creating my own Lib files to Project > From: Elizabeth Barham <sog...@ya...> > Date: 26 Aug 2002 17:29:47 -0500 > > Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> writes: > > > I have a couple of files: file.h and file.cpp which I want add to a > > project, but which I'll want add to other projects, too. So I think > > make a library file, libfile.a. I compile in command line g++ -c > > file.cpp Then I do ar -r libfile.a file.o Then ar -s libfile.a I copy > > it to c:\dev-cpp\lib\ I put in options (either project if it is > > organized as project or compiler if simply mainfile.cpp #include > > "file.cpp") -lfile, or -llibfile or -libfile or -lfile.a or > > -llibfile.a, but depending on what I use I get or it does not find it > > or undefined references. It happens the same if I leave libfile in the > > same directory than the rest of the project (one single more file, > > mainfile.cpp). > > > > What's my error? I mistake binutil? (ar -s = ranlib) > > It would be -lfile as the linker inserts 'lib' and adds on '.a'. > > You'd need to add in the library directory C:\dev-cpp\lib, however, > for the linker to find it. > > For example, > > g++ -o test test.cpp -LC:\dev-cpp\lib -lfile > > The -L says to look in C:\dev-cpp\lib for the library file > "libfile.a". If the library file is in the same directory, you could > use -L. . > > Elizabeth > > > --__--__-- > > Message: 3 > From: "Wilmar O. Guday" <wo...@sp...> > To: <Dev...@li...> > Date: Tue, 27 Aug 2002 13:14:39 +0800 > Subject: [Dev-C++] Upgrading > > Hi List, > > I currently have Dev-C++ version 4.9.3.0 and just downloaded binaries > devcpp4950.exe and devcpp4950exe.exe. How to upgrade my existing version. > > TIA/Wilmar > > > > > --__--__-- > > Message: 4 > From: "Gerardo Enrique Paredes" <ge...@mu...> > To: <dev...@li...> > Date: Tue, 27 Aug 2002 00:28:32 -0500 > Subject: [Dev-C++] MySQL++ > > Is anyone aware of libraries for DevCpp that interface with MySQL++??? > > > > --__--__-- > > Message: 5 > Date: Tue, 27 Aug 2002 12:04:33 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: Louis Godio <lg...@ya...>, > dev-cpp-users-list <dev...@li...> > Subject: Re: [Dev-C++] 7-ZIP Source code > > PowerArchiver www.powerarchiver.com > > > > > Do you know where can I get a program to unZIP .tar.bz2 files ? > > > > --__--__-- > > Message: 6 > From: "Ioannis Vranos" <no...@ho...> > To: "'dev-cpp-users-list'" <dev...@li...> > Subject: RE: [Dev-C++] 7-ZIP Source code > Date: Tue, 27 Aug 2002 13:20:45 +0300 > > Or 7-Zip mentioned already in the subject. :) > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li...=20 > > [mailto:dev...@li...] On Behalf=20 > > Of Carlos Garc=EDa del Monte > > Sent: Tuesday, August 27, 2002 1:05 PM > > To: Louis Godio; dev-cpp-users-list > > Subject: Re: [Dev-C++] 7-ZIP Source code > >=20 > >=20 > > PowerArchiver www.powerarchiver.com > >=20 > > > > > > Do you know where can I get a program to unZIP .tar.bz2 files ? > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > > _______________________________________________ > > 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 > > > --__--__-- > > Message: 7 > Date: Tue, 27 Aug 2002 12:28:49 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: [Dev-C++] Re: link and create my own libraries > > Thanks, I did what you say, but it does not work. > This is what I get: undefined reference to all the functions that are > used in the main source file. > Perhaps I am wrong in respect to the process of building the a file and > I am being idiot. There is some site where I can see if there is > something special for write static libraries? In the Bruce Eckel's > "Thinking in C++" it is suggested that simply do what I do, take the .o > files, give them to librarian and passing it to the lib dir and the h to > the include dir, just what I do. > > d:\devpro\newf\containtry.o: In function `main': > //d/devpro/newf/containtry.cpp:16: undefined reference to > `container<int>::container(void)' > //d/devpro/newf/containtry.cpp:16: undefined reference to > `container<int>::~container(void)' > //d/devpro/newf/containtry.cpp:19: undefined reference to > `container<int>::addcontainer(int)' > //d/devpro/newf/containtry.cpp:44: undefined reference to > `container<int>::operator[](int)' > //d/devpro/newf/containtry.cpp:53: undefined reference to > `container<int>::killcontainer(void)' > //d/devpro/newf/containtry.cpp:56: undefined reference to > `container<int>::~container(void)' > > If I make #include <container.cpp> then it works perfectly. > > > > --__--__-- > > Message: 8 > From: "Rob" <ro...@us...> > To: "Dev-Cpp-Users@Lists. Sourceforge. Net" <dev...@li...> > Subject: RE: [Dev-C++] Upgrading > Date: Tue, 27 Aug 2002 07:53:21 -0500 > > I trust someone will correct if I'm mistaken, but you should be able to > uninstall 4.9.3.0 and then install the new version immediately afterward > without expected problems. > > Rob > http://uselesspython.com > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of Wilmar O. > > Guday > > Sent: Tuesday, August 27, 2002 12:15 AM > > To: Dev...@li... > > Subject: [Dev-C++] Upgrading > > > > > > Hi List, > > > > I currently have Dev-C++ version 4.9.3.0 and just downloaded binaries > > devcpp4950.exe and devcpp4950exe.exe. How to upgrade my existing version. > > > > TIA/Wilmar > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > _______________________________________________ > > 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 > > > > > > > --__--__-- > > Message: 9 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Date: Tue, 27 Aug 2002 14:55:42 +0100 > Subject: [Dev-C++] [win 2000 , DevCpp Beta 5] Missing resource editor features > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hello, > It just hit me that some features of the the resource editor of DevCpp = > ver 4 are missing from the latest DevCpp Beta 5. It came tools required = > including a resource editor which has wizards for creating dialog boxes, = > menus, adding icons and so on. This seems to be missing. The command to = > edit the resource editor brings up a regular edit screen. > > Was this an oversight or delibrate ? > > Napoleon. > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>It just hit me that some features of = > the the=20 > resource editor of DevCpp ver 4 are missing from the latest DevCpp Beta = > 5.=20 > It came tools required including a resource editor which has = > wizards for=20 > creating dialog boxes, menus, adding icons and so on. This seems to be = > missing.=20 > The command to edit the resource editor brings up a regular edit=20 > screen.</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>Was this an oversight or delibrate = > ?</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>Napoleon.</FONT></DIV></BODY></HTML> > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0-- > > > > --__--__-- > > Message: 10 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Subject: Re: [Dev-C++] Adding my own Lib files to Project > Date: Tue, 27 Aug 2002 14:55:46 +0100 > > Hello Elizabeth, > > I have tried your solution without success. I think it's me doing something > wrong so I will elaborate my problem below exactly as it is then may be you > can point me in the right direction. I have 3 main paths I'm dealing with > they are: (1)C:\Projects\Windows, (2)C:\Projects\Windows\Lib, and > (3)C:\Projects\Resources. > > Path 1 contains the files > Main.cpp,Ctrl.cpp,Ctrl.h, View.h. > > Path 2 contains the files > Maker.cpp, Maker.h, Window.h, Procedure.cpp, Procedure.h, Class.cpp, > Class.h, Icon.cpp, Icon.h, Control.h and Canvas.h > > Path 3 contains > Main.Ico, Script.rc, Resource.h > > This is the way I tried to biuld the library. I created a DLL project and > added all the files from path 2 to it as they are. But I get loads of error > messaged when I compile. > > The need to create a personal libary I guess becomes inevitable with time. > as it becomes obvious that certain classes and functions lend themselves to > reuse. If any one can write a little tutorial on how to build such a library > It will be much appreciated. Up untill now I have only written programs with > all the files in one directory but now I feel the need to start writting > libraries. > > Thanks to anyone who will help. > > Napoleon. > > > > > --__--__-- > > Message: 11 > From: Met...@ao... > Date: Tue, 27 Aug 2002 12:37:18 EDT > Subject: Re: [Dev-C++] [win 2000 , DevCpp Beta 5] Missing resource editor features > To: dev...@li... > > > --part1_124.15b29027.2a9d04be_boundary > Content-Type: text/plain; charset="US-ASCII" > Content-Transfer-Encoding: 7bit > > Hi Napoleon > > There is a good WYSIWYG resource editor in the LCC-WIN32 package. I use it as > a tool menu entry from DevCpp IDE > > Just download it at : http://www.cs.virginia.edu/~lcc-win32/ > > Kind regards > > -- > > Seb > > --part1_124.15b29027.2a9d04be_boundary > Content-Type: text/html; charset="US-ASCII" > Content-Transfer-Encoding: 7bit > > <HTML><FONT FACE=arial,helvetica><FONT SIZE=2>Hi Napoleon > <BR> > <BR>There is a good WYSIWYG resource editor in the LCC-WIN32 package. I use it as a tool menu entry from DevCpp IDE > <BR> > <BR>Just download it at : http://www.cs.virginia.edu/~lcc-win32/ > <BR> > <BR>Kind regards > <BR> > <BR>-- > <BR> > <BR>Seb</FONT></HTML> > > --part1_124.15b29027.2a9d04be_boundary-- > > > > --__--__-- > > _______________________________________________ > 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 > |
|
From: <Met...@ao...> - 2002-08-28 15:44:40
|
mu...@gm... wrote : > Sorry for that, I didn't test it. I hope the feature is added to the next > version of Dev. I remember requesting this sometime back... nobody ever pays > any attention to me... <sniff> Don't cry mate... Everything comes....at last ! ;-))) -- Seb |
|
From: Abhijit S. <mu...@gm...> - 2002-08-28 15:09:21
|
> > I do not think it runs. > > > Yes it works, but not as mudeth wrote it. > > I made this tiny modification to his code and it runs ok for me here : > > argv[1]="-output"; > argv[2]="foo.bar"; > for(int i=0;i<=2;i++) > cout<<argv[i]; > > And of course, argv[0] is initialised with the exec name by the > application itself. > > But however, it would be nice to get a menu option to set these startup > parameters instead of doing this not-so-clean hack. > > Kind regards > > Seb Sorry for that, I didn't test it. I hope the feature is added to the next version of Dev. I remember requesting this sometime back... nobody ever pays any attention to me... <sniff> |