I have a file that looks like this:
namespace myName
{
typedef HRESULT (*PFN_HANDLE)(myName::myStruct);
class MyClass{
//...
public:
BOOL RegisterCallback (PFN_HANDLE foo);
//...
};
struct myStruct{
//...
};
}
But I am getting a compile error 'myStruct' is not a member of 'myName'. Can anyone tell me what is going on? It's okay to declare a struct in my header file, right? Is it a namespace issue? I'm sorry to be so dense.