TITLE Demonstrate MessageBoxA       (messagebox.asm)
INCLUDE Irvine32.inc
Includelib Kernel32.lib 
Includelib Irvine32.lib 
.data
captionW  BYTE "Attempt to divide by zero",0
warningMsg BYTE "Please check your denominator",0
.code
main PROC
INVOKE MessageBox,NULL,ADDR warningMsg,
ADDR captionW,MB_OK + MB_ICONEXCLAMATION
exit
main ENDP
END main

下面是编译的信息 我用的是masm615
------ Build started: Project: messageboxs, Configuration: Debug Win32 ------
Linking...
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
F:\Visual Studio 2005\Projects\messageboxs\Debug\messageboxs.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://f:\Visual Studio 2005\Projects\messageboxs\messageboxs\Debug\BuildLog.htm"
messageboxs - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


 第五版没有光盘啊 我下载不到SmallWin.inc文件