dev-cpp-users Mailing List for Dev-C++ (Page 507)
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: Mark L. W. <ma...@al...> - 2002-10-18 13:20:28
|
Ok, since it SEEMED to be easier I downloaded the DevPak from the dev hom= e page and tried the package install.... I got the message that WxWindows is dependent on "imagelib" to be present. What is imagelib and how do I get it? Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Carlos Garc=EDa del Monte Sent: Thursday, October 17, 2002 1:24 PM To: ma...@al...; dev-cpp-users-list Subject: Re: [Dev-C++] WxWINDOW Oh, sorry, I thought you got the package from dev home page, which is a devpak. What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) 1- I unpacked it to C:\wxMSW 2 - open command.exe 3 - cd to C:\wxMSW\src 4 - type make -f makefile.g95 and wait, then I ran over some of the other folders seeing that in all of them the result was "make nothing to be don= e for all", so I gave it as built. Well, there were a couple of utilities about dialog editor or something like that, I cd to there and make etc. The bad news are that I never could make it work, except for the examples that were with it, which compiled fine, I tried some examples for Dev-C++ and = I couldn't compile any one. The first you must do when making a project is define __GNUWIN32__ and define UNICODE, and define __WXMSW__ And a lot of compiler options, linker parameters... search in the dev mailing list, I don't remember when they answered me with all those options you m= ust provide, more or less six or seven months ago or before. ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ 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: MEGHAZI F. <Fab...@si...> - 2002-10-18 13:13:32
|
I forgot the link !! http://www.netcraft.com/survey/ sorry all ! >> What is Apache ans where I can find it? > Apache is best httpd server... it is widely used around whole world! > Over 60% (or even more, I don't remember stats) of all HTTP servers > are running on Apache... and the homepage is (of course) www.apache.org Here are the stats about the most used httpd (apache of course) In fact Microsoft server stats are boosted by a company (don't remember the name) who sells domain names and they are running microsoft servers. Of course all these domains are running on the same server but it boost the microsoft servers stats. Anyway, apache still remains the most used web server. ------------------------------------------------------- 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: MEGHAZI F. <Fab...@si...> - 2002-10-18 13:06:39
|
>> What is Apache ans where I can find it? > Apache is best httpd server... it is widely used around whole world! > Over 60% (or even more, I don't remember stats) of all HTTP servers > are running on Apache... and the homepage is (of course) www.apache.org Here are the stats about the most used httpd (apache of course) In fact Microsoft server stats are boosted by a company (don't remember the name) who sells domain names and they are running microsoft servers. Of course all these domains are running on the same server but it boost the microsoft servers stats. Anyway, apache still remains the most used web server. |
|
From: Zodiaq <zo...@ac...> - 2002-10-18 12:47:11
|
Hello Ihsan and all Dev-C++ users, Sunday, October 13, 2002, 11:05:30 AM, Ihsan wrote as follows: IAAD> What is Apache ans where I can find it? Apache is best httpd server... it is widely used around whole world! Over 60% (or even more, I don't remember stats) of all HTTP servers are running on Apache... and the homepage is (of course) www.apache.org IAAD> Mohammed -- regards, Zodiaq |
|
From: Ihsan A. Al D. <ia...@jo...> - 2002-10-18 12:24:33
|
> All, > Who can give me a example that how to compile a GNU project, such like Apache, which can be compiled both under linux by using gcc and under windows by using VC. I tried to use DEV-CPP compile Apache but failed. What is Apache ans where I can find it? Mohammed |
|
From: Zodiaq <zo...@ac...> - 2002-10-18 12:21:41
|
Hello Daniel and all Dev-C++ users,
Friday, October 18, 2002, 1:45:12 PM, Daniel wrote as follows:
DG> Hi,
DG> I have the following chunk of code, and I've been asked to make the switch
DG> (SomeError) statement use an enum. Well I was told to "make that an enum".
DG> How would I create the enum and use it in the switch statement?
enum ERROR_TYPES { ERROR_ONE = 1, ERROR_TWO, OTHER_ERROR,
EVEN_MORE_OTHER_ERROR };
ERROR_TYPES SomeError = ERROR_TWO;
DG> // Get error strings
DG> switch (SomeError)
DG> {
DG> case ERROR_ONE:
DG> DebugOut = _T("Error One!");
DG> break;
DG> case ERROR_TWO:
DG> DebugOut = _T("Error Two!");
DG> break;
DG> default:
DG> DebugOut = _T("Unspecified error!");
DG> break;
DG> }
does it works??
--
regards, Zodiaq
|
|
From: Daniel G. <sp...@ho...> - 2002-10-18 11:45:18
|
Hi,
I have the following chunk of code, and I've been asked to make the switch
(SomeError) statement use an enum. Well I was told to "make that an enum".
How would I create the enum and use it in the switch statement?
// Get error strings
switch (SomeError)
{
case ERROR_ONE:
DebugOut = _T("Error One!");
break;
case ERROR_TWO:
DebugOut = _T("Error Two!");
break;
default:
DebugOut = _T("Unspecified error!");
break;
}
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: Daniel G. <sp...@ho...> - 2002-10-18 11:18:32
|
what do you mean by crash? does the machine freeze, or do you get an illegal
operation error or what?
>From: Daniel Åkerud <zi...@ho...>
>To: <dev...@li...>
>Subject: [Dev-C++] -fvtable-thunks and CRASH!
>Date: Wed, 16 Oct 2002 07:45:03 +0200
>
>
>At last I found the problem!
>compiling with -fvtable-thunks is causing this simple program to crash:
>
>
>#include <iostream>
>#include <sstream>
>
>using std::stringstream;
>
>int main()
>{
> stringstream s;
> s << endl;
>
> return 0;
>}
>
>
>Why? How can I solve it?
>If you ask why I use -fvtable-thunks it's because I code in directX!
>
>thanks!
>
>Daniel Åkerud
>
>
_________________________________________________________________
Broadband? Dial-up? Get reliable MSN Internet Access.
http://resourcecenter.msn.com/access/plans/default.asp
|
|
From: Bob W. <bo...@af...> - 2002-10-18 08:31:01
|
Does anyone know of a program as simple and free as the UNIX command 'bcheck' available for windows? (it checks for memory leaks) -- -- Bob ' American Airlines saved $440,000 in 1987 by eliminating one olive from each salad served in first-class. ' ICQ: 77149742 AOL: Sanchrin MSN: Bo...@af... http://www.aftermath.cx/ |
|
From: Santiago P. C. <San...@yd...> - 2002-10-18 08:13:24
|
Hi *, If you don't use Dev-C++ package and you want to use wxWindows sources 'b= y yourself', there are only a few things you must do in order to use wxWindows... Download wxWindows sources (from http://wxwindows.sourceforge.net/), download also 'extra.zip' file (from http://wxwindows.sourceforge.net/ al= so, but only if you don't use MSYS from http://mingw.sourceforge.net/) and th= en, FIRST OF ALL, please read the file: %WXWIN%/docs/msw/install.txt=20 You'll find everything you'll need in order to install it!!! Anyway here you have a 'Quick How To'... Set a few environment variables: =09WXWIN to the path where you decompressed wxWindows sources, =09if needed, BISON_SIMPLE & BISON_HAIRY to the complete path to files (complete/path/to/folder/plus/filename.extension) Edit %WXWIN%\src\makeg95.env, search through the options and set them to = the appropriate values to fit your system needs; I just changed the following= ones (keep in mind that these are MY values for WinAPI & MinGW installati= on ;o): =09MINGW32=3D1 =09MINGW32VERSION=3D3.2 =09YACC=3Dbison =09CPU=3Dpentium4 =09COMPPATHS =3D -I"D:/WinAPI/include" -I"D:/MinGW/include" =09Perhaps you may want to include these two also: -I"D:/MinGW/include/sys" -I"D:/MinGW/include/c++/3.2" ...And add the appropriate dirs to this one (keeping the original stuff, = of course): =09LDFLAGS =3D (...original stuff...) -L"D:/MinGW/lib" -L"D:/WinAPI/lib"= Then cd to %WXWIN%\src\msw and use make -f makefile.g95 clean / make -f makefile.g95 and wait... That's all!!!=20 You'll have wxWindows ready to use (there are a few more options to use t= he wxWindows DLL, so read the docs, please...) You'll only need to use a makefile like the following one, you only have = to modify 'OBJECTS' to fit your needs: =09# Makefile for wxWindows (Mingw32). =09# WXDIR =3D D:/wxWindows/v2.3.3 =09TARGET=3DMyApp =09OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o =09include $(WXDIR)/src/makeprog.g95 Hope this helps Santy -----Original Message----- From: Carlos Garc=EDa del Monte [mailto:cg...@wo...]=20 Sent: jueves, 17 de octubre de 2002 22:24 To: ma...@al...; dev-cpp-users-list Subject: Re: [Dev-C++] WxWINDOW Oh, sorry, I thought you got the package from dev home page, which is a devpak. What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) 1- I unpacked it to C:\wxMSW 2 - open command.exe 3 - cd to C:\wxMSW\src 4 - type make -f makefile.g95 and wait, then I ran over some of the other= folders seeing that in all of them the result was "make nothing to be don= e for all", so I gave it as built. Well, there were a couple of utilities about dialog editor or something like that, I cd to there and make etc. The bad news are that I never could make it work, except for the examples= that were with it, which compiled fine, I tried some examples for Dev-C++= and I couldn't compile any one. The first you must do when making a project is define __GNUWIN32__ and define UNICODE, and define __WXMSW__ And a lot of compiler options, linker parameters... search in the dev mailing list, I don't remember when they answered me with all those optio= ns you must provide, more or less six or seven months ago or before. ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for= every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ 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 message and any files transmitted with it are confidential and inten= ded solely=20 for the use of the individual or entity to whom they are addressed. No co= nfidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy it= =20and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, o= r copy any=20 part of this message if you are not the intended recipient. Opinions, con= clusions and=20 other information in this message that do not relate to the official busi= ness of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given= =20nor endorsed by it.=20 -------------------------------------------------------------------------= ------------- |
|
From: Ares L. <ge...@ns...> - 2002-10-18 06:55:44
|
QWxsLCANCldobyBjYW4gZ2l2ZSBtZSBhIGV4YW1wbGUgdGhhdCBob3cgdG8gY29tcGlsZSBhIEdO VSBwcm9qZWN0LCBzdWNoIGxpa2UgQXBhY2hlLCB3aGljaCBjYW4gYmUgY29tcGlsZWQgYm90aCB1 bmRlciBsaW51eCBieSB1c2luZyBnY2MgYW5kIHVuZGVyIHdpbmRvd3MgYnkgdXNpbmcgVkMuIEkg dHJpZWQgdG8gdXNlIERFVi1DUFAgY29tcGlsZSBBcGFjaGUgYnV0IGZhaWxlZC4NCi1BcmVz |
|
From: <hj...@hj...> - 2002-10-18 06:38:03
|
Hi, > If do you have a Manual or a link where I can find it.... I will be happy!. it's more about C++ in general and not Dev-Cpp in particular, but i found the "Thinking in C++" ebooks by Bruce Eckel very helpful. They are for free by the way and the URL to download them is http://www.mindview.net/Books/ . Best wishes, HaJö |
|
From: Keller <ke...@rh...> - 2002-10-17 23:41:40
|
I work with CMUGraphics (http://www-2.cs.cmu.edu/~cm-gfxpkg/index.html) versions 1.5 and 2.0 in Computer Science class at school for graphics projects. I was wondering if anyone had been successful in getting either version going (preferably 1.5). Is there some other free package that is better than this one for basic 2D graphics that anyone recommends? Thanks! Keller |
|
From: Mikael H. <mik...@gm...> - 2002-10-17 22:56:21
|
I have a project in dev-cpp which includes both source files ending in .cc and header files ending in .hh, when i try to compile the project, dev-cpp checks for dependices for the headers files also and creates a makefile with targets for them, the make process chokes on this. But the thing is, if i rename the header files to .hpp dev-cpp doesnt check deps for them and doesnt add targets for them in the makefile either. The same goes for .h header files. So is there anyway to tell dev-cpp to not do dep checking for .hh files and not add them as targets to the makefile. Im using version 4.9.6.4 of Dev-cpp. Take it easy, Mikael |
|
From: <tot...@gm...> - 2002-10-17 22:41:44
|
Hi ! first of all: thank you very much, Tibor. for those who might, now or in the future, be experiencing similar problems, check this out: http://www.opengl.org/developers/faqs/technical/gettingstarted.htm?OpenGL+sdk#first_hit (link in one row, of course) the problem was: i had simply forgotten to put the lib-files (OpenGl32.lib,glut32.lib, glu32.lib) in the Dev-Cpp \lib-folder. now everything´s fine. ok, have a nice sleep everybody. adios > I don't think, the problem in the 4.9.6 version. You should check your > glut.h and libglut32.a, maybe there are somthing is defined in the header > but the compiler couldn't find it in the libglut32.a. > > Try to download the lastest version of glut api from the glut homepage. > > > Regards, > > Tibor > -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! |
|
From: Michael Na Li <lina@u.washington.edu> - 2002-10-17 22:36:11
|
On Thu, 17 Oct 2002, Phr...@so... told this: > Dev-C++'s manual (the ide) can be found by going tools->check for > updates, it's under help files. The glibc manual with all the functions > etc can be found at http://www.gnu.org/manual/glibc-2.2.5. Hope this > helps. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Cidar F. > Rojas Santamaria > Sent: Thursday, October 17, 2002 10:28 AM > To: dev...@li... > Subject: [Dev-C++] Who knows if there is a C++ Manual for "DevC++ Editor > & Mingv Compiler"? > > > Hello, I'm trying to apply my knowlodge adquired in "Borland C++" in > "Dev-C++", but I have found many differences. > > If do you have a Manual or a link where I can find it.... I will be > happy!. > This site has many GNU manuals available in chm format (very handy under Windows!), among them libc and gcc. http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/documentation/chm/index.html Michael |
|
From: PhrostByte <Phr...@so...> - 2002-10-17 21:55:08
|
Dev-C++'s manual (the ide) can be found by going tools->check for updates, it's under help files. The glibc manual with all the functions etc can be found at http://www.gnu.org/manual/glibc-2.2.5. Hope this helps. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Cidar F. Rojas Santamaria Sent: Thursday, October 17, 2002 10:28 AM To: dev...@li... Subject: [Dev-C++] Who knows if there is a C++ Manual for "DevC++ Editor & Mingv Compiler"? Hello, I'm trying to apply my knowlodge adquired in "Borland C++" in "Dev-C++", but I have found many differences. If do you have a Manual or a link where I can find it.... I will be happy!. _________________ Cidar F. Rojas Santamaria ci...@gm..., ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ 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: Ioannis V. <no...@ho...> - 2002-10-17 20:41:09
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Cidar F. Rojas Santamaria > Sent: Thursday, October 17, 2002 8:28 PM > To: dev...@li... > Subject: [Dev-C++] Who knows if there is a C++ Manual for=20 > "DevC++ Editor & Mingv Compiler"? >=20 >=20 > Hello, I'm trying to apply my knowlodge adquired in "Borland C++" in=20 > "Dev-C++", but I have found many differences. >=20 > If do you have a Manual or a link where I can find it.... I=20 > will be happy!. I think that Colin & Lai are writing a book. Well i hope they will inform us. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-10-17 20:37:36
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Daniel Glenfield
> Sent: Thursday, October 17, 2002 2:20 PM
> To: dev...@li...
> Subject: [Dev-C++] returning a constant string reference
>=20
>=20
>=20
>=20
> This is the code currently
> String GetName() const;
std::string GetName() const;
This returns a (temporary) object created using the copy constructor.
So for example if you have:
class something
{
string s;
public:
something(const string *n)
string GetName() const { return s; }
};
// ...
something so("Johnson");
string l=3Dso.GetName();
At the so.GetName() call
a temporary using the (default here) copy constructor
something::something(const something &) is called which is assigned to l
using the (default here) assignment something::operator=3D(const =
something
&). After the end of the expression the temporary is usually destroyed
(and not at the end of the scope).
>=20
> To make the function return a const string reference, do I changeit to
>=20
> String& GetName() const;
>=20
> or is it now returning a String object?
std::string &GetName();
It is returning a reference to an existing object (i assume you intend
to the data member).
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Carlos d. M. <cg...@wo...> - 2002-10-17 20:25:29
|
Oh, sorry, I thought you got the package from dev home page, which is a devpak. What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) 1- I unpacked it to C:\wxMSW 2 - open command.exe 3 - cd to C:\wxMSW\src 4 - type make -f makefile.g95 and wait, then I ran over some of the other folders seeing that in all of them the result was "make nothing to be done for all", so I gave it as built. Well, there were a couple of utilities about dialog editor or something like that, I cd to there and make etc. The bad news are that I never could make it work, except for the examples that were with it, which compiled fine, I tried some examples for Dev-C++ and I couldn't compile any one. The first you must do when making a project is define __GNUWIN32__ and define UNICODE, and define __WXMSW__ And a lot of compiler options, linker parameters... search in the dev mailing list, I don't remember when they answered me with all those options you must provide, more or less six or seven months ago or before. |
|
From: Cidar F. R. S. <ci...@gm...> - 2002-10-17 18:09:19
|
Hello, I'm trying to apply my knowlodge adquired in "Borland C++" in "Dev-C++", but I have found many differences. If do you have a Manual or a link where I can find it.... I will be happy!. _________________ Cidar F. Rojas Santamaria ci...@gm..., |
|
From: Carlos d. M. <cg...@wo...> - 2002-10-17 16:08:28
|
Daniel Glenfield escribi=F3: > My skills are shot. > > I am trying to create a quick program that has a class with a private > member > that is an employee's name, and one of the member functions (public) > returns > a pointer to that private member (it's an example of what not to do). > > The program's main function should go like this: > > Create a class object. > Create a global pointer. > Ask for user name. > Call SetEmployeeName passing the object to it. > Set the typed string to be the private member EmpName. > Return to main. > Call GetEmployeeName, passing the object to it. > Assign the private member EmpName to the global pointer. > Return the pointer to main. > Show what the pointer is pointing at (for example cout<< *GlobalPointer > << > endl;) > > any refinements would be great. Remember this is an example of what not > to > do (returning pointers to private members). I have trouble putting the > string in to the object's data member, so I could do with some help! > Writing it would be a simple matter of cin inside the set function or pas= s the pointer of the string (I am assuming you want to use char*, however writting C++ string would be the recommended way, and where you need char*, you use the member function c_str() of string class) The function for get the string should be something like this: char *const function(parameters); so you cannot modify it out of the class's functions. Daniel Glenfield escribi=F3: > This is the code currently > String GetName() const; > > To make the function return a const string reference, do I changeit to > > String& GetName() const; > > or is it now returning a String object? Before the answer to this, you write String, C++ is case sensitive, so if you haven't defined a class String it will say String not defined. Now let's go with the answer: With that you say GetName won't modify the member inside it, but you'll will be able to modify the return value, since it is not constant and it is what you need to be constant (the othe= r is recommended, of course) You have to do const string GetName() const; This will not modify the member while it does its work and will return th= e result to a constant member which won't be modified, and which will have no access to the member, since there will be a copy of it. With the solution you propose, returning string&, you're returning a reference to it, so if the caller modifies it, the member will be modified, because we can say that returning a reference is the same than returning a pointer, with the difference that you can treat it as if it were not a pointer, and when you access it you will access the variable a= t that address of memory, so you will access to the member variable directly. |
|
From: Carlos d. M. <cg...@wo...> - 2002-10-17 16:01:11
|
I wrote asking how to write it, because I said the package in Dev didn't have it, that's wrong, sorry. Today I've remembered, because I found it after searching through all the disks for gtk----.devpak, that I didn't get the package from dev, which is for gtk2.0.0, I took it from wingtk.sourceforge, which is a installer executable called DevEx0.1. Just say that correction, so you know I don't know if this problem is present in devpak from dev page. |
|
From: Mark L. W. <ma...@al...> - 2002-10-17 15:34:09
|
I have downloaded the WxWINDOW package. How does one go about compiling it under Dev-C++?? Thanks! Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Per Westermark Sent: Wednesday, September 25, 2002 9:12 AM To: Louis Godio Cc: DEVCppUsers Subject: Re: [Dev-C++] WxWINDOW Disadvantages: Less documentation and books Not as professional code generators/resource editors Smaller code base of available 3rd party widgets Advantages: No M$ licence money Works on Non-Win32 platforms (X,OS/2,Mac,Win3...) Simpler code than WIN32 API If you find a bug, YOU may fix it the same day :-) /Per W On Wed, 25 Sep 2002, Louis Godio wrote: > Hi List, > > I've heard about WxWINDOW. Could anyone give a say a few basic things > about WxWINDOW...What is it? What is it used for ? Anvantages / > Disadvantages to MFC or WIN32 ? > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2002-10-17 13:47:57
|
No for a document for my place of employment. >From: Per Westermark <pw...@ia...> >To: Daniel Glenfield <sp...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] I am rusty - help with strings please! >Date: Thu, 17 Oct 2002 15:22:56 +0200 (CEST) > >Are you possibly requesting help for a class-room assignment? > >/Per W > >On Thu, 17 Oct 2002, Daniel Glenfield wrote: > > > > > > > My skills are shot. > > > > I am trying to create a quick program that has a class with a private >member > > that is an employee's name, and one of the member functions (public) >returns > > a pointer to that private member (it's an example of what not to do). > > > > The program's main function should go like this: > > > > Create a class object. > > Create a global pointer. > > Ask for user name. > > Call SetEmployeeName passing the object to it. > > Set the typed string to be the private member EmpName. > > Return to main. > > Call GetEmployeeName, passing the object to it. > > Assign the private member EmpName to the global pointer. > > Return the pointer to main. > > Show what the pointer is pointing at (for example cout<< *GlobalPointer ><< > > endl;) > > > > > > any refinements would be great. Remember this is an example of what not >to > > do (returning pointers to private members). I have trouble putting the > > string in to the object's data member, so I could do with some help! > > > > > > > > > > > > _________________________________________________________________ > > Protect your PC - get McAfee.com VirusScan Online > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: viaVerio will pay you up to > > $1,000 for every account that you consolidate with us. > > http://ad.doubleclick.net/clk;4749864;7604308;v? > > http://www.viaverio.com/consolidator/osdn.cfm > > _______________________________________________ > > 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 > > _________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp |