代码十分的简单
// WinMain.cpp : Defines the entry point for the console application.
//
#include "Common.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine, int nCmdShow)
{
XInitXCGUI();
XC_InitLua();
XC_RunLua("main.lua");
XRunXCGUI();
XC_ExitLua();
XExitXCGUI();
return 0;
}
lua中的文本如下
-- the first program in every language
require("_const")
require("_xcgui")
local hWindow = XWnd_Create(0, 0, 400, 200,"abc炫彩",0,const.xc_window_style_default);
XWnd_ShowWindow(hWindow,5--[[SW_SHOW]]);
完整工程下载地址
http://download.csdn.net/detail/u012607841/9641472