This is driving me insane... as I said, I created a struct within a class and assigned values to them, I then passed that struct... well the pointer to another function:
//creating a new object
object object;
object.fileopen(&variables);
//creating a new object
object object;
object.fileopen(&variables);
To copy to clipboard, switch view to plain text mode
in the other .cpp file which contains the function of fileopen, here's the code that I have:
void FileManager::fileopen(struct properties *pointer)
{
//code
}
void FileManager::fileopen(struct properties *pointer)
{
//code
}
To copy to clipboard, switch view to plain text mode
However, I'm getting an error at compile:
extra qualification 'File Manager' on member function 'fileopen'
I included a function prototype in the header file for the filemanager.cpp file:
void FileManager::fileopen(struct properties *pointer);
What does this error mean? I checked the {} brackets, all seem to be in order. Either I'm using the pointers wrong or something else is happening which I don't understand... when I try to access the different members of my struct... they don't show up when I press ctrl+space, which suggests that the struct hasn't been passed properly...
pointer->someKindOfVariable doesn't seem to work i.e. when I type pointer-> and press ctrl+space, no suggestions pop up, I've got a feeling the problems are linked.
Bookmarks