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.
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.