470,848 Members | 1,830 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Cannot Convert Parameter Error...Please Help

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
1 2840
9,065 Expert Mod 8TB
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.

Similar topics

5 posts views Thread by Brad Moore | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.