Original Post
I have a member functoin in my class wrapper called "LoadFile()" in order to wrap the loader->LoadObjectFromFile function. The problem is i''m not quite sure of the syntax nessecary. the declaration is:
And the function is implemented as:
but it doesn''t work...im not quite sure what to pass to the function in order to get it to work properly, any help would be greatly appreciated, thanks!
int LoadFile(WCHAR Filename[MAX_PATH]);
CDAW::LoadFile(WCHAR filename[MAX_PATH])
{
if (FAILED(Loader->LoadObjectFromFile(
CLSID_DirectMusicSegment,
IID_IDirectMusicSegment8,
filename,
(LPVOID*)&Segment
)))
{
MessageBox(NULL, "DA LoadFile() Failed", "damn", MB_OK);
}
return (TRUE);
}