#include
INITCOMMONCONTROLSEX icex;
TOOLINFO ti;
// Load the tooltips class from the DLL.
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_BAR_CLASSES;
if(!InitCommonControlsEx(&icex))
return;
TChar szTemp[512];
GetWindowText(m_hAppWnd,szTemp,512);
HGLOBAL hGlobal = GlobalAlloc (GHND | GMEM_SHARE, ( (lstrlen (szTemp) + 1)* sizeof (TChar)) );
LPTSTR pGlobal = (LPTSTR)GlobalLock (hGlobal) ;
lstrcpy (pGlobal, szTemp) ;
OpenClipboard (m_hAppWnd) ;
EmptyClipboard () ;
SetClipboardData (CF_TCHAR, hGlobal) ;
GlobalUnlock (hGlobal) ;
CloseClipboard () ;
TChar szTemp[512];
GetWindowText(m_hAppWnd,szTemp,512);
HGLOBAL hGlobal = GlobalAlloc (GHND | GMEM_SHARE, ( (lstrlen (szTemp) + 1)* sizeof (TChar)) );
LPTSTR pGlobal = (LPTSTR)GlobalLock (hGlobal) ;
lstrcpy (pGlobal, szTemp) ;
OpenClipboard (m_hAppWnd) ;
EmptyClipboard () ;
SetClipboardData (CF_TCHAR, hGlobal) ;
SetClipboardData(CF_LOCALE, hGlobal);
GlobalUnlock (hGlobal) ;
CloseClipboard () ;
就我所知MS的mobile似乎不好跨平台開發
Sybian其實也是寫java類,但好像又多了很多的神密處。
那如果這兩套系統都不錯用?那Google的Android好在哪?