Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kdeveop giving me problems

Status
Not open for further replies.

Flappy

Programmer
Jul 30, 2002
35
AU
Hi,

I've written a key generator program in C++ with VI and it compiles no problems at all with g++. The program has a class within it called "Encrypt".

Within KDevelop I created a nice little GUI to control the program instead of having to go to the shell to execute it. Within the source code that KDevelop created I am trying to add a property to its class definition, eg.:

class KeyEncrypter : public keyencryptergui {
Q_OBJECT
public:
KeyEncrypter(QWidget* parent=0, const char *name=0);
~KeyEncrypter();
Encrypt key;
};

so I can access its methods by calling key.encrypt(...) etc..

the only problem is when i go to build it, kdevelop comes up with the error:

'Encrypt' is used as a type, but is not defined as a type.


What am I doing wrong?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top