Hi I'm creating a project in MFC for the first time. In 'normal' C++ to call a function from class CWavHeader in the class CWavFile I would simply do this
#include "WavHeader.h"
class WavFile
{
....
....
CWavHeader header
}
Then in cpp file:
header.getSampleRate();
-----------------------------
but it won't let me and gives the following error:
error C2501: 'CWavHeader' : missing storage-class or type specifiers
I'm presuming that you can't do this in an MFC environment so how do I do it??
Thanks
#include "WavHeader.h"
class WavFile
{
....
....
CWavHeader header
}
Then in cpp file:
header.getSampleRate();
-----------------------------
but it won't let me and gives the following error:
error C2501: 'CWavHeader' : missing storage-class or type specifiers
I'm presuming that you can't do this in an MFC environment so how do I do it??
Thanks