#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
void Main_OnCommand(HWND hwnd,int id,HWND hwndCtl,UNIT codeNotify)
{
switch(id)
{
case IDC_OK:
{
TCHAR name[256];
GetDlgItemText(hwnd,IDC_EDITNAME,name,sizeof(name));
MessageBox(hwnd,name,name,MB_OK);
}
break;
default:break;
}
}
--运行失败--
Command failed: "C:\AhaCpp\resources\core\bin\gcc.exe" "C:\AhaCpp\resources\code\000.c" -o
"C:\AhaCpp\resources\code\000.exe"
C:\AhaCpp\resources\code\000.c:4:51: error: unknown type name 'UNIT'
void Main_OnCommand(HWND hwnd,int id,HWND hwndCtl,UNIT codeNotify)
^
|