cannot convert parameter 4 from 'wchar_t *' to 'char []'
-
Hi There. I am using VS2008, and am facing above problem. Just FYI, I am calling WmCpyDta_GetMessage_sTagData() function as below...
WmCpyDta_GetMessage_sTagData(NULL, NULL, lParam, strTag.GetBuffer(0), strData.GetBuffer(0));
Signature of above function is...
BOOL WmCpyDta_GetMessage_sTagData(HWND hAcceptFrom, HWND hIdOfSender, const LPARAM lMsgStructure,
char szTag[], char szData[]);Please suggest. Thanks PanB
-
Hi There. I am using VS2008, and am facing above problem. Just FYI, I am calling WmCpyDta_GetMessage_sTagData() function as below...
WmCpyDta_GetMessage_sTagData(NULL, NULL, lParam, strTag.GetBuffer(0), strData.GetBuffer(0));
Signature of above function is...
BOOL WmCpyDta_GetMessage_sTagData(HWND hAcceptFrom, HWND hIdOfSender, const LPARAM lMsgStructure,
char szTag[], char szData[]);Please suggest. Thanks PanB
-
Hi There. I am using VS2008, and am facing above problem. Just FYI, I am calling WmCpyDta_GetMessage_sTagData() function as below...
WmCpyDta_GetMessage_sTagData(NULL, NULL, lParam, strTag.GetBuffer(0), strData.GetBuffer(0));
Signature of above function is...
BOOL WmCpyDta_GetMessage_sTagData(HWND hAcceptFrom, HWND hIdOfSender, const LPARAM lMsgStructure,
char szTag[], char szData[]);Please suggest. Thanks PanB
The obvious implication of the error message is that
strTag
is a wide string (I suspectstrData
will be as well). You'll probably be wanting to look at a function to convert wide strings to ASCII ones[^]...Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
The obvious implication of the error message is that
strTag
is a wide string (I suspectstrData
will be as well). You'll probably be wanting to look at a function to convert wide strings to ASCII ones[^]...Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi There. I am using VS2008, and am facing above problem. Just FYI, I am calling WmCpyDta_GetMessage_sTagData() function as below...
WmCpyDta_GetMessage_sTagData(NULL, NULL, lParam, strTag.GetBuffer(0), strData.GetBuffer(0));
Signature of above function is...
BOOL WmCpyDta_GetMessage_sTagData(HWND hAcceptFrom, HWND hIdOfSender, const LPARAM lMsgStructure,
char szTag[], char szData[]);Please suggest. Thanks PanB
You should really avoid
pickpockets
andCString::GetBuffer
(unless, for the latter, you've a special licence from Mark Salsbery). :-DIf the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]