Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


DirectAudio wrapper problem

This topic is 6038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:
int LoadFile(WCHAR Filename[MAX_PATH]);
And the function is implemented as:
CDAW::LoadFile(WCHAR filename[MAX_PATH])
	if (FAILED(Loader->LoadObjectFromFile(
		MessageBox(NULL, "DA LoadFile() Failed", "damn", MB_OK);
	return (TRUE);
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!

Share this post

Link to post
Share on other sites
When I do that, I get the following error message:

error C2664: ''LoadFile'' : cannot convert parameter 1 from ''char [15]'' to ''unsigned short *''

Do i have to type cast Filename to an unsigned short pointer?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!