dev-cpp-users Mailing List for Dev-C++ (Page 106)
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: Tatu G. <tat...@ni...> - 2005-09-24 17:02:59
|
AXLCCUVMP= V maeIelAe= rI bnvAltLro= A iaiLerIipG= extIbaUdeR n raSrexmMia= ciaA $1 $3$3 21 .75 = 33 http://www.washoseve.com maid, that Berlioz was not home, and that if the = visitor wished to see cloud was underlit with gold, that his truck had = stopped, caught in a column |
|
From: Omar B. <oba...@gm...> - 2005-09-23 15:24:50
|
Hello, I was debbugging an application when noticed this (which IMO is one) bug: In summary, when you set a breakpoint in a line n, and after that you edit some code before that line adding new lines the breakpoint toggled before stays in the same line number (line n), not mattering if the actual statmen= t that was at line n before editing the file moved to other line. Although it clearly seems to be an expected behaviour in the editor I *think* it should not work that way no?, isnt the expected behaviour for th= e breakpoint to move with the statement? cheers, Omar. -- Omar Baqueiro Espinosa Computer Systems Engineer Home: www.csc.liv.ac.uk/~omar/ <http://www.csc.liv.ac.uk/~omar/> Calendar: calendar.yahoo.com/obaqueiro <http://calendar.yahoo.com/obaqueiro= > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html<http://www.csc.liv.ac.uk/~omar/pgp.html> _____ |
|
From:
<ind...@gm...> - 2005-09-23 14:41:57
|
Dear Bhadram,
I am writing to you in response to your mail to the Dev-C++ user list.
> Dear friends,
> I'd problem in vc++. The problem is i want to call the static
> method of a class in another header file. But if im calling it is giving
> linking error
> error LNK2001: unresolved external symbol
> [...] (rest of mail left out because of its longitude)
the problem you encountered is due to the fact that in this case, the
_word_map member of the class UserQuery is just the declaration, not the
definition.
The solution to that would be to create a new file, UserQuery.cpp, and
include following lines:
UserQuery.cpp:
#include "UserQuery.h"
map<string,vector<Location>*,less<string> >* UserQuery::_word_map = 0;
You could even leave out the '= 0', the only important thing is that
the symbol _word_map is DEFINED in a COMPILATION MODULE (which a
header file is not).
Hope that helps,
Yours,
David.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.5/110 - Release Date: 22.09.2005
|
|
From: Leon W. <le...@dw...> - 2005-09-20 22:41:55
|
PACVXCVMU= L rmIAaeIele obALnlArtv piLIaeGiri eeIUxbRda= t cianSM rexAia= mra $1$3 $3 = 21.75 .33 = http://www.someseoul.com Ah, you scoundrel, Woland said pensively. stroke my = forehead. |
|
From: Alfred P. R. <al...@ya...> - 2005-09-20 21:11:33
|
Hi BR,
I've a similar problem developing a plug-in for GIMP. Though it produces an executable, the executable is not standalone and must be called through GIMP. Hence, I can use gdb, but with a slight modification to the code to allow for attachment through gdb once the plug-in is active.
In the h file, I place the following:
static gboolean d_l = true; // Debug loop exit test flag.
static gint32 d_v = 0x55AA55AA; // Dummy variable to allow the debug routine something to do.
Then in my main code I place the following:
// Debug wait here.
#ifdef DEBUG
do {
shapefs.d_c();
} while (d_l == true); // Make this variable false to continue with program flow.
#endif
Then I create a procedure called d_c():
void GIMP_SFS::d_c (void)
{ /* If DEBUG is defined, will loop in this function forever until attached by
the debugger and the value d_l set to false.
*/
d_v = ~d_v; // Just something to do.
}
I start the debugger and place a breakpoint at GIMP_SFS::d_c. When the plug-in starts, it is stuck executing the do loop. I then use the gdb attach command to attach the PID of the plug-in. Continuing with the gdb c command, it stops at the first breakpoint at GIMP_SFS::d_c. Then I execute the set command: s d_l=0, then continue the application, using appropriate breakpoints as necessary.
This may not answer your question correctly, but shows an alternative method to debugging an otherwise undebugable program.
event <eve...@gm...> wrote:
Hello,
my build process do not produce Windows-executable, but i want to
debug it :). I use alternative debugger which is modified gdb, thus
all the features are supported but run command differs. So i want ot
override debugger run command. I call debugger now through Tools but
it isn't so good.
Thank you for help
--
BR,
event
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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
Alfred P. Reaud
|
|
From: Richard M. <mu...@cs...> - 2005-09-20 14:10:51
|
This is straightforward C++. The base class pointers can only accesses those functions defined in the base class. If you want to access stuff unique to specific type of employee you'll have to make sure those pointers are, indeed, to that kind of object. Which you can't know ahead of time if all you have is a pointer to the base class. Getting those pointers is another issue. You can always do one of the various casts, in your case a dynamic_cast is probably the right thing, but this is chancy. The trick is to design your employee base class so that everything you need to do in terms of interface is defined in the base class. Dick Munroe >Message: 1 >To: dev...@li... >From: Dane Ensign <dg...@wo...> >Date: Mon, 19 Sep 2005 20:38:42 -0600 >Subject: [Dev-C++] accessing derived class methods > >Hi all, > >I have a simple base class and a few derived classes from it. My goal >is to build an array of pointers where I can assign derived class >objects into, then access the different derived class attributes >as needed. > >So I have an employee class. I derive a laborer, scientist, and >manager class from it. I build some basic virtual functions in the >employee class, and each derived class >has a couple of specific attributes that I want to call, like >getSpecificData(). > >I made an array of base class pointers then tried accessing the >derived class methods, but it doesnt work. I made an array of void* >pointers and tried to access derived class methods and that doesnt work. > >I realize that I could build a pure virtual function in the base >class that would only be used to access derived class atrributes, but >that is silly. Please can someone point* me in the right direction? > >Thanks for any help you can offer. > >Best regards, > >Dane >da...@de... > > > > > >--__--__-- > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > >End of Dev-cpp-users Digest > > > > |
|
From: Dane E. <dg...@wo...> - 2005-09-20 13:18:02
|
Per, Your comments are encouraging. I will read up on dynamic_cast<type> (object). Thank you. Dane Begin forwarded message: > There are solutions to everything. The problem is just to know when > the > solution should be used, and when a program should be written in a > different way. > > using dynamic_cast<type>(object) you can type-safely convert from a > base > class pointer to a pointer for a derived object. If the object isn't a > derived class, then you will get a NULL pointer instead. > > /Per W > > On Mon, 19 Sep 2005, Dane Ensign wrote: > > >> Neeraj, >> >> Thanks for the input. I was afraid of that. I suppose this holds true >> always. I was hoping that a nested class with some friend >> declarations might provide a solution but >> I accept defeat. >> >> Thanks for clearing things up. >> >> Dane >> >> Begin forwarded message: >> >> >>> Dane, >>> >>> Ideally what you are doing should work the only care which >>> must be >>> taken is that the base class pointers must point to correct derived >>> class objects and second is that you can't access any function in >>> derived class which is not defined as virtual in base class. >>> I mean if getSpecificData() is not defined as virtual in base you >>> can >>> not a derived version of call it using base class pointer. >>> >>> Regards >>> Neeraj >>> >>> -----Original Message----- >>> From: dev...@li... >>> [mailto:dev...@li...] On Behalf Of Dane >>> Ensign >>> Sent: Tuesday, September 20, 2005 8:09 AM >>> To: dev...@li... >>> Subject: [Dev-C++] accessing derived class methods >>> >>> Hi all, >>> >>> I have a simple base class and a few derived classes from it. My >>> goal >>> is to build an array of pointers where I can assign derived class >>> objects into, then access the different derived class attributes >>> as needed. >>> >>> So I have an employee class. I derive a laborer, scientist, and >>> manager class from it. I build some basic virtual functions in the >>> employee class, and each derived class >>> has a couple of specific attributes that I want to call, like >>> getSpecificData(). >>> >>> I made an array of base class pointers then tried accessing the >>> derived class methods, but it doesnt work. I made an array of void* >>> pointers and tried to access derived class methods and that doesnt >>> work. >>> >>> I realize that I could build a pure virtual function in the base >>> class that would only be used to access derived class atrributes, >>> but >>> that is silly. Please can someone point* me in the right direction? >>> >>> Thanks for any help you can offer. >>> >>> Best regards, >>> >>> Dane >>> da...@de... >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very >>> own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>> geronimo.php >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >> >> Dane >> da...@de... >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App >> Server. Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> 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 >> >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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 > > > Dane da...@de... |
|
From: bhadram r. <bha...@ya...> - 2005-09-20 12:51:47
|
Dear friends,
I'd problem in vc++. The problem is i want to call the static method of a class in another header file. But if im calling it is giving linking error
error LNK2001: unresolved external symbol
The program is as under. I want to call the static word_map method of UserQuery class present in UserQuery.h file from TextQuery class present in TextQuery.h header file. But it is giving linking error.I also tried including UserQuery. h in TextQuery header file, but it is saying redeclaration.How to solve the problem. Please help me.
Thanking you,
yours sincerely,
bhadram
UserQuery.h
# include <iostream>
# include <vector>
# include <map>
# include <stack>
# include <string>
using namespace std;
typedef pair<short,short> Location;
class UserQuery
{
private:
vector<string>* _query;
enum QueryType{WORD=1,AND,OR,NOT,RPAREN,LPAREN};
QueryType evalQueryString(const string& query);
void evalWord(const string&);
public:
static map<string,vector<Location>*,less<string> >* _word_map;
void query(vector<string>* pq);
void eval_query();
static void word_map(map<string,vector<Location>*,less<string> >* wm)
{
_word_map=wm;
}
};
void UserQuery::evalWord(const string& query)
{
cout<<"user query"<<query;
/*NameQuery *pq;
vector<Location> *ploc;
if(!_word_map->count(query))
{
pq=new NameQuery(query);
}
else
{
ploc=(*_word_map)[query];
pq=new NameQuery(query,*ploc);
}*/
//pq.display();
}
inline void UserQuery::query(vector<string>* pq)
{
_query=pq;
eval_query();
}
inline void UserQuery::eval_query()
{
vector<string>::iterator it=_query->begin(),it_end=_query->end();
for(;it!=it_end;it++)
{
QueryType qt=evalQueryString(*it);
switch( qt)
{
case WORD:
evalWord( *it );
break;
case AND:
//evalAnd();
break;
case OR:
//evalOr();
break;
case NOT:
//evalNot();
break;
case LPAREN:
//++_paren;
//++_lparenOn;
break;
case RPAREN:
//--_paren;
//++_rparenOn;
//evalRParen();
break;
}
}
}
UserQuery::QueryType
UserQuery::
evalQueryString( const string &query )
{
if ( query == "&&" )
return AND;
if ( query == "||" )
return OR;
if ( query == "!" )
return NOT;
if ( query == "(" )
return LPAREN;
if ( query == ")" )
return RPAREN;
return WORD;
}
TextQuery.h file:
# include <UserQuery.h>
# include <iostream>
# include <fstream>
# include <vector>
# include <map>
# include <set>
# include <string>
using namespace std;
typedef vector<string> vecString;
typedef pair<short,short> Location;
typedef pair<vecString*,vector<Location>* > Locations;
class TextQuery
{
private:
vector<string>* lines_of_text;
Locations* word_locations;
map<string,vector<Location>*,less<string> >* word_map;
void retreive_text();
void seperate_words();
void filter_text();
void strip_caps();
void suffix_text();
void suffix_s(string&);
void build_word_map();
public:
void build_up_text()
{
retreive_text();
seperate_words();
filter_text();
strip_caps();
suffix_text();
build_word_map();
}
void display_word_map();
void query_text();
void init_query_statics();
};
inline void TextQuery::init_query_statics()
{
UserQuery::word_map(word_map);
}
cpp file:
# include <TextQuery.h>
int main()
{
TextQuery tq;
tq.build_up_text();
tq.query_text();
//tq.display_word_map();
return 0;
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
From: event <eve...@gm...> - 2005-09-20 08:56:50
|
Hello, my build process do not produce Windows-executable, but i want to debug it :). I use alternative debugger which is modified gdb, thus all the features are supported but run command differs. So i want ot override debugger run command. I call debugger now through Tools but it isn't so good. Thank you for help --=20 BR, event |
|
From: Per W. <pw...@ia...> - 2005-09-20 04:28:36
|
There are solutions to everything. The problem is just to know when the solution should be used, and when a program should be written in a different way. using dynamic_cast<type>(object) you can type-safely convert from a base class pointer to a pointer for a derived object. If the object isn't a derived class, then you will get a NULL pointer instead. /Per W On Mon, 19 Sep 2005, Dane Ensign wrote: > Neeraj, > > Thanks for the input. I was afraid of that. I suppose this holds true > always. I was hoping that a nested class with some friend > declarations might provide a solution but > I accept defeat. > > Thanks for clearing things up. > > Dane > > Begin forwarded message: > > > Dane, > > > > Ideally what you are doing should work the only care which must be > > taken is that the base class pointers must point to correct derived > > class objects and second is that you can't access any function in > > derived class which is not defined as virtual in base class. > > I mean if getSpecificData() is not defined as virtual in base you can > > not a derived version of call it using base class pointer. > > > > Regards > > Neeraj > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf Of Dane > > Ensign > > Sent: Tuesday, September 20, 2005 8:09 AM > > To: dev...@li... > > Subject: [Dev-C++] accessing derived class methods > > > > Hi all, > > > > I have a simple base class and a few derived classes from it. My goal > > is to build an array of pointers where I can assign derived class > > objects into, then access the different derived class attributes > > as needed. > > > > So I have an employee class. I derive a laborer, scientist, and > > manager class from it. I build some basic virtual functions in the > > employee class, and each derived class > > has a couple of specific attributes that I want to call, like > > getSpecificData(). > > > > I made an array of base class pointers then tried accessing the > > derived class methods, but it doesnt work. I made an array of void* > > pointers and tried to access derived class methods and that doesnt > > work. > > > > I realize that I could build a pure virtual function in the base > > class that would only be used to access derived class atrributes, but > > that is silly. Please can someone point* me in the right direction? > > > > Thanks for any help you can offer. > > > > Best regards, > > > > Dane > > da...@de... > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. > > Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > 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 > > > > > > > > Dane > da...@de... > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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: Dane E. <dg...@wo...> - 2005-09-20 04:17:22
|
Neeraj, Thanks for the input. I was afraid of that. I suppose this holds true always. I was hoping that a nested class with some friend declarations might provide a solution but I accept defeat. Thanks for clearing things up. Dane Begin forwarded message: > Dane, > > Ideally what you are doing should work the only care which must be > taken is that the base class pointers must point to correct derived > class objects and second is that you can't access any function in > derived class which is not defined as virtual in base class. > I mean if getSpecificData() is not defined as virtual in base you can > not a derived version of call it using base class pointer. > > Regards > Neeraj > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Dane > Ensign > Sent: Tuesday, September 20, 2005 8:09 AM > To: dev...@li... > Subject: [Dev-C++] accessing derived class methods > > Hi all, > > I have a simple base class and a few derived classes from it. My goal > is to build an array of pointers where I can assign derived class > objects into, then access the different derived class attributes > as needed. > > So I have an employee class. I derive a laborer, scientist, and > manager class from it. I build some basic virtual functions in the > employee class, and each derived class > has a couple of specific attributes that I want to call, like > getSpecificData(). > > I made an array of base class pointers then tried accessing the > derived class methods, but it doesnt work. I made an array of void* > pointers and tried to access derived class methods and that doesnt > work. > > I realize that I could build a pure virtual function in the base > class that would only be used to access derived class atrributes, but > that is silly. Please can someone point* me in the right direction? > > Thanks for any help you can offer. > > Best regards, > > Dane > da...@de... > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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 > > > Dane da...@de... |
|
From: Dane E. <dg...@wo...> - 2005-09-20 02:38:52
|
Hi all, I have a simple base class and a few derived classes from it. My goal is to build an array of pointers where I can assign derived class objects into, then access the different derived class attributes as needed. So I have an employee class. I derive a laborer, scientist, and manager class from it. I build some basic virtual functions in the employee class, and each derived class has a couple of specific attributes that I want to call, like getSpecificData(). I made an array of base class pointers then tried accessing the derived class methods, but it doesnt work. I made an array of void* pointers and tried to access derived class methods and that doesnt work. I realize that I could build a pure virtual function in the base class that would only be used to access derived class atrributes, but that is silly. Please can someone point* me in the right direction? Thanks for any help you can offer. Best regards, Dane da...@de... |
|
From: Hind F. <the...@ho...> - 2005-09-17 20:39:58
|
OpenGl libraries gl, glu and glext are included in dev-cpp, but you will necessary need to install glut if your program use it. Try the project example included in dev-cpp OpenGl to be sure. _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp |
|
From: Juan C. R. <jua...@gm...> - 2005-09-17 14:58:48
|
Hi! I'm a real newbie looking for help on how to install or work with OpenGL= =20 under DevCpp. I wan to run a program but offcourse, it doesn't recognize GL= =20 statements. Please help me with a step by step instruction jua...@gm... |
|
From: bhadram r. <bha...@ya...> - 2005-09-17 14:24:41
|
dear friends,
The following code is giving error like it cannot find the << convertor for vector<string,allocator<string> > object how to solve this problem. Please help me.
Thanking you,
yours sincerely,
bhadram
# pragma warning(disable:4786)
# include <textquery2.h>
using namespace bhadram2;
int main()
{
TextQuery* tq=new TextQuery;
tq->retrieve_text();
tq->strip_lines();
tq->display_word_locations();
return 0;
}
# include <iostream>
# include <fstream>
# include <string>
# include <algorithm>
# include <vector>
# include <set>
# include <map>
using namespace std;
namespace bhadram2
{
typedef vector<string,allocator<string> > vecString;
typedef pair<short,short> Location;
typedef vector<Location,allocator<Location> > Locations;
typedef pair<vecString*,Locations*> WordLocations;
class TextQuery
{
private:
vector<string>* lines_of_text;
WordLocations* wordLocations;
public:
retrieve_text();
display_lines_of_text();
strip_lines();
display_word_locations();
};
TextQuery::display_word_locations()
{
vector<string,allocator<string> >* words=wordLocations->first;
Locations* locations=wordLocations->second;
vector<string,allocator<string> >::iterator iter=words->begin();
while(iter!=words->end())
{
cout<<(*words)<<endl;
iter++;
}
}
TextQuery::strip_lines()
{
vector<string,allocator<string> >* words=new vector<string>;
vector<Location,allocator<Location> >* locations=new vector<Location>;
vector<string,allocator<string> >::iterator iter=lines_of_text->begin();
while(iter!=lines_of_text->end())
{
short line_no=0;
string::size_type pos=0,prev_pos=0;
line_no++;
string textline=(*iter);
cout<<textline;
iter++;
short word_cnt=0;
string word;
while((pos=textline.find_first_of(' ',prev_pos))!=string::npos)
{
word_cnt++;
word=textline.substr(prev_pos,pos-prev_pos);
words->push_back(word);
locations->push_back(make_pair(line_no,word_cnt));
pos++;
prev_pos=pos;
}
words->push_back(word);
word_cnt++;
locations->push_back(make_pair(line_no,word_cnt));
}
wordLocations=new WordLocations(words,locations);
}
TextQuery::retrieve_text()
{
lines_of_text=new vector<string,allocator<string> >;
string file_name;
cout<<"enter the file name: ";
cin>>file_name;
fstream infile(file_name.c_str(),ios::in);
if(!infile)
cout<<"not file found"<<endl;
string textline;
while(getline(infile,textline,'\n'))
{
lines_of_text->push_back(textline);
}
}
TextQuery::display_lines_of_text()
{
vector<string,allocator<string> >::iterator iter=lines_of_text->begin();
while(iter!=lines_of_text->end())
{
cout<<(*iter)<<endl;
iter++;
}
}
};
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort. |
|
From: Alfred P. R. <al...@ya...> - 2005-09-16 20:02:53
|
Try downloading the source code for File_Cleaner at http://www.geocities.com/alreaud/FileCleaner/FileCleaner_1.0.1.3-20041209.zip This is an example of searching, opening, and writing/deleting files when you don't know the file names and some folder names to start. Use freely as it is distributed under the GNU-GPL Ver. 2 license. "Patel, Nilesh M" <Nil...@qu...> wrote: Curious to know if someone knows how to open a folder (abc folder) and then search for a particular file (xyz.txt file) in C++. I do know how use the I/O functionality for files in C++, but I am having difficulty with opening a folder. Any help would be most appreciated. Thanks. <snip> Alfred P. Reaud |
|
From: Jonas <so...@zi...> - 2005-09-16 19:56:38
|
EXPLOSIVE PICK FOR OUR MEMBERS. TRADING ALERT! Date: 16 Sep 2005 Company: Allixon International Corporation Trading Symbol: AXCP.PK Current Price: 4.25 Projection 5 to 7 Days: 6.50 - 8.50 Projection 8 to 12 Days: 9.00 - 12.00 ----- Press Release Source: Allixon International Inc. Allixon Awarded Contract to Develop the RFID-Based Access Control System and Strategic Materials Management System with the Ministry of Unification Friday September 16, 6:00 am ET SEOCHO-KU, SEOUL, Korea, Sept. 16, 2005 (PRIMEZONE) - Allixon International Corporation (Other OTC:AXCP.PK - News) is pleased to announce that it was selected by the Ministry of Information and Communication (MIC) to complete an RFID-based Access Control System and Strategic Materials Management System for the MIC's RFID business. In the spring of 2005, the National Computerization Agency (NCA) published RFP's for 5 projects to be completed by the following spring 2006. About Allixon International Corporation Allixon is a leading provider of RFID Middleware and Mobile Internet solutions for device computing. Allixon combines its products, expertise, partnerships and integration capability into solutions for a wide range of device computing applications, including RFID Middleware and m-banking solution. Allixon's products based on ubiquitous technologies direct companies looking to tap into the wealth of data captured by networked devices such as RFID readers or handhelds to extend the quality of information to any device where they want. ----- GET AXCP FIRST THING FRIDAY, THIS IS GOING TO EXPLODE IN THE NEXT 2-5 DAYS. |
|
From: Alfred P. R. <al...@ya...> - 2005-09-16 19:56:25
|
Hi Waseem, I come across this kind of problem all the time in my own applications. My solution to find the correct library to link is to use a text search application such as grep. Then I execute cd ~/dev-cpp/lib grep -i -r 'SQLAllocEnv' * (FINDSTR in DOS/Windows I believe). The results of this are pasted into the Project Options --> Parameters --> Linker window in the form: -lSQL_Library where SQL_Library is the correct library name, sans the extension. As example I am working on a GIMP plug-in. One of the required libraries is gimp-2.0.lib. It's entry in the Project Options --> Parameters --> Linker window is: -lgimp-2.0 Have a great weekend! Waseem Ahmad <was...@ya...> wrote: Dear Sir, I tried to comile a database program using ODBC API . During linking 'undefined reference to SQLAllocEnv' error occurs. This error occurs for each ODBC API functions. I am using sql.h, sqltypes.h and sqlext.h file with Dev-c++. Please suggest solution to this problem. W. Ahmad --------------------------------- Yahoo! India Matrimony: Find your partner now. Alfred P. Reaud |
|
From: Reid T. <Rei...@at...> - 2005-09-16 15:15:50
|
Patel, Nilesh M wrote: > Curious to know if someone knows how to open a folder (abc > folder) and then search for a particular file (xyz.txt file) in C++. >=20 > I do know how use the I/O functionality for files in C++, but > I am having difficulty with opening a folder. Any help would > be most appreciated. Thanks. >=20 > from http://www.informit.com/guides/content.asp?g=3Dcplusplus&seqNum=3D245&rl=3D= 1 Standard C++ doesn't have a library for manipulating directories. The closest thing you can get is Boost's filesystem library. However, most implementations nowadays support the quasi-standard <dirent.h> and <dir.h> libraries. These libraries, originally written in C, enable you to list the files in a directory, change the current directory, create a new directory and delete an existing directory. #include <errno.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> int main() { DIR *pdir; struct dirent *pent; pdir=3Dopendir("."); //"." refers to the current dir if (!pdir){ printf ("opendir() failure; terminating"); exit(1); } errno=3D0; while ((pent=3Dreaddir(pdir))){ printf("%s", pent->d_name); } if (errno){ printf ("readdir() failure; terminating"); exit(1); } closedir(pdir); } reid |
|
From: Patel, N. M <Nil...@qu...> - 2005-09-16 14:53:35
|
Curious to know if someone knows how to open a folder (abc folder) and then= = search for a particular file (xyz.txt file) in C++.=20 I do know how use the I/O functionality for files in C++, but I am having = difficulty with opening a folder. Any help would be most appreciated. = Thanks. -----Original Message----- =46rom: dev...@li... [mailto:dev...@li...]On Behalf Of dev...@li... Sent: Wednesday, September 14, 2005 11:19 PM To: dev...@li... Subject: Dev-cpp-users digest, Vol 1 #2553 - 2 msgs Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D The contents of this message, together with any attachments, are intended = only for the use of the person(s) to which they are addressed and may = contain confidential and/or privileged information. Further, any medical = information herein is confidential and protected by law. It is unlawful for= = unauthorized persons to use, review, copy, disclose, or disseminate = confidential medical information. If you are not the intended recipient, = immediately advise the sender and delete this message and any attachments. = Any distribution, or copying of this message, or any attachment, is = prohibited. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D |
|
From: Per W. <pw...@ia...> - 2005-09-16 10:55:52
|
The normal suggestion: Make sure that you are linking your application with the required library. Header files are just an index of available functions - just like the telephone catalog. They make the compiler happy. Next step is to make the linker happy. /Per W On Fri, 16 Sep 2005, Waseem Ahmad wrote: > Dear Sir, > > I tried to comile a database program using ODBC API . During linking 'undefined reference to SQLAllocEnv' error occurs. This error occurs for each ODBC API functions. > > I am using sql.h, sqltypes.h and sqlext.h file with Dev-c++. > > > Please suggest solution to this problem. > > > W. Ahmad > > > > --------------------------------- > Yahoo! India Matrimony: Find your partner now. |
|
From: Waseem A. <was...@ya...> - 2005-09-16 10:38:58
|
Dear Sir, I tried to comile a database program using ODBC API . During linking 'undefined reference to SQLAllocEnv' error occurs. This error occurs for each ODBC API functions. I am using sql.h, sqltypes.h and sqlext.h file with Dev-c++. Please suggest solution to this problem. W. Ahmad --------------------------------- Yahoo! India Matrimony: Find your partner now. |
|
From: Omar B. <oba...@gm...> - 2005-09-14 15:12:29
|
Hi, I had the same problem some time ago, do this and try to see if it=20 helps: Go to Project/Project Options Select the "Compiler" tab. in the tree list select "Linker" Notice the option "Generate debuggin information" and change the value to= =20 YES=20 click the OK button. Now go to Tools/Compiler Options Select the "Settings" tab Again select the Linker option in the tree Change the "Generate debbuging information to Yes. I hope that helps, I had the same problem and was as you looking around all= =20 the internet until I managed to get into there, sincerely I do not know why= =20 is the debbuging option turned off by default.=20 Cheers,=20 Omar. On 9/14/05, Richard Munroe <mu...@cs...> wrote: >=20 > I have a MinGW installation that works (make is there, builds programs,= =20 > etc.). I'm using MinGW Developer Studio and want to try Dev C++. I instal= led=20 > DC++, pointed the binary paths to where I had installed MinGW, no joy, th= e=20 > error continued. I tried putting MinGW in the PATH search list, still no= =20 > joy. I installed the full DC++ and now I could compile, but anytime I tri= ed=20 > to debug things, I was asked to switch setting to debug and do another=20 > compile, which didn't generate any compile information. >=20 > So clearly I'm doing something wrong, but I can't figure out what at this= =20 > point. >=20 > Dick Munroe >=20 > =20 --=20 Omar Baqueiro Espinosa Computer Systems Engineer Home: www.csc.liv.ac.uk/~omar/ <http://www.csc.liv.ac.uk/~omar/> Calendar: calendar.yahoo.com/obaqueiro <http://calendar.yahoo.com/obaqueiro= > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html<http://www.csc.liv.ac.uk/~omar/pgp.html> _____ |
|
From: Richard M. <mu...@cs...> - 2005-09-14 14:55:36
|
I have a MinGW installation that works (make is there, builds programs, etc.). I'm using MinGW Developer Studio and want to try Dev C++. I installed DC++, pointed the binary paths to where I had installed MinGW, no joy, the error continued. I tried putting MinGW in the PATH search list, still no joy. I installed the full DC++ and now I could compile, but anytime I tried to debug things, I was asked to switch setting to debug and do another compile, which didn't generate any compile information. So clearly I'm doing something wrong, but I can't figure out what at this point. Dick Munroe |
|
From: MARY J B. <mbe...@od...> - 2005-09-12 15:10:19
|
I had the same problem. I am also using the same version as you. |