ecco il nuovo codice:

Codice PHP:
#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <string>
#include <tchar.h>
BOOL CALLBACK unaDlgProc(HWND hwndDlgUINT uMsgWPARAM wParamLPARAM lParam)
{
if(
uMsg==WM_CLOSE)
{
EndDialog(hwndDlg0);
return 
TRUE;
}
else if(
uMsg==WM_COMMAND)
{
WORD wNotifica HIWORD(wParam);
WORD wId LOWORD(wParam);
if(
wNotifica == STN_CLICKED && wId == 101)
{
HWND hStat = (HWND)lParam
char buff[6]; 
TCHAR pTesto
SendMessage(hStatWM_GETTEXT6, (LPARAM)buff); 
if(
buff[0]=='C'pTesto _T("Salve"); 
else 
pTesto _T("Ciao!"); 
MessageBox(0, (LPCWSTR)pTesto, (LPCWSTR)buffMB_OK);
SendMessage(hStatWM_SETTEXT0, (LPARAM)pTesto); 
return 
TRUE
}
}
return 
FALSE;
}
int WINAPI WinMain(HINSTANCE hInstHINSTANCE hPrevInstLPSTR lpCmdLineint nCmdShow) {
DialogBoxParam(0,L"MioDialogo",0,unaDlgProc,0); return 0;

i caratteri non gli ho modificati quindi sono unicode...