![]() |
| ||
| error C2664: 'setStartupDirectory' : cannot convert parameter Hi I have a virtual function setStartupDirectory() virtual bool setStartupDirectory(const SysString &sStartupDirectory) = 0; When I am calling this function setStartupDirectory((const SysString &)m_pApplicationFolderNarrow); I am getting this error Error 2 error C2664: 'setStartupDirectory' : cannot convert parameter 1 from 'const SysString' to 'const SysString &' Am I missing something |
| ||
| Re: error C2664: 'setStartupDirectory' : cannot convert parameter Here.. virtual void CSample1::Sample(SysString str) |
| ||
| Re: error C2664: 'setStartupDirectory' : cannot convert parameter Hi I have a function bool setStartupDirectory(const SysString &sStartupDirectory) {} Now I want to give the prototype of the function how can I do that |
| ||
| Re: error C2664: 'setStartupDirectory' : cannot convert parameter You can directly make the call to the function as follows setStartupDirectory(m_pApplicationFolderNarrow); |
| All times are GMT -4. The time now is 3:25 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC