E
Elliott
Hello Everyone,
I have a function in a header (KeyDialog.h) as such:
void setKey(Key&);
The function implementation is as such (KeyDialog.cpp):
void KeyDialog::setKey(Key& k1)
{
Key::Key K1 = k1;
//unimportant
}
And I'm calling this function from another cpp file (mainwindow.cpp)
like so:
KeyDialog::setKey(enter);
When I compile I get the error: Cannot call member function 'void
KeyDialog::setKey(Key&)' without object...
This is probably stupidly simple, what am i missing?
I have a function in a header (KeyDialog.h) as such:
void setKey(Key&);
The function implementation is as such (KeyDialog.cpp):
void KeyDialog::setKey(Key& k1)
{
Key::Key K1 = k1;
//unimportant
}
And I'm calling this function from another cpp file (mainwindow.cpp)
like so:
KeyDialog::setKey(enter);
When I compile I get the error: Cannot call member function 'void
KeyDialog::setKey(Key&)' without object...
This is probably stupidly simple, what am i missing?