// functions
// ----------------------------------------------------------------------------
-#ifdef __WXDEBUG__
- static const wxChar *GetTymedName(DWORD tymed);
-#endif // Debug
-
// ----------------------------------------------------------------------------
// wxDataFormat
// ----------------------------------------------------------------------------
wxString wxDataFormat::GetId() const
{
- char zBuf[256];
+ wxChar zBuf[256];
wxString sRet;
::WinQueryAtomName( ::WinQuerySystemAtomTable()
,m_uFormat
- ,zBuf
+ ,(PSZ)zBuf
,256
);
sRet = zBuf;
)
{
m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable()
- ,zId
+ ,(PSZ)zId
);
} // end of wxDataFormat::SetId
, char* pzBuffer
)
{
- ULONG ulSize;
+ ULONG ulSize = 0;
switch (rFormat.GetType())
{
ulSize = strlen((const char *)pzBuffer);
break;
+#if wxUSE_UNICODE
case wxDF_UNICODETEXT:
ulSize = ::wcslen((const wchar_t *)pzBuffer);
break;
+#endif
case wxDF_BITMAP:
case wxDF_METAFILE:
{
/* TODO */
- wxString sFile( (const char *)pBuf); /* char, not wxChar */
+ wxString sFile((const wxChar *)pBuf); /* char, not wxChar */
AddFile(sFile);