By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

Cannot Convert Parameter Error...Please Help

P: 1
This is the function I'm getting the error on:

S32 GuiAviBitmapCtrl::fileOpen()
S32 rval;
if (!dStrcmp(mAviFilename,""))

rval = AVIFileOpen(&mPFile, mAviFilename, OF_SHARE_DENY_WRITE, 0);
if (rval)
return rval;

return MOVERR_OK;

and this is the error:
Error 132 error C2664: 'AVIFileOpenW' : cannot convert parameter 2 from 'StringTableEntry' to 'LPCWSTR'

Any help is appreciated.... thanks !
Jul 11 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
It is complaining because mAviFilename is of type StringTableEntry and AVIFileOpen is expecting type LPCWSTR (which is a pointer type). You will need to provide a converstion between the 2 types.

It is possible that if StringTableEntry is a class or structure that it has a member function that will convert the data and return the correct type for you.

A quick google suggests

Jul 12 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.