468,458 Members | 1,783 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,458 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,""))
return MOVERR_NOVIDEOSTREAM;

rval = AVIFileOpen(&mPFile, mAviFilename, OF_SHARE_DENY_WRITE, 0);
if (rval)
{
fileClose();
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 2766
Banfa
9,051 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

mAviFilename.getString()
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
reply views Thread by NPC403 | last post: by
reply views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.