dev-cpp-users Mailing List for Dev-C++ (Page 666)
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: Ioannis V. <no...@ya...> - 2001-09-26 17:33:33
|
Win32 API is old, MFC is old. .NET will have a different system call class hierarchy called BCL (Base Class Library). So why learn legacy stuff? For now, if you can't wait for .NET i suggest you Borland C++ Builder and its class hierarchy called VCL (Visual Class Library). It is a lot higher level than MFC/Win32 crap. For accuracy it is a very high level Win32 wrapper. It covers anything and you will probably never need to write win32 crap. Also, Borland RAD/VCL is more high level than the RAD/BCL which will come with Visual Studio 7 and .NET in general. Dev-C++ does not cover of course VCL, but i am telling you the best solution for Windows programming (the best thing for you) for now. The book "C++ Builder 5 Developer's Guide" by Sams Publishing comes with a trial version of the Borland's IDE and this is also the book i suggest you read for this particular IDE. As for "The C++ Programming Language" 3rd edition or special edition, i suggest you read it all from cover to cover (although it will take about 1-2 years). Reading for example 2-3 pages/day is a good speed, with no much brain overhead and what you learn will not get wasted since C++ will not change. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Jason Hardman > Sent: Wednesday, September 26, 2001 5:29 PM > To: dev...@li... > Subject: Re: [Dev-C++] C++ standard - Nesting classes. >=20 >=20 > Perhaps I should have been a little more clearer in the=20 > wording I used. What am doing is declaring one class which is=20 > the primary class that provides the functionality I am coding=20 > (a glorified state storage object in this case), and that=20 > class has other classes declared within it. These internal=20 > class declerations are private and so it shoudn't be possible=20 > to instantiate an object from one of these classes from=20 > outside the object. The Example from Ioannis Vranos=20 > (thanks)shows this quite well. >=20 > class A > { > public: > enum errors{MEMORY, DISK, MONITOR}; >=20 > private: > class E > { > errors e; >=20 > public: > E(errors er):e(er) {} > }; >=20 > }; >=20 > int main() > { > A a; >=20 > A::errors e; >=20 > A::E x(e); // Mistake, E is private > } >=20 > This compiles under Dev - C++ with MinGW, but not with=20 > Borland C++ 5.5. >=20 > Declaring a class doesn't create an instance of it, but AFAIK=20 > it should still be subject to the access specifier it was=20 > declared under. This is probably a known issue for MinGW,=20 > although I haven't had a chance to check that yet. >=20 > By the way, I already have Bjarn Stroustrup's book. I already=20 > knew how to code in C++ before getting it so never really=20 > read it all the way through, but I use it whenever I want=20 > know about the best approach to a design. It has a lot of=20 > useful information although there are easier books to use as=20 > a reference. >=20 > I have very little experience of Windows programming myself,=20 > but that something else I am trying to learn at this point.=20 > Any suggestions by anyone as to a good Windows API book would=20 > be appreciated by the way. Whenever I find a Windows book it=20 > is primarily about using MFC to write windows programs, but I=20 > don't have access to MFC at the moment so it's pretty useless to me. >=20 > Thanks all, Jason. >=20 > PS: sorry about blathering on and on, I do that alot. :-D >=20 > ----- Original Message ----- > From: "Michael Codadeen" <jd...@ho...> > To: <dev...@li...> > Sent: Wednesday, September 26, 2001 8:39 AM > Subject: Re: [Dev-C++] C++ standard - Nesting classes. >=20 >=20 > > Hi Jason, > > > > The standard states that anything in your private area is only=20 > > accessable > by > > that class. Not even public derived classes of that class=20 > can access=20 > > it. > > > > The protected area is accessable by public derived classes of that=20 > > class. > In > > effect it becomes the private area of that derived class. Also,=20 > > classes of the same type that get passed into an object as=20 > an argument=20 > > may have their protected area accessed. > > > > i.e. > > > > Class A { > > public: > > inline mthd(Class A& obj){cout << obj.data << endl;}; > > protected: > > data; > > } > > > > Class A a, b; > > a.mthd(b); << object a can access b protected area. > > > > The public area of a class can be accessed by anyone. > > > > The story is slightly different for protected and private derived=20 > > classes. For more info get Stroustrups book. > > > > http://www.research.att.com/~bs/ > > > > I would not usually have a class called main, I would=20 > normally have a > public > > static main() function and tell my compiler which class contains=20 > > main(). However, I guess this changes when you are Windows=20 > programming=20 > > of which I have no experience. > > > > Could you send an example of what you are doing so we could=20 > help some > more. > > > > Thanks, > > > > Michael > > > > >From: "Jason Hardman" <jas...@bt...> > > >Reply-To: dev...@li... > > >To: "Dev-C++" <dev...@li...> > > >Subject: [Dev-C++] C++ standard - Nesting classes. > > >Date: Wed, 26 Sep 2001 03:03:24 +0100 > > > > > >Hi, > > > > > >In a project I have been working on I have nested some=20 > classes within=20 > > >a main class that provides an overall functionality. I=20 > wanted to make=20 > > >these internal classes inaccessible to anyone using the=20 > main class. I=20 > > >had hoped that putting them in a private or protected area of the=20 > > >main class it > would > > >stop outside access, but this doesn't seem to work in Dev-C++=20 > > >(MinGW). > Does > > >anyone know if that is standard C++ behaviour? None of my=20 > C++ books=20 > > >say anything about access specifiers and nested classes,=20 > and they say=20 > > >pretty little about nested classes full-stop. It could=20 > reasonally be=20 > > >that only data and methods are affected by access specifiers, but=20 > > >it's hard for me to be sure. > > > > > >I am now looking for an alternative way of hiding those classes,=20 > > >although > I > > >have found some interesting options in using an implementation=20 > > >namespace, > I > > >am still interesting in hearing any other ideas? > > > > > >Thanx, Jason. > > > > > > > > >_______________________________________________ > > >Dev-cpp-users mailing list Dev...@li... > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at=20 > > http://explorer.msn.com/intl.asp > > > > > > _______________________________________________ > > Dev-cpp-users mailing list Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Jason H. <jas...@bt...> - 2001-09-26 15:32:50
|
Perhaps I should have been a little more clearer in the wording I used. What
am doing is declaring one class which is the primary class that provides the
functionality I am coding (a glorified state storage object in this case),
and that class has other classes declared within it. These internal class
declerations are private and so it shoudn't be possible to instantiate an
object from one of these classes from outside the object. The Example from
Ioannis Vranos (thanks)shows this quite well.
class A
{
public:
enum errors{MEMORY, DISK, MONITOR};
private:
class E
{
errors e;
public:
E(errors er):e(er) {}
};
};
int main()
{
A a;
A::errors e;
A::E x(e); // Mistake, E is private
}
This compiles under Dev - C++ with MinGW, but not with Borland C++ 5.5.
Declaring a class doesn't create an instance of it, but AFAIK it should
still be subject to the access specifier it was declared under. This is
probably a known issue for MinGW, although I haven't had a chance to check
that yet.
By the way, I already have Bjarn Stroustrup's book. I already knew how to
code in C++ before getting it so never really read it all the way through,
but I use it whenever I want know about the best approach to a design. It
has a lot of useful information although there are easier books to use as a
reference.
I have very little experience of Windows programming myself, but that
something else I am trying to learn at this point. Any suggestions by anyone
as to a good Windows API book would be appreciated by the way. Whenever I
find a Windows book it is primarily about using MFC to write windows
programs, but I don't have access to MFC at the moment so it's pretty
useless to me.
Thanks all, Jason.
PS: sorry about blathering on and on, I do that alot. :-D
----- Original Message -----
From: "Michael Codadeen" <jd...@ho...>
To: <dev...@li...>
Sent: Wednesday, September 26, 2001 8:39 AM
Subject: Re: [Dev-C++] C++ standard - Nesting classes.
> Hi Jason,
>
> The standard states that anything in your private area is only accessable
by
> that class. Not even public derived classes of that class can access it.
>
> The protected area is accessable by public derived classes of that class.
In
> effect it becomes the private area of that derived class. Also, classes of
> the same type that get passed into an object as an argument may have their
> protected area accessed.
>
> i.e.
>
> Class A {
> public:
> inline mthd(Class A& obj){cout << obj.data << endl;};
> protected:
> data;
> }
>
> Class A a, b;
> a.mthd(b); << object a can access b protected area.
>
> The public area of a class can be accessed by anyone.
>
> The story is slightly different for protected and private derived classes.
> For more info get Stroustrups book.
>
> http://www.research.att.com/~bs/
>
> I would not usually have a class called main, I would normally have a
public
> static main() function and tell my compiler which class contains main().
> However, I guess this changes when you are Windows programming of which I
> have no experience.
>
> Could you send an example of what you are doing so we could help some
more.
>
> Thanks,
>
> Michael
>
> >From: "Jason Hardman" <jas...@bt...>
> >Reply-To: dev...@li...
> >To: "Dev-C++" <dev...@li...>
> >Subject: [Dev-C++] C++ standard - Nesting classes.
> >Date: Wed, 26 Sep 2001 03:03:24 +0100
> >
> >Hi,
> >
> >In a project I have been working on I have nested some classes within a
> >main
> >class that provides an overall functionality. I wanted to make these
> >internal classes inaccessible to anyone using the main class. I had hoped
> >that putting them in a private or protected area of the main class it
would
> >stop outside access, but this doesn't seem to work in Dev-C++ (MinGW).
Does
> >anyone know if that is standard C++ behaviour? None of my C++ books say
> >anything about access specifiers and nested classes, and they say pretty
> >little about nested classes full-stop. It could reasonally be that only
> >data
> >and methods are affected by access specifiers, but it's hard for me to be
> >sure.
> >
> >I am now looking for an alternative way of hiding those classes, although
I
> >have found some interesting options in using an implementation namespace,
I
> >am still interesting in hearing any other ideas?
> >
> >Thanx, Jason.
> >
> >
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Jason H. <jas...@bt...> - 2001-09-26 15:32:45
|
Thanks for that. I don't currently have any other compilers on my system so
hadn't thought to check. I know that the Borland Compiler is probably the
most standard compliant compiler available, so the fact that it didn't work
on it probably meens it is standard.
I guess I'll have to inquire of the MinGW development community to see about
them adding compliance. Thinking of all this I remember hearing about a
website that contains a copy of the C++ standard, does anyone know where it
it? I will be searching for it, but it would be easier if somebody already
knows about it.
Thanks, Jason.
----- Original Message -----
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Sent: Wednesday, September 26, 2001 1:11 PM
Subject: RE: [Dev-C++] C++ standard - Nesting classes.
You are right. The following code compiles in Dev-C++:
class A
{
public:
enum errors{ MEMORY, DISK, MONITOR};
private:
class E
{
errors e;
public:
E(errors er):e(er) {}
};
};
int main()
{
A a;
A::errors e;
A::E x(e); // Mistake, E is private
}
This shouldn't compile, so i consider it a compiler defect. Borland C++
5.5 gives the (expected) error:
Error E2247 temp.cpp 23: 'A::E' is not accessible in function main()
*** 1 errors in Compile ***
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Jason Hardman
> Sent: Wednesday, September 26, 2001 4:03 AM
> To: Dev-C++
> Subject: [Dev-C++] C++ standard - Nesting classes.
>
>
> Hi,
>
> In a project I have been working on I have nested some
> classes within a main class that provides an overall
> functionality. I wanted to make these internal classes
> inaccessible to anyone using the main class. I had hoped that
> putting them in a private or protected area of the main class
> it would stop outside access, but this doesn't seem to work
> in Dev-C++ (MinGW). Does anyone know if that is standard C++
> behaviour? None of my C++ books say anything about access
> specifiers and nested classes, and they say pretty little
> about nested classes full-stop. It could reasonally be that
> only data and methods are affected by access specifiers, but
> it's hard for me to be sure.
>
> I am now looking for an alternative way of hiding those
> classes, although I have found some interesting options in
> using an implementation namespace, I am still interesting in
> hearing any other ideas?
>
> Thanx, Jason.
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Ioannis V. <no...@ya...> - 2001-09-26 11:09:45
|
You are right. The following code compiles in Dev-C++:
class A
{
public:
enum errors{ MEMORY, DISK, MONITOR};
private:
class E
{
errors e;
public:
E(errors er):e(er) {}
};
};
int main()
{
A a;
=20
A::errors e;=20
=20
A::E x(e); // Mistake, E is private
}
This shouldn't compile, so i consider it a compiler defect. Borland C++
5.5 gives the (expected) error:
Error E2247 temp.cpp 23: 'A::E' is not accessible in function main()
*** 1 errors in Compile ***
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Jason Hardman
> Sent: Wednesday, September 26, 2001 4:03 AM
> To: Dev-C++
> Subject: [Dev-C++] C++ standard - Nesting classes.
>=20
>=20
> Hi,
>=20
> In a project I have been working on I have nested some=20
> classes within a main class that provides an overall=20
> functionality. I wanted to make these internal classes=20
> inaccessible to anyone using the main class. I had hoped that=20
> putting them in a private or protected area of the main class=20
> it would stop outside access, but this doesn't seem to work=20
> in Dev-C++ (MinGW). Does anyone know if that is standard C++=20
> behaviour? None of my C++ books say anything about access=20
> specifiers and nested classes, and they say pretty little=20
> about nested classes full-stop. It could reasonally be that=20
> only data and methods are affected by access specifiers, but=20
> it's hard for me to be sure.
>=20
> I am now looking for an alternative way of hiding those=20
> classes, although I have found some interesting options in=20
> using an implementation namespace, I am still interesting in=20
> hearing any other ideas?
>=20
> Thanx, Jason.
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: <t5...@ya...> - 2001-09-26 08:46:37
|
dear all, i try to compile c source file that connect to mysql server i'm using mysql for win and mingw compiler with Dev-c++ as IDE. when i compile it (using libmysql.lib as library), i got this messeges on linker msg: f:\desktop\mysqlc\m.o(.text+0x78):m.c: undefined reference to `mysql_connect@16' f:\desktop\mysqlc\m.o(.text+0x9b):m.c: undefined reference to `mysql_close@4' f:\desktop\mysqlc\m.o(.text+0xb0):m.c: undefined reference to `mysql_error@4' when i compile it (using mysqlclient.lib as library), i got this messeges on linker msg: C:\DEV-C_~1\Bin\ld.exe: F:\desktop\mysqlc\mysqlclient.lib(./release/libmysql.obj): warning: ignoring duplicate section `.text' C:\DEV-C_~1\Bin\ld.exe: F:\desktop\mysqlc\mysqlclient.lib(./release/libmysql.obj): warning: ignoring duplicate section `.text' ... ... ... buit i got exe file, when i try run it, i got an error.. please help me thx _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: St0fF 6. <st...@gm...> - 2001-09-26 08:34:51
|
Hi Stein!
Easy way to do this would be using GLUT.
#include <GL/glut.h>
and then use the glut timer function to determine when a second is over. =
=20
int main(blabla) {
blablabla
glutTimerFunc(1000,time,1);
blablabla
glutMainLoop();
return 0;
}
Well. So far where we get the complete seconds from ...
Now the display callback function has to increment the framecounter =
every time its called. And our fps-calculator looks like this:
static int frames,oldframes,fps;
void time(int egal) {
glutTimerFunc(1000,time,1);
fps =3D frames - oldframes;
oldframes =3D frames;
}
By now you have a variable that gets updated every second displaying how =
many fps your're displaying at.
If you wanted to do something really bound to time, like e.g. want to =
determine, if you'll have to leave out some frames or use them twice =
(for constant framerate), you should use something else than glut. I =
haven't tried, yet. If you figured out a better method it would be =
greatly aprecciated if you shared it with us.
CU, St0fF.
----- Original Message -----=20
From: "Stein Nyg=E5rd" <ste...@ge...>
To: <dev...@li...>
Sent: Tuesday, September 25, 2001 11:00 PM
Subject: [Dev-C++] FPS counter?
| Hi all...
|=20
| I's been a while, cause I've been busy setting up my new Athlon =
1400mhz.
| It's working great, so now I'm ready to move on with the OpenGL!
| So, I just can't figure out how to make a good, fast and precise
| FramesPerSecond-Counter. Any suggestions?
| Thanks!
|=20
| Stein
|=20
|=20
| _______________________________________________
| Dev-cpp-users mailing list
| Dev...@li...
| https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Michael C. <jd...@ho...> - 2001-09-26 07:39:44
|
Hi Jason,
The standard states that anything in your private area is only accessable by
that class. Not even public derived classes of that class can access it.
The protected area is accessable by public derived classes of that class. In
effect it becomes the private area of that derived class. Also, classes of
the same type that get passed into an object as an argument may have their
protected area accessed.
i.e.
Class A {
public:
inline mthd(Class A& obj){cout << obj.data << endl;};
protected:
data;
}
Class A a, b;
a.mthd(b); << object a can access b protected area.
The public area of a class can be accessed by anyone.
The story is slightly different for protected and private derived classes.
For more info get Stroustrups book.
http://www.research.att.com/~bs/
I would not usually have a class called main, I would normally have a public
static main() function and tell my compiler which class contains main().
However, I guess this changes when you are Windows programming of which I
have no experience.
Could you send an example of what you are doing so we could help some more.
Thanks,
Michael
>From: "Jason Hardman" <jas...@bt...>
>Reply-To: dev...@li...
>To: "Dev-C++" <dev...@li...>
>Subject: [Dev-C++] C++ standard - Nesting classes.
>Date: Wed, 26 Sep 2001 03:03:24 +0100
>
>Hi,
>
>In a project I have been working on I have nested some classes within a
>main
>class that provides an overall functionality. I wanted to make these
>internal classes inaccessible to anyone using the main class. I had hoped
>that putting them in a private or protected area of the main class it would
>stop outside access, but this doesn't seem to work in Dev-C++ (MinGW). Does
>anyone know if that is standard C++ behaviour? None of my C++ books say
>anything about access specifiers and nested classes, and they say pretty
>little about nested classes full-stop. It could reasonally be that only
>data
>and methods are affected by access specifiers, but it's hard for me to be
>sure.
>
>I am now looking for an alternative way of hiding those classes, although I
>have found some interesting options in using an implementation namespace, I
>am still interesting in hearing any other ideas?
>
>Thanx, Jason.
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Jason H. <jas...@bt...> - 2001-09-26 02:06:23
|
Hi, In a project I have been working on I have nested some classes within a main class that provides an overall functionality. I wanted to make these internal classes inaccessible to anyone using the main class. I had hoped that putting them in a private or protected area of the main class it would stop outside access, but this doesn't seem to work in Dev-C++ (MinGW). Does anyone know if that is standard C++ behaviour? None of my C++ books say anything about access specifiers and nested classes, and they say pretty little about nested classes full-stop. It could reasonally be that only data and methods are affected by access specifiers, but it's hard for me to be sure. I am now looking for an alternative way of hiding those classes, although I have found some interesting options in using an implementation namespace, I am still interesting in hearing any other ideas? Thanx, Jason. |
|
From: Nexus <nne...@ya...> - 2001-09-25 23:58:52
|
i installed quickinstall2 on win2ksp2 and it wont load exception error? any ideas? Nexus _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: St0fF 6. <st...@gm...> - 2001-09-25 21:13:59
|
hi javid! go to http://www.bloodshed.net/devcpp.html . There you'll find links to = download DevCPP and also DevPASCAL. These editors and compilers should = meet your needs and they're for free. As you've already paid I guess = there ain't no probs. Cheers, St0fF. ----- Original Message -----=20 From: javid=20 To: dev...@li...=20 Sent: Tuesday, September 25, 2001 6:35 PM Subject: [Dev-C++] (no subject) dear sir, last year i purchased the Dev c++ product from you and unfortunately = the download which i did against payment were on hard drive but due to = problem i was complelled to format it and thus the download too. i would = be thankful if you can tell me where i can download and must i have to = pay again. i am intersted to download both compiler and text editor = which i can use in windows. the text editor should be such that it shows = mistake with colours in line. with best rgrds from javid |
|
From: <ste...@ge...> - 2001-09-25 21:01:04
|
Hi all... I's been a while, cause I've been busy setting up my new Athlon 1400mhz. It's working great, so now I'm ready to move on with the OpenGL! So, I just can't figure out how to make a good, fast and precise FramesPerSecond-Counter. Any suggestions? Thanks! Stein |
|
From: javid <jav...@te...> - 2001-09-25 16:36:02
|
dear sir, last year i purchased the Dev c++ product from you and unfortunately the = download which i did against payment were on hard drive but due to = problem i was complelled to format it and thus the download too. i would = be thankful if you can tell me where i can download and must i have to = pay again. i am intersted to download both compiler and text editor = which i can use in windows. the text editor should be such that it shows = mistake with colours in line. with best rgrds from javid |
|
From: Luigi S. <gi...@li...> - 2001-09-25 11:09:13
|
Hi! I've tried the code that you posted (I broke it into 3 files then used Dev-C++ to make a project, compile the project and run it) with the following as "in.data": in.data --------- 3 2 2.5 2 3 3 2.5 3 -- It produced the following output: out.data ------------ 3^2 = 9 2.5^2 = 6.25 3^3 = 27 2.50^3 = 15.62 -- So it looks Ok to me. At 14.27 24/09/01 -0700, you wrote: >I have a program that complies and runs in both >Microsoft C++ 6.0, and my schools Dec Unix C++ >complier. I opened a new project in Dev C++ make it a >console application. I added these three files to my >project pwrpro.h, pwr.cpp, runpwr.cpp The program >compiles with no errors. The problem is that this >program should read data from a file and the then >write a new file, with calculations in it. It writes a >blank file. I am wondering if I am missing something >for it to work correctly in this IDE. When i do not >put my file in.data in the directory it correctly >prints "the file is not found" in the output file. -- gisan gi...@li... |
|
From: Michael C. <jd...@ho...> - 2001-09-25 07:19:37
|
Hi Julian,
I am currently at work and haven't Dev-C++ installed, so I canot test your
program.
I noticed that you do not test the outcome of the open for either of your
files. This would be a good first step.
E.g. Extract from Bjarne Stroustrup, p.638
(note: your example may vary slightly for it to work)
ifstream from(file1);
ofstream to (file2);
if (!from) ...;
if (!to) ...;
If I have time I will download Dev-C++ later to try it out but I am very
busy right now.
Hope my little contribution helps,
Michael
>From: Julian Etienne <j_e...@ya...>
>Reply-To: dev...@li...
>To: dev...@li...
>Subject: [Dev-C++] HELP---Read/Write Files in Dev C++
>Date: Mon, 24 Sep 2001 14:27:42 -0700 (PDT)
>
>I have a program that complies and runs in both
>Microsoft C++ 6.0, and my schools Dec Unix C++
>complier. I opened a new project in Dev C++ make it a
>console application. I added these three files to my
>project pwrpro.h, pwr.cpp, runpwr.cpp The program
>compiles with no errors. The problem is that this
>program should read data from a file and the then
>write a new file, with calculations in it. It writes a
>blank file. I am wondering if I am missing something
>for it to work correctly in this IDE. When i do not
>put my file in.data in the directory it correctly
>prints "the file is not found" in the output file.
>
>ANY HELP WILL BE GREATLY APPRECIATED!!!!
>
>//----------
>// Specification File (pwrpro.h)
>// This module provides exponentiation functions.
>//----------
>
>int PowerOfInt ( int someInt, int exp );
>// PRE: Assign int (someInt) and exp > 0
>// POST: Firstnum raised to the power "expon1"
>//(NOTE: Large exponents may produce overflow)
>
>float PowerOfFloat ( float someFloat, int exp );
>// PRE: Assign float (someFloat) and assigned some exp
> > 0
>// POST: someFloat raised to the power "exp"
>//(NOTE: Large exponents may produce overflow)
>
>bool NonZeroInt (int exp);
>//PRE: Take infile exp
>//POST: make sure exp > 0
>
>-----------------------------------------------
>-----------------------------------------------
>-----------------------------------------------
>
>//----------
>// Specification File (pwr.cxx)
>// This module provides exponentiation functions.
>//----------
>#include <iomanip.h>
>#include "pwrpro.h"
>
>int PowerOfInt ( int someInt, int exp )
>//...........
>// PRE: Assign int (someInt) and exp > 0
>// POST: Firstnum raised to the power "expon1"
>//(NOTE: Large exponents may produce overflow)
>//...........
>{
>
>int i;
>int partialVal = 1;
>
>for ( i = 1; i <= exp; i++)
>partialVal *= someInt;
>return partialVal;
>
>}
>
>float PowerOfFloat (float someFloat, int exp )
>//...........
>// PRE: Assign float (someFloat) and assigned some exp
> > 0
>// POST: someFloat raised to the power "exp"
>//(NOTE: Large exponents may produce overflow)
>//...........
>{
>int i;
>float partialVal = 1.0;
>
>for ( i = 1; i <= exp; i++)
>partialVal *= someFloat;
>return partialVal;
>
>}
>
>bool NonZeroInt (int exp)
>//..........
>//PRE: Take infile exp
>//POST: make sure exp > 0
>//..........
>{
>bool value;
>
>if (exp <= 0) value = false;
>else
>value = true;
>return value;
>}
>
>-------------------------------------------------
>-------------------------------------------------
>-------------------------------------------------
>
>//*************************************************************************
>
>
>//PURPOSE
>// runpwr.cxx)
>// This program reads IntNum, IntExp, FloatNum,
>FloatExp from an input file and calculates
>// IntNum^Int Exp and Float Num^ Float Exp.
>// Note X^n denotes X raised to the nth power.
>//*************************************************************************
>
>
>#include <fstream.h>
>#include <iomanip.h>
>#include "pwrpro.h"
>
>int main()
>{
>ifstream inFile;
>ofstream outFile;
>
>inFile.open("in.data", ios::nocreate );
>outFile.open("out.data");
>
>if (! inFile)
>{
>outFile<<" ERROR: Unable to locate file named
>'in.data' "<<endl;
>return 0;
>}
>
>int IntExp, FloatExp, IntNum;
>float FloatNum;
>
>inFile >> IntNum >> IntExp >> FloatNum >> FloatExp;
>
>while (! inFile.eof() )
>{
>
>if (NonZeroInt (IntExp)== false)
>outFile <<"This Function accepts only "
><<"postive integer exponents!"
><<" Your exponent is zero or negative.
>
>";
>else
>{
>
>outFile <<IntNum << "^"<< IntExp << " = " << setw (10)
>
><< PowerOfInt(IntNum,IntExp) <<endl;
>
>}
>
>
>if (NonZeroInt (FloatExp)== false)
>outFile <<"This Function accepts only "
><<"postive integer exponents!"
><<" Your exponent is zero or negative.
>
>";
>else
>{
>
>outFile <<FloatNum << "^"<<FloatExp << " = " << setw
>(10)
><<setiosflags(ios::fixed) << setprecision
>(2)<<PowerOfFloat(FloatNum, FloatExp)
><<endl <<endl;
>
>}
>
>inFile >> IntNum >> IntExp >> FloatNum >> FloatExp;
>}
>
>inFile.close();
>outFile.close();
>return 0;
>}
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email alerts & NEW webcam video instant messaging with Yahoo!
>Messenger. http://im.yahoo.com
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
From: Julian E. <j_e...@ya...> - 2001-09-24 21:27:43
|
I have a program that complies and runs in both
Microsoft C++ 6.0, and my schools Dec Unix C++
complier. I opened a new project in Dev C++ make it a
console application. I added these three files to my
project pwrpro.h, pwr.cpp, runpwr.cpp The program
compiles with no errors. The problem is that this
program should read data from a file and the then
write a new file, with calculations in it. It writes a
blank file. I am wondering if I am missing something
for it to work correctly in this IDE. When i do not
put my file in.data in the directory it correctly
prints "the file is not found" in the output file.
ANY HELP WILL BE GREATLY APPRECIATED!!!!
//----------
// Specification File (pwrpro.h)
// This module provides exponentiation functions.
//----------
int PowerOfInt ( int someInt, int exp );
// PRE: Assign int (someInt) and exp > 0
// POST: Firstnum raised to the power "expon1"
//(NOTE: Large exponents may produce overflow)
float PowerOfFloat ( float someFloat, int exp );
// PRE: Assign float (someFloat) and assigned some exp
> 0
// POST: someFloat raised to the power "exp"
//(NOTE: Large exponents may produce overflow)
bool NonZeroInt (int exp);
//PRE: Take infile exp
//POST: make sure exp > 0
-----------------------------------------------
-----------------------------------------------
-----------------------------------------------
//----------
// Specification File (pwr.cxx)
// This module provides exponentiation functions.
//----------
#include <iomanip.h>
#include "pwrpro.h"
int PowerOfInt ( int someInt, int exp )
//...........
// PRE: Assign int (someInt) and exp > 0
// POST: Firstnum raised to the power "expon1"
//(NOTE: Large exponents may produce overflow)
//...........
{
int i;
int partialVal = 1;
for ( i = 1; i <= exp; i++)
partialVal *= someInt;
return partialVal;
}
float PowerOfFloat (float someFloat, int exp )
//...........
// PRE: Assign float (someFloat) and assigned some exp
> 0
// POST: someFloat raised to the power "exp"
//(NOTE: Large exponents may produce overflow)
//...........
{
int i;
float partialVal = 1.0;
for ( i = 1; i <= exp; i++)
partialVal *= someFloat;
return partialVal;
}
bool NonZeroInt (int exp)
//..........
//PRE: Take infile exp
//POST: make sure exp > 0
//..........
{
bool value;
if (exp <= 0) value = false;
else
value = true;
return value;
}
-------------------------------------------------
-------------------------------------------------
-------------------------------------------------
//*************************************************************************
//PURPOSE
// runpwr.cxx)
// This program reads IntNum, IntExp, FloatNum,
FloatExp from an input file and calculates
// IntNum^Int Exp and Float Num^ Float Exp.
// Note X^n denotes X raised to the nth power.
//*************************************************************************
#include <fstream.h>
#include <iomanip.h>
#include "pwrpro.h"
int main()
{
ifstream inFile;
ofstream outFile;
inFile.open("in.data", ios::nocreate );
outFile.open("out.data");
if (! inFile)
{
outFile<<" ERROR: Unable to locate file named
'in.data' "<<endl;
return 0;
}
int IntExp, FloatExp, IntNum;
float FloatNum;
inFile >> IntNum >> IntExp >> FloatNum >> FloatExp;
while (! inFile.eof() )
{
if (NonZeroInt (IntExp)== false)
outFile <<"This Function accepts only "
<<"postive integer exponents!"
<<" Your exponent is zero or negative.
";
else
{
outFile <<IntNum << "^"<< IntExp << " = " << setw (10)
<< PowerOfInt(IntNum,IntExp) <<endl;
}
if (NonZeroInt (FloatExp)== false)
outFile <<"This Function accepts only "
<<"postive integer exponents!"
<<" Your exponent is zero or negative.
";
else
{
outFile <<FloatNum << "^"<<FloatExp << " = " << setw
(10)
<<setiosflags(ios::fixed) << setprecision
(2)<<PowerOfFloat(FloatNum, FloatExp)
<<endl <<endl;
}
inFile >> IntNum >> IntExp >> FloatNum >> FloatExp;
}
inFile.close();
outFile.close();
return 0;
}
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
|
|
From: Julian E. <j_e...@ya...> - 2001-09-24 21:27:20
|
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com |
|
From: Schedler, K. <Kur...@hi...> - 2001-09-24 14:35:27
|
I think you need to put a
#define IDR_PCXFILE 999
in a header file that is #included in both the resource file and the source
file(s) which use the name.
-----Original Message-----
From: Tomas Dolejsi [mailto:do...@vo...]
Sent: Saturday, September 22, 2001 5:33 AM
To: Dev-C++ Mail Group
Subject: [Dev-C++] Custom Resource
Hello!
I'd like to include a .pcx file in the .exe file of the application.
I put following line in 'rsrc.rc' file:
IDR_PCXFILE BINTYPE Main.pcx
And there's the piece of my code which should load the pcx file resource:
hResource = LoadResource (hInstance,
FindResource (hInstance, "BINTYPE",
MAKEINTRESOURCE (IDR_PCXFILE)));
However, the compiler claims that IDR_PCXFILE hasn't been declared.
When replacing IDR_PCXFILE with (e.g.) number 999 (in both files), the
program crashes, too.
Does anyone know what's wrong?
"The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message
and its attachments could have been infected during transmission. By
reading the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments."
|
|
From: Giuseppe F. <egi...@ti...> - 2001-09-24 13:05:18
|
Thanx Joannis Giuseppe ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: <dev...@li...> Sent: Saturday, September 22, 2001 3:55 PM Subject: RE: [Dev-C++] dev-c++ & gtk > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Giuseppe Falchi > > Sent: Friday, September 21, 2001 2:52 PM > > To: dev...@li... > > Subject: [Dev-C++] dev-c++ & gtk > > > > > > > > Hi, somebody of you know what to programming in Windows and > > Dev-C++ whit the GTK library? I say, what to set the > > directories and the files? What version of gtk and libc is to > > download? What to set the Dev-C++ ide for GTK programming? > > What is Glade? > > > > p. s. > > Anyone advise me a good library (for GUI interfaces, C++ > > compatible) to use whit Dev-C++? > > > I hate self advertisements, but: http://www.noicys.f2s.com/links.htm > > > > Giuseppe Falchi > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Blu M. <bl...@ho...> - 2001-09-22 20:28:31
|
Speaking of self-advertisement, can everyone send in their home sites (especially if they have source code, etc.)? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Ioannis V. <no...@ya...> - 2001-09-22 12:54:36
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Giuseppe Falchi > Sent: Friday, September 21, 2001 2:52 PM > To: dev...@li... > Subject: [Dev-C++] dev-c++ & gtk > > > > Hi, somebody of you know what to programming in Windows and > Dev-C++ whit the GTK library? I say, what to set the > directories and the files? What version of gtk and libc is to > download? What to set the Dev-C++ ide for GTK programming? > What is Glade? > > p. s. > Anyone advise me a good library (for GUI interfaces, C++ > compatible) to use whit Dev-C++? I hate self advertisements, but: http://www.noicys.f2s.com/links.htm > Giuseppe Falchi Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Tomas D. <do...@vo...> - 2001-09-22 12:33:09
|
Hello!
I'd like to include a .pcx file in the .exe file of the application.
I put following line in 'rsrc.rc' file:
IDR_PCXFILE BINTYPE Main.pcx
And there's the piece of my code which should load the pcx file resource:
hResource = LoadResource (hInstance,
FindResource (hInstance, "BINTYPE",
MAKEINTRESOURCE (IDR_PCXFILE)));
However, the compiler claims that IDR_PCXFILE hasn't been declared.
When replacing IDR_PCXFILE with (e.g.) number 999 (in both files), the
program crashes, too.
Does anyone know what's wrong?
Tomas Dolejsi
50...@ce...
|
|
From: Giuseppe F. <egi...@ti...> - 2001-09-22 10:41:50
|
Hi, somebody of you know what to programming in Windows and Dev-C++ whit the GTK library? I say, what to set the directories and the files? What version of gtk and libc is to download? What to set the Dev-C++ ide for GTK programming? What is Glade? p. s. Anyone advise me a good library (for GUI interfaces, C++ compatible) to use whit Dev-C++? Giuseppe Falchi |
|
From: Luigi S. <gi...@li...> - 2001-09-22 05:58:58
|
Hello, I've seen that there is some interest around the issue (about 4 posts in one day). In my answer to Mr. Codadeen I pointed out the program "xwm". As I specified, it is a small program that I wrote for my personal use. As I consider myself a newbie, the program is very simple, it works only for small console applications (or at least I tested for that kind of projects). Like newbies, I used to put together my simple makefiles by hand, until I wrote "xwm" to do exactly what I did before, its main (or better yet, "sole") purpose was saving me from typing. I hope I did not raise some expectation that was then disappointed. I've seen posts citing "automake" or "autoconf": I don't know much about these, except that they are distributed with Cygwin (and probably with Linux). A google search reveals that "Imake" is a "professional" tool used with X (so with Linux). Probably these tools fit better your needs than my simple program. Thank you for your attention. -- gisan gi...@li... |
|
From: Luigi S. <gi...@li...> - 2001-09-22 04:31:31
|
Hello, Sorry, I don't know what "nmimake" is. What I'm talking about is a small program written by me and available, as source files, at the page www.geocities.com/gisan1/sources/xwm_c011.htm. "xwm" will generate a vey simple makefile using some information that you provide as a configuration file and some information that are spread in your header files. If you have any question, let me know, I would also be interested to know your opinion about it. At 06.56 21/09/01 +0000, you wrote: >Hi, > >I'd also be quite interested in your Makefile generation procedure. Are >you taking about nmimake by chance ? -- gisan gi...@li... |
|
From: Jason H. <jas...@bt...> - 2001-09-21 18:56:16
|
I've been looking at it myself to, and AFAICT there isn't standard string
support for converting from int. None of the string members listed in "C++
The Complete Reference" do it.
I have found an alternative way of doing what sprintf does, which is more
C++ like, by using an Array Based Output Stream. e.g.
#include <stdio.h>
#include <stdlib.h>
#include <strstream>
#include <iostream>
#include <string>
int main(int argc, char *argv[])
{
using namespace std;
char str[80];
ostrstream outs(str, sizeof(str));
string mystring;
outs << "An int " << 1024 << " or a float " << 1.234 << "." << ends;
mystring = str;
cout << mystring << endl;
system("PAUSE");
return 0;
}
I tested it just in case, and it seems to work OK, but is also a long winded
way of doing things.
Jason.
----- Original Message -----
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Sent: Friday, September 21, 2001 8:24 PM
Subject: RE: [Dev-C++] Integer to std::string?
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Jason Hardman
> Sent: Friday, September 21, 2001 7:59 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] Integer to std::string?
>
>
> Thanks for that, I had forgotten about sprintf(). I have to
> say it's not an ideal solution. It seems odd that the idea of
> converting from numbers wasn't put into string. I think I may
I did not say that the idea of converting from numbers to string isn't
implemented in string, i said that i do not know it yet. :)
> still write some kind of function to convert "tostring",
> using sprintf is a more messy solution for my purpose.
>
> I'll be keeping my eye out for alternatives still though.
>
> Thanx, Jason.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|