dev-cpp-users Mailing List for Dev-C++ (Page 184)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Per W. <pw...@ia...> - 2004-09-06 21:50:02
|
Please enlighten a novice: How can it be guaranteed that you can mix two different IO libraries and still get 100% function? Please _do not_ use both IO libraries for input from same stream. Flushing output is a performance loss but works. No characters gets lost and the flush solves the problem with output through the two libraries getting incorrectly mixed with each other. Flushing of input is a lossy project - throwing away characters. You just can't throw away characters eaten by one IO library and then expect the other IO library to not be affected. In some special circumstances you might get a program to work with a mix of C and C++ input from the console. However, if you change to another compiler or move the code to another OS, you don't know how your program will behave. Different implementations of the libraries behaves differently. However, this isn't a problem: If you use just C or just C++ for a specific stream, you are using the libraries as they are indended, and then they will behave as expected. The problem is similar to trying to set output position of a file with fseek(FILE*,...) and then use a output stream to write information. The output stream doesn't know about the fseek() and the output gets written to the wrong location. If we think about standards: The C++ standard can't have full control over the internals of the C library, while the C standard obviously haven't any control over the C++ libraries. So, I repeat it once more: Avoid mixing getche() with cin! In a win32 console, you can always use SetConsoleMode() with the ENABLE_ECHO_INPUT flag to control input echo. /Per W On Mon, 6 Sep 2004, Noorez Kassam wrote: > How do I flush the input buffer after using getch() or getche()? I use > cin.sync() after using cin? How can I do it for the other functions? > > _________________________________________________________________ > Take advantage of powerful junk e-mail filters built on patented Microsof= t=AE > SmartScreen Technology. > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > Start enjoying all the benefits of MSN=AE Premium right now and get the > first two months FREE*. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Noorez K. <dar...@ho...> - 2004-09-06 20:02:37
|
How do I flush the input buffer after using getch() or getche()? I use cin.sync() after using cin? How can I do it for the other functions? _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Per W. <pw...@ia...> - 2004-09-06 09:30:38
|
1) The complete error messages are:
fnkptr.cpp:29: error: assuming pointer to member `void Dog::Speak() const'
fnkptr.cpp:29: error: (a pointer to member can only be formed with `&Dog::Speak() const')
Just add a & before eacn function name, just as the error message suggest,
and the compiler will be happy.
2) Notice that Dev-C++ is an integrated development environment, not a
compiler. It is the gcc team - or possibly the MinGW team - that is
responsible for which error messages are emitted by the compiler. By the
way, 99.9% if the error messages I have seen have been quite obvious.
3) windef.h is a file seldom directly included in a program. However, a
number of other include files recursively requests the windef.h file. If
you check again, you should be able to find out why the compiler mentioned
it. The compiler never makes this kind of mistake. The only reason it said
BOOL was already defined in windef.h was that the program directly or
indirectly did include windef.h
/Per W
On Sun, 5 Sep 2004, Roger Furer wrote:
> Aloha from Honolulu,
> The following was taken from Sams Teach Yourself C++ and refuses to
> compile. The compiler reports the error at the line following
> "Dog::PlayDead" which is the closing brace and semi-colon for the "PDF
> DogFunctions...". I have marked it with an exclamation point ! here.
> While I do need to know what the code's problem is, more vexing is that
> in the compiler report window under messages is listed "assuming" and on
> the next line "(a". Nowhere have I been able to find a list of the
> various messages. I looked under the Help window of the program
> (Version 4.9.8.0) and also on the Bloodshed site, but no luck there
> either. I would suggest that a comprehensive list of error messages
> would benefit most everyone using these programs.
> A further note: earlier in the lesson was a line: enum BOOL {FALSE,
> TRUE}; that generated the folowing error messages: "conflicting" and
> then: (copied from the compiler report window)
> 227 C:\Dev-Cpp\include\windef.h previous declaration as `typedef
> WINBOOL BOOL'
> My solution was to comment it out, but why did the message appear
> when windef.h was never included in the code?
> Thanks in advance,
> Mahalo,
> Roger
>
>
> //Listing 20.10 Array of pointers to member functions
> #include <iostream>
> class Dog
> {
> public:
> void Speak()const { std::cout << "Woof!\n"; }
> void Move() const { std::cout << "Walking to heel...\n"; }
> void Eat() const { std::cout << "Gobbling food...\n"; }
> void Growl() const { std::cout << "Grrrrr\n"; }
> void Whimper() const { std::cout << "Whining noises...\n"; }
> void RollOver() const { std::cout << "Rolling over...\n"; }
> void PlayDead() const
> { std::cout << "Is this the end of Little Caeser?\n"; }
> };
>
> typedef void (Dog::*PDF)()const ;
>
> int main()
> {
> const int MaxFuncs = 7;
> PDF DogFunctions[MaxFuncs] =
> { Dog::Speak,
> Dog::Move,
> Dog::Eat,
> Dog::Growl,
> Dog::Whimper,
> Dog::RollOver,
> Dog::PlayDead
> ! };
> Dog* pDog =0;
> int Method;
> bool fQuit = false;
> while (!fQuit)
> {
> std::cout << "(0)Quit (1)Speak (2)Move (3)Eat (4)Growl";
> std::cout << " (5)Whimper (6)Roll Over (7)Play Dead: ";
> std::cin >> Method;
> if (Method == 0)
> {
> fQuit = true;
> break;
> }
> else
> {
> pDog = new Dog;
> (pDog->*DogFunctions[Method-1])();
> delete pDog;
> }
> }
> return 0;
> }
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Roger F. <ra...@ha...> - 2004-09-06 00:08:00
|
Aloha from Honolulu,
The following was taken from Sams Teach Yourself C++ and refuses to
compile. The compiler reports the error at the line following
"Dog::PlayDead" which is the closing brace and semi-colon for the "PDF
DogFunctions...". I have marked it with an exclamation point ! here.
While I do need to know what the code's problem is, more vexing is that
in the compiler report window under messages is listed "assuming" and on
the next line "(a". Nowhere have I been able to find a list of the
various messages. I looked under the Help window of the program
(Version 4.9.8.0) and also on the Bloodshed site, but no luck there
either. I would suggest that a comprehensive list of error messages
would benefit most everyone using these programs.
A further note: earlier in the lesson was a line: enum BOOL {FALSE,
TRUE}; that generated the folowing error messages: "conflicting" and
then: (copied from the compiler report window)
227 C:\Dev-Cpp\include\windef.h previous declaration as `typedef
WINBOOL BOOL'
My solution was to comment it out, but why did the message appear
when windef.h was never included in the code?
Thanks in advance,
Mahalo,
Roger
//Listing 20.10 Array of pointers to member functions
#include <iostream>
class Dog
{
public:
void Speak()const { std::cout << "Woof!\n"; }
void Move() const { std::cout << "Walking to heel...\n"; }
void Eat() const { std::cout << "Gobbling food...\n"; }
void Growl() const { std::cout << "Grrrrr\n"; }
void Whimper() const { std::cout << "Whining noises...\n"; }
void RollOver() const { std::cout << "Rolling over...\n"; }
void PlayDead() const
{ std::cout << "Is this the end of Little Caeser?\n"; }
};
typedef void (Dog::*PDF)()const ;
int main()
{
const int MaxFuncs = 7;
PDF DogFunctions[MaxFuncs] =
{ Dog::Speak,
Dog::Move,
Dog::Eat,
Dog::Growl,
Dog::Whimper,
Dog::RollOver,
Dog::PlayDead
! };
Dog* pDog =0;
int Method;
bool fQuit = false;
while (!fQuit)
{
std::cout << "(0)Quit (1)Speak (2)Move (3)Eat (4)Growl";
std::cout << " (5)Whimper (6)Roll Over (7)Play Dead: ";
std::cin >> Method;
if (Method == 0)
{
fQuit = true;
break;
}
else
{
pDog = new Dog;
(pDog->*DogFunctions[Method-1])();
delete pDog;
}
}
return 0;
}
|
|
From: Garland J. <vw...@ya...> - 2004-09-05 18:53:04
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFF5" text="#8554D3"><p><a href="http://dkhe.mblcmla.info/?1h39z42vB58oJ11bindgmwu"><IMG SRC="cid:part1.05010501.03080807@vb...@ho..." border="0" ALT=""></a></p><p><font color="#FFFFF1">Books U2 it's beautiful come on</font></p><p><font color="#FFFFF8">Will you Claire Swire</font></p></body></html> |
|
From: Alvin T. <alv...@th...> - 2004-09-04 13:30:30
|
Siva Chandra wrote:
> Now I would like to include this header file in
> another header file, header2.h. Here again I want to
> declare a class ClassB under the same namespace abc.
> This ClassB is inherited from ClassA. So to avoid
> writing abc::ClassA everywhere I just say:
>
> using namespace abc;
>
> at the begining of the file. My file would be like:
>
> #ifndef __HEADER2_H__
> #define __HEADER2_H__
>
> #include "header1.h"
>
> using namespace abc;
>
> namespace abc
> { // Start of namespace brace.
>
> class ClassB : public ClassA
> {
> ...
> };
>
> } // End of namespace brace.
>
> #endif // __HEADER2_H__
>
> My question is here: By explicitly putting a statement
> like
>
> using namespace abc;
>
> I am including such a statement in all my code which
> use this header file header2.h. Is there a way to
> avoid such a thing from happening without losing the
> functionality I want it to be there for? Or is it that
> I am not using it in the right manner?
simply drop the 'using namespace abc;' statement. you have no reason to
use it in your example. anything in the 'namespace abc {' block
automatically uses the namespace.
-alvin
|
|
From: Karthik K. <akk...@ya...> - 2004-09-03 19:18:05
|
Instead of FreeGLUT library, I used the GLUT library that was distributed with DevC++ itself. <---- Compile Log --- > gcc.exe display.o -o "Display.exe" -L"C:/Programs/Dev-Cpp/lib" -lopengl32 -lwinmm -lgdi32 -lglut32 display.o(.text+0x1c):display.cpp: undefined reference to `__glutInitWithExit' display.o(.text+0x37):display.cpp: undefined reference to `__glutCreateWindowWithExit' display.o(.text+0x53):display.cpp: undefined reference to `__glutCreateMenuWithExit' display.o(.text+0x68):display.cpp: undefined reference to `_imp__glClear' display.o(.text+0x76):display.cpp: undefined reference to `_imp__glBegin' display.o(.text+0x8e):display.cpp: undefined reference to `_imp__glVertex2f' display.o(.text+0xa6):display.cpp: undefined reference to `_imp__glVertex2f' display.o(.text+0xbe):display.cpp: undefined reference to `_imp__glVertex2f' display.o(.text+0xd6):display.cpp: undefined reference to `_imp__glVertex2f' display.o(.text+0xdd):display.cpp: undefined reference to `_imp__glEnd' display.o(.text+0xe4):display.cpp: undefined reference to `_imp__glFlush' display.o(.text+0x138):display.cpp: undefined reference to `glutDisplayFunc' display.o(.text+0x13d):display.cpp: undefined reference to `glutMainLoop' <--- End Compile Log ---> Thanks for any help in this regard. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
|
From: Per W. <pw...@ia...> - 2004-09-03 18:46:07
|
So the reason you never give feedback to received answers - you never read
them...
Be _very_ careful about mixing FILE-based and stream-based input and/or
output to the _same_ stream, since the C library and the C++ stream
library have their own input/output buffer code. When mixing them, serious
problems with interaction may/will follow. Regularly flushing the streams
may help the problem, but the best solution is to not mix the two
input/output methods!
/Per W
On Fri, 3 Sep 2004, Noorez Kassam wrote:
> I am getting some very strange results with my program. The first error i=
s
> that the input on the marked line, shows up on the next input line but ha=
s
> not been entered. I used getch() to fix that but what went wrong?
>
> Next error. If I enter 'y' for the auto clear screen then the marked inpu=
t
> line acts as if there was an input on each round of the main loop. If the
> answer was 'n' it only skips once.
>
> I tried debugging but still nothing...
>
> #include <iostream>
> #include <cstdlib>
> #include <direct.h>
> #include <string>
> #include <myfs.h>
> #include <conio.h>
> using namespace std;
> using namespace myf;
>
> int sYstem(bool clrs);
> int main()
> {
> console_init();
> cursor_position(15,10);
> text_color(cGreen,cBlack);
> cout << "WELCOME TO EASY TO USE DOS-PROMPT\n";
> wait();
> cls();
> cout << "Easy to use dos-prompt!" << endl;
>
> cout << "\nTo quit you can use any one of the following commands: " <<
> endl
> << "quit, bye, exit" << endl << endl;
>
>
> char ask;
> do
> {
> cout << "Would you like to enter the system? [Y\\N] ";
> text_color(cRed,cBlack);
> ask =3D getche();
> cout << endl;
> text_color(cGreen, cBlack);
>
> if(ask =3D=3D 'y' || ask =3D=3D 'Y')
> {//main if
>
> cout << "\nYou can also have the program Clear Screen automaticly"
> << " after each command.\n";
> cout << "Is this Ok [Y\\N] ";
>
> char clrs;
> bool cLrs =3D FALSE;
> text_color(cRed,cBlack);
> clrs=3Dgetche(); //the character entered hear...
> cout << endl;
> text_color(cGreen,cBlack);
> if(clrs =3D=3D 'y' || clrs =3D=3D 'Y')
> {
> cLrs =3D TRUE;
> }
>
> else if(clrs =3D=3D 'n' || clrs =3D=3D 'N')
> {
> cLrs =3D FALSE;
> }
>
> else
> {
> cout << "What...";
> cout << "Default is set. No Clear Screen!\n";
> cLrs =3D FALSE;
> }
> //return to main test
> sYstem(cLrs);
> wait();
> return 0;
> }
>
> else if(ask =3D=3D 'n' || ask =3D=3D 'N')
> {
> cout << "Bye!" << endl;
> wait();
> cls();
> return 0;
> }
>
> else
> {
> cout << "What....\n" << endl;
> }
>
> }while(ask !=3D 'y' || ask !=3D 'Y' || ask !=3D 'n' || ask !=3D 'N');
>
> return 0;
> }
>
> //define the system function
> int sYstem(bool clrs)
> {
> char* drv =3D new char;
> cout << "\nEnter the name of the drive you want to go to: ";
> text_color(cRed,cBlack);
> cin.getline(drv,123); //comes out hear but enter key not pushed.
> text_color(cGreen,cBlack);
> strcat(drv,":\\");
> chdir(drv);
>
> cout << "Now in drive " << drv << endl;
> cout << "You may type in commands" << endl;
> wait();
> cout << '\n';
> strcat(drv,">");
>
> char* coms;
>
> while(1)
> {
> coms =3D new char;
> if(coms =3D=3D NULL)
> {
> cout << "No memory\n";
> wait();
> exit(1);
> return 0;
> }
> cout << drv;
> text_color(cRed,cBlack);
> cin.getline(coms,124); //line is skipped if clear screen answer is y =
and
> goes back to the top of the main loop.
> text_color(cGreen,cBlack);
>
> int comLen =3D strlen(coms);
> if(coms[comLen-1]=3D=3D ':')
> {
> delete drv;
> drv =3D new char;
> drv =3D coms;
> chdir(coms);
> strcat(drv,"\\>");
> delete coms;
> }
>
> if( strcmp(coms,"exit")=3D=3D0 || strcmp(coms,"bye")=3D=3D0 ||
> strcmp(coms,"quit")=3D=3D0 )
> {
> if(clrs =3D=3D TRUE)
> {
> cls();
> }
> return 0;
> }
>
> system(coms);
> delete coms;
>
> if(clrs =3D=3D TRUE)
> {
> wait();
> cls();
> }
>
> cout << endl;
> }//while
> }//end system def
>
> _________________________________________________________________
> Scan and help eliminate destructive viruses from your inbound and outboun=
d
> e-mail and attachments.
> http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines
> Start enjoying all the benefits of MSN=AE Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Karthik K. <akk...@ya...> - 2004-09-03 18:16:09
|
Hi, I wanted to run my first GLUT application as following. I am attaching a barebones glut application herewith. I am getting a lot of linking errors. I am attaching the error herewith. <-- Compile Log --> gcc.exe display.o -o "Display.exe" -L"C:/Programs/Dev-Cpp/lib" -mwindows -lfreeglut -lglu32 -lopengl32 -lwinmm -lgdi32 Warning: resolving __imp__glBegin by linking to __imp__glBegin@4 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving __imp__glVertex2f by linking to __imp__glVertex2f@8 Warning: resolving __imp__glEnd by linking to __imp__glEnd@0 Warning: resolving __imp__glFlush by linking to __imp__glFlush@0 display.o(.text+0x1c):display.cpp: undefined reference to `__glutInitWithExit' display.o(.text+0x37):display.cpp: undefined reference to `__glutCreateWindowWithExit' display.o(.text+0x53):display.cpp: undefined reference to `__glutCreateMenuWithExit' display.o(.text+0x68):display.cpp: undefined reference to `_imp__glClear' make.exe: *** [Display.exe] Error 1 Execution terminated <--- End Compiler Log --> Please let me know what I am doing wrong. I am having the latest version of Dev-cpp - 4.9.9.0 . -- Karthik. __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
|
From: Noorez K. <coo...@ho...> - 2004-09-03 17:31:29
|
I am getting some very strange results with my program. The first error is
that the input on the marked line, shows up on the next input line but has
not been entered. I used getch() to fix that but what went wrong?
Next error. If I enter 'y' for the auto clear screen then the marked input
line acts as if there was an input on each round of the main loop. If the
answer was 'n' it only skips once.
I tried debugging but still nothing...
#include <iostream>
#include <cstdlib>
#include <direct.h>
#include <string>
#include <myfs.h>
#include <conio.h>
using namespace std;
using namespace myf;
int sYstem(bool clrs);
int main()
{
console_init();
cursor_position(15,10);
text_color(cGreen,cBlack);
cout << "WELCOME TO EASY TO USE DOS-PROMPT\n";
wait();
cls();
cout << "Easy to use dos-prompt!" << endl;
cout << "\nTo quit you can use any one of the following commands: " <<
endl
<< "quit, bye, exit" << endl << endl;
char ask;
do
{
cout << "Would you like to enter the system? [Y\\N] ";
text_color(cRed,cBlack);
ask = getche();
cout << endl;
text_color(cGreen, cBlack);
if(ask == 'y' || ask == 'Y')
{//main if
cout << "\nYou can also have the program Clear Screen automaticly"
<< " after each command.\n";
cout << "Is this Ok [Y\\N] ";
char clrs;
bool cLrs = FALSE;
text_color(cRed,cBlack);
clrs=getche(); //the character entered hear...
cout << endl;
text_color(cGreen,cBlack);
if(clrs == 'y' || clrs == 'Y')
{
cLrs = TRUE;
}
else if(clrs == 'n' || clrs == 'N')
{
cLrs = FALSE;
}
else
{
cout << "What...";
cout << "Default is set. No Clear Screen!\n";
cLrs = FALSE;
}
//return to main test
sYstem(cLrs);
wait();
return 0;
}
else if(ask == 'n' || ask == 'N')
{
cout << "Bye!" << endl;
wait();
cls();
return 0;
}
else
{
cout << "What....\n" << endl;
}
}while(ask != 'y' || ask != 'Y' || ask != 'n' || ask != 'N');
return 0;
}
//define the system function
int sYstem(bool clrs)
{
char* drv = new char;
cout << "\nEnter the name of the drive you want to go to: ";
text_color(cRed,cBlack);
cin.getline(drv,123); //comes out hear but enter key not pushed.
text_color(cGreen,cBlack);
strcat(drv,":\\");
chdir(drv);
cout << "Now in drive " << drv << endl;
cout << "You may type in commands" << endl;
wait();
cout << '\n';
strcat(drv,">");
char* coms;
while(1)
{
coms = new char;
if(coms == NULL)
{
cout << "No memory\n";
wait();
exit(1);
return 0;
}
cout << drv;
text_color(cRed,cBlack);
cin.getline(coms,124); //line is skipped if clear screen answer is y and
goes back to the top of the main loop.
text_color(cGreen,cBlack);
int comLen = strlen(coms);
if(coms[comLen-1]== ':')
{
delete drv;
drv = new char;
drv = coms;
chdir(coms);
strcat(drv,"\\>");
delete coms;
}
if( strcmp(coms,"exit")==0 || strcmp(coms,"bye")==0 ||
strcmp(coms,"quit")==0 )
{
if(clrs == TRUE)
{
cls();
}
return 0;
}
system(coms);
delete coms;
if(clrs == TRUE)
{
wait();
cls();
}
cout << endl;
}//while
}//end system def
_________________________________________________________________
Scan and help eliminate destructive viruses from your inbound and outbound
e-mail and attachments.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Gustavo L. <gl...@qa...> - 2004-09-03 13:12:29
|
There is a free version of glut: freeglut. It cames in a devpack so you can easily install and use it. You can download it from: (http://devpaks.org) |
|
From: Martin O. <li...@mi...> - 2004-09-03 07:21:48
|
The problem with that is that the latest GLUT (3.7.6) has a header file that works only with non-free products. Additionally I use -Wall and a few other such flags and in total there is about 1 page full of warnings. There is however only only fatal error in the latest glut.h (something about redefining some *CHAR* type. In general alot of .h files seem to give me strange errors in dev-cpp but they work out fine in MSVC. This makes be feel that dev-cpp is a bad product, and I would really like to change that because I prefer free software. regards, martin Scott Simontis wrote: > I too couldn't find the header. So I simply used the header that GLUT > comes with when you download it. > > --Scott Simontis-- > > > > Martin Olsson wrote: > >> Hi, >> >> >> I'm having difficult understand how to use GLUT from the dev-cpp >> platform. My first try was to download GLUT for win32, but I noticed >> that dev-cpp could not use the MSVC .lib file. I googled for awhile >> and then I learned about reimp.exe and I used to to get a proper .a >> file for dev-cpp. However, when I was about to copy the new .a file >> into the dev-cpp lib dir I noticed that it already had a libglut.a and >> also an existing copy of libglut32.a. I thought, strange, and so I >> reported this as a bug because there was no .h file only a file in the >> lib dir. Then I googled some more and I found a reference to freeglut >> which I thought was a great idea. Hence I arrived later at the >> freeGLUT homepage, here: >> >> http://www.nigels.com/glt/devpak/ >> >> Now it says "No longer needed, GLUT is now bundled with Dev-C++", but >> what does that mean? I'm really confused, if GLUT is indeed bundled >> with dev-cpp maybe one could add a GLUT project template right besides >> the OpenGL-project thing? That would simply ALOT for confused people >> like me! >> >> --- >> >> Finally, what is the best way for me to proceed? Is there a >> preinstalled GLUT library+header set somewhere on my computer (im >> using the latest dev-cpp as of today). Where can I find it, how can I >> use it? >> >> >> regards, >> martin >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >> _______________________________________________ >> Dev-cpp-users mailing list >> Dev...@li... >> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> > |
|
From: <lis...@ho...> - 2004-09-03 03:27:53
|
confirm 461041 _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn |
|
From: Scott S. <age...@co...> - 2004-09-02 20:29:09
|
I too couldn't find the header. So I simply used the header that GLUT comes with when you download it. --Scott Simontis-- Martin Olsson wrote: > Hi, > > > I'm having difficult understand how to use GLUT from the dev-cpp > platform. My first try was to download GLUT for win32, but I noticed > that dev-cpp could not use the MSVC .lib file. I googled for awhile > and then I learned about reimp.exe and I used to to get a proper .a > file for dev-cpp. However, when I was about to copy the new .a file > into the dev-cpp lib dir I noticed that it already had a libglut.a and > also an existing copy of libglut32.a. I thought, strange, and so I > reported this as a bug because there was no .h file only a file in the > lib dir. Then I googled some more and I found a reference to freeglut > which I thought was a great idea. Hence I arrived later at the > freeGLUT homepage, here: > > http://www.nigels.com/glt/devpak/ > > Now it says "No longer needed, GLUT is now bundled with Dev-C++", but > what does that mean? I'm really confused, if GLUT is indeed bundled > with dev-cpp maybe one could add a GLUT project template right besides > the OpenGL-project thing? That would simply ALOT for confused people > like me! > > --- > > Finally, what is the best way for me to proceed? Is there a > preinstalled GLUT library+header set somewhere on my computer (im > using the latest dev-cpp as of today). Where can I find it, how can I > use it? > > > regards, > martin > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Martin O. <li...@mi...> - 2004-09-02 18:53:42
|
Hi, I'm having difficult understand how to use GLUT from the dev-cpp platform. My first try was to download GLUT for win32, but I noticed that dev-cpp could not use the MSVC .lib file. I googled for awhile and then I learned about reimp.exe and I used to to get a proper .a file for dev-cpp. However, when I was about to copy the new .a file into the dev-cpp lib dir I noticed that it already had a libglut.a and also an existing copy of libglut32.a. I thought, strange, and so I reported this as a bug because there was no .h file only a file in the lib dir. Then I googled some more and I found a reference to freeglut which I thought was a great idea. Hence I arrived later at the freeGLUT homepage, here: http://www.nigels.com/glt/devpak/ Now it says "No longer needed, GLUT is now bundled with Dev-C++", but what does that mean? I'm really confused, if GLUT is indeed bundled with dev-cpp maybe one could add a GLUT project template right besides the OpenGL-project thing? That would simply ALOT for confused people like me! --- Finally, what is the best way for me to proceed? Is there a preinstalled GLUT library+header set somewhere on my computer (im using the latest dev-cpp as of today). Where can I find it, how can I use it? regards, martin |
|
From: Per W. <pw...@ia...> - 2004-09-02 08:00:33
|
Have a look at Makefile.win - or the compiler output tab when building a project - and you will see the command used for compiling the resource file. It is using the windres.exe program that is supplied with the compiler. /Per W On Thu, 2 Sep 2004, amaury pouly wrote: > Hello, > I wanted you that Dev-Cpp is a great software I hope you will continue to improve it . > I also wanted to know one thing : how does Dev-Cpp transform the .rc files into .res : is there any exe file avalaible for that from microsoft or does Dev-Cpp parse and write the .res file alone ? |
|
From: amaury p. <ama...@wa...> - 2004-09-02 07:36:57
|
Hello, I wanted you that Dev-Cpp is a great software I hope you will continue = to improve it . I also wanted to know one thing : how does Dev-Cpp transform the .rc = files into .res : is there any exe file avalaible for that from = microsoft or does Dev-Cpp parse and write the .res file alone ? |
|
From: Andre M. B. <ab...@cp...> - 2004-09-02 02:53:56
|
Dear Users,
I=B4m having some (serious) difficulties to get a specific documentati=
on and=20
a specific tool. Here they are:
-A free "downloadable" e-book for developing windows device drivers
for XP;
-A free "downloadable" tool for develop a windows device driver
for XP, like "DDK Suite 3" or "Windriver"; OR
-A free "downloadable" e-book for developing windows device drivers
for XP from zero (not being necessary the tool mentioned above);
=20
Please guys, if you know, pass me the links or if you know "who knows"
(another list), pass me too! I=B4ll thank you a lot!!!
Regards
Andre
|
|
From: Per W. <pw...@ia...> - 2004-09-01 20:50:11
|
About playing a bit with project settings etc. Am I the only one who use
to add extra rules to the Makefiles?
I always add 'include pwm.mak' to the Makefile.win, where this file
contains (among other things):
depend:
$(CPP) -M $(CXXFLAGS) $(OBJ)
include .depend
This allows me to use Makefile.win externally or with "fast but imperfekt
dependancies" in Dev-C++ and just manually run 'make depend' when I know
that I have added more #includes to some source file. It also makes sure
that changes to system include files (<>) results in recompilation.
When running with large projects, running without "fast but imperfect
dependency generation" takes very long time while the files are scanned
before compilation, and having it checked regularly produces strage errors
when too few source files have been recompiled.
/Per W
On Wed, 1 Sep 2004, Hielke wrote:
> AFAIK there is no way you could safely use usingstatements in your
> header files. So AVOID it (As you did mention by yourself it is not very
> kind to force users of your code to use namespaces they did not declare
> themselves)! Just try to be a somewhat less lazier :o).
> However there are neat ways using those in your member implementations.
> Personally I'd like to use internal header files for that purpose.
> Including an 'in-between-headerfile' from your source code which
> includes the actual classdefinition headerfile. My code organization
> then looks as follows:
>
> // member1.cc
> #include "classa.ih" // include internal header, note the "i"
>
> void Member1()
> {
> }
>
> // classa.ih
> #include "classa.h" // include actual definition header
>
> /* Includes, namespacedeclarations, etc. for your sourcefiles here*/
> using namespace blabla;
>
> // classa.h
> #ifndef _CLASSA_H_
> #define _CLASSA_H_
>
> class A
> {
> ...
> void Member1();
> };
>
> #endif
>
> This approach however has one big disadvantage. In IDE's such as Dev-CPP
> you have to include those files in the linking process manually since
> Dev-CPP doesn't recognize the ".ih" (or whatever you'd like to use for
> internal headers) extension.
>
> Regards,
> Hielke
>
>
> Siva Chandra wrote:
>
> >hello all,
> >
> >I have a question on using namespaces. Say I want to
> >build a class ClassA and put it in a namespace abc.
> >Then I would declare the class in a header file,
> >header1.h, like:
> >
> >#ifndef __HEADER1_H__
> >#define __HEADER1_H__
> >
> >namespace abc
> >{ // Start of namespace brace.
> >
> >class ClassA
> >{
> >...
> >};
> >
> >} // End of namespace brace.
> >
> >#endif // __HEADER1_H__
> >
> >Now I would like to include this header file in
> >another header file, header2.h. Here again I want to
> >declare a class ClassB under the same namespace abc.
> >This ClassB is inherited from ClassA. So to avoid
> >writing abc::ClassA everywhere I just say:
> >
> >using namespace abc;
> >
> >at the begining of the file. My file would be like:
> >
> >#ifndef __HEADER2_H__
> >#define __HEADER2_H__
> >
> >#include "header1.h"
> >
> >using namespace abc;
> >
> >namespace abc
> >{ // Start of namespace brace.
> >
> >class ClassB : public ClassA
> >{
> >...
> >};
> >
> >} // End of namespace brace.
> >
> >#endif // __HEADER2_H__
> >
> >My question is here: By explicitly putting a statement
> >like
> >
> >using namespace abc;
> >
> >I am including such a statement in all my code which
> >use this header file header2.h. Is there a way to
> >avoid such a thing from happening without losing the
> >functionality I want it to be there for? Or is it that
> >I am not using it in the right manner?
> >
> >Thanks a lot for having enough patience to read this
> >long,
> >
> >Siva Chandra.
> >
> >
> >
> >
> >_______________________________
> >Do you Yahoo!?
> >Win 1 of 4,000 free domain names from Yahoo! Enter now.
> >http://promotions.yahoo.com/goldrush
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by BEA Weblogic Workshop
> >FREE Java Enterprise J2EE developer tools!
> >Get your free copy of BEA WebLogic Workshop 8.1 today.
> >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Farzan H. <fh...@ya...> - 2004-09-01 16:24:45
|
Hi everyone, I want to know how I can make a lib file (e.g. mylibrary.lib) and how use it in my programs. Thanks, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Hielke <hie...@he...> - 2004-09-01 15:09:42
|
AFAIK there is no way you could safely use usingstatements in your
header files. So AVOID it (As you did mention by yourself it is not very
kind to force users of your code to use namespaces they did not declare
themselves)! Just try to be a somewhat less lazier :o).
However there are neat ways using those in your member implementations.
Personally I'd like to use internal header files for that purpose.
Including an 'in-between-headerfile' from your source code which
includes the actual classdefinition headerfile. My code organization
then looks as follows:
// member1.cc
#include "classa.ih" // include internal header, note the "i"
void Member1()
{
}
// classa.ih
#include "classa.h" // include actual definition header
/* Includes, namespacedeclarations, etc. for your sourcefiles here*/
using namespace blabla;
// classa.h
#ifndef _CLASSA_H_
#define _CLASSA_H_
class A
{
...
void Member1();
};
#endif
This approach however has one big disadvantage. In IDE's such as Dev-CPP
you have to include those files in the linking process manually since
Dev-CPP doesn't recognize the ".ih" (or whatever you'd like to use for
internal headers) extension.
Regards,
Hielke
Siva Chandra wrote:
>hello all,
>
>I have a question on using namespaces. Say I want to
>build a class ClassA and put it in a namespace abc.
>Then I would declare the class in a header file,
>header1.h, like:
>
>#ifndef __HEADER1_H__
>#define __HEADER1_H__
>
>namespace abc
>{ // Start of namespace brace.
>
>class ClassA
>{
>...
>};
>
>} // End of namespace brace.
>
>#endif // __HEADER1_H__
>
>Now I would like to include this header file in
>another header file, header2.h. Here again I want to
>declare a class ClassB under the same namespace abc.
>This ClassB is inherited from ClassA. So to avoid
>writing abc::ClassA everywhere I just say:
>
>using namespace abc;
>
>at the begining of the file. My file would be like:
>
>#ifndef __HEADER2_H__
>#define __HEADER2_H__
>
>#include "header1.h"
>
>using namespace abc;
>
>namespace abc
>{ // Start of namespace brace.
>
>class ClassB : public ClassA
>{
>...
>};
>
>} // End of namespace brace.
>
>#endif // __HEADER2_H__
>
>My question is here: By explicitly putting a statement
>like
>
>using namespace abc;
>
>I am including such a statement in all my code which
>use this header file header2.h. Is there a way to
>avoid such a thing from happening without losing the
>functionality I want it to be there for? Or is it that
>I am not using it in the right manner?
>
>Thanks a lot for having enough patience to read this
>long,
>
>Siva Chandra.
>
>
>
>
>_______________________________
>Do you Yahoo!?
>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>http://promotions.yahoo.com/goldrush
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Siva C. <siv...@ya...> - 2004-09-01 14:52:13
|
hello,
Thanks a lot to Hielke. ( how do you pronounce it? :)
)
I prefer that Dev-C++ does all my project file
management. So I guess I should try to be less lazier.
Your way of using "internal headers" is cool though.
Siva Chandra
--- Hielke <hie...@he...> wrote:
> AFAIK there is no way you could safely use
> usingstatements in your
> header files. So AVOID it (As you did mention by
> yourself it is not very
> kind to force users of your code to use namespaces
> they did not declare
> themselves)! Just try to be a somewhat less lazier
> :o).
> However there are neat ways using those in your
> member implementations.
> Personally I'd like to use internal header files for
> that purpose.
> Including an 'in-between-headerfile' from your
> source code which
> includes the actual classdefinition headerfile. My
> code organization
> then looks as follows:
>
> // member1.cc
> #include "classa.ih" // include internal header,
> note the "i"
>
> void Member1()
> {
> }
>
> // classa.ih
> #include "classa.h" // include actual definition
> header
>
> /* Includes, namespacedeclarations, etc. for your
> sourcefiles here*/
> using namespace blabla;
>
> // classa.h
> #ifndef _CLASSA_H_
> #define _CLASSA_H_
>
> class A
> {
> ...
> void Member1();
> };
>
> #endif
>
> This approach however has one big disadvantage. In
> IDE's such as Dev-CPP
> you have to include those files in the linking
> process manually since
> Dev-CPP doesn't recognize the ".ih" (or whatever
> you'd like to use for
> internal headers) extension.
>
> Regards,
> Hielke
>
>
> Siva Chandra wrote:
>
> >hello all,
> >
> >I have a question on using namespaces. Say I want
> to
> >build a class ClassA and put it in a namespace abc.
> >Then I would declare the class in a header file,
> >header1.h, like:
> >
> >#ifndef __HEADER1_H__
> >#define __HEADER1_H__
> >
> >namespace abc
> >{ // Start of namespace brace.
> >
> >class ClassA
> >{
> >...
> >};
> >
> >} // End of namespace brace.
> >
> >#endif // __HEADER1_H__
> >
> >Now I would like to include this header file in
> >another header file, header2.h. Here again I want
> to
> >declare a class ClassB under the same namespace
> abc.
> >This ClassB is inherited from ClassA. So to avoid
> >writing abc::ClassA everywhere I just say:
> >
> >using namespace abc;
> >
> >at the begining of the file. My file would be like:
> >
> >#ifndef __HEADER2_H__
> >#define __HEADER2_H__
> >
> >#include "header1.h"
> >
> >using namespace abc;
> >
> >namespace abc
> >{ // Start of namespace brace.
> >
> >class ClassB : public ClassA
> >{
> >...
> >};
> >
> >} // End of namespace brace.
> >
> >#endif // __HEADER2_H__
> >
> >My question is here: By explicitly putting a
> statement
> >like
> >
> >using namespace abc;
> >
> >I am including such a statement in all my code
> which
> >use this header file header2.h. Is there a way to
> >avoid such a thing from happening without losing
> the
> >functionality I want it to be there for? Or is it
> that
> >I am not using it in the right manner?
> >
> >Thanks a lot for having enough patience to read
> this
> >long,
> >
> >Siva Chandra.
> >
> >
> >
> >
> >_______________________________
> >Do you Yahoo!?
> >Win 1 of 4,000 free domain names from Yahoo! Enter
> now.
> >http://promotions.yahoo.com/goldrush
> >
> >
>
>-------------------------------------------------------
> >This SF.Net email is sponsored by BEA Weblogic
> Workshop
> >FREE Java Enterprise J2EE developer tools!
> >Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE:
> http://www23.brinkster.com/noicys/devcpp/ub.htm
>
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> >
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
|
|
From: nornagon <nor...@gm...> - 2004-09-01 11:53:58
|
I recently downloaded Dev-Cpp 5. The only things I've fiddled with are lib and include paths, for using SDL and OpenGL. When I've edited a project a bit, the compile buttons all grey out. What gives? Thanks in advance. -- - nornagon http://www.nornrock.com |
|
From: Scott S. <age...@co...> - 2004-09-01 11:33:20
|
I know the config files are kept in the Application Data folder of Windows. Do a search for devcpp.ini. However, I do not know your other problems. Len Philpot wrote: >I'm running Dev-C++ 4.9.9.0 and somehow, my classes toolbar moved to >the top row and off the right side of the screen. Despite having drug >it back to the left side of the screen now, all I can see is part of >the left combo box (only). I can't even see its open button and the >righthand box is not there at all. It's as if the control has just >been truncated less than halfway along its length. Hiding and >reshowing it doesn't fix it. > >How can I get it back? Is there a way to simply reset defaults for >the toolbars without undoing all the other changes I've made? > >On a related topic, where is the configuration information kept? I've >found nothing in the registry, nor any ini files, but it sure would >be nice to have when keeping two systems in sync (e.g., desktop and >laptop). > >...and as long as I'm asking... :-) >Is there a way to assign a key to toggle tab/space visibility? I know >where to change it in the editor options, and where to set other >hotkeys, but I don't see anything for it there. > >Thanks. > > > |
|
From: Siva C. <siv...@ya...> - 2004-09-01 04:47:46
|
hello all,
I have a question on using namespaces. Say I want to
build a class ClassA and put it in a namespace abc.
Then I would declare the class in a header file,
header1.h, like:
#ifndef __HEADER1_H__
#define __HEADER1_H__
namespace abc
{ // Start of namespace brace.
class ClassA
{
...
};
} // End of namespace brace.
#endif // __HEADER1_H__
Now I would like to include this header file in
another header file, header2.h. Here again I want to
declare a class ClassB under the same namespace abc.
This ClassB is inherited from ClassA. So to avoid
writing abc::ClassA everywhere I just say:
using namespace abc;
at the begining of the file. My file would be like:
#ifndef __HEADER2_H__
#define __HEADER2_H__
#include "header1.h"
using namespace abc;
namespace abc
{ // Start of namespace brace.
class ClassB : public ClassA
{
...
};
} // End of namespace brace.
#endif // __HEADER2_H__
My question is here: By explicitly putting a statement
like
using namespace abc;
I am including such a statement in all my code which
use this header file header2.h. Is there a way to
avoid such a thing from happening without losing the
functionality I want it to be there for? Or is it that
I am not using it in the right manner?
Thanks a lot for having enough patience to read this
long,
Siva Chandra.
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
|