Sign in to follow this  
Ymmyth

For help.

Recommended Posts

Hello!I'm using Visual Studio 2005, The function: HRESULT AllocateName( LPCTSTR Name, LPTSTR *pNewName ) The following line: hr = AllocateName(Name, &pFrame->Name);//error and the compile error is: error C2664: 'AllocateName' : cannot convert parameter 2 from 'LPSTR *__w64 ' to 'LPTSTR *' I do hard my try to repair it,but with failure.I need your help. Thank you... [Edited by - Ymmyth on December 12, 2006 4:31:33 AM]

Share this post


Link to post
Share on other sites
Read some before coding.
LPTSTR * is TCHAR**

class YourDamnFrame
{

...
char Name[256]; // delete this
BSTR Name; // add this;
TCHAR* Name; or this;


};

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this