|
楼主 |
发表于 2014-6-13 15:17:13
|
显示全部楼层
发论坛了吗 我对api实在是不懂啊 弄了一天 只出现了一个框框- dll = raw.loadDll("\res\lib\XCGUId.dll");
- //XInitXCGUI (wchar_t *pText)//原函数
- XInitXCGUI = dll.api("XInitXCGUI","pointer(string pText)" )
- //XWnd_CreateWindow (int x, int y, int cx, int cy, wchar_t *pTitle, HWND hWndParent, int XCStyle)
- XWnd_CreateWindow= dll.api("XWnd_CreateWindow","pointer(int x, int y, int cx, int cy, string pTitle, int hWndParent, string XCStyle )");
- //XWnd_ShowWindow (HWINDOW hWindow, int nCmdShow)
- XWnd_ShowWindow= dll.api("XWnd_ShowWindow","pointer(pointer hWindow,int nCmdShow)");
- XRunXCGUI= dll.api("XRunXCGUI","void()");
- //XExitXCGUI ()程序退出时使用
- XExitXCGUI=dll.api("XExitXCGUI","void()");
- XInitXCGUI();//初始化
- hWindow = XWnd_CreateWindow (400,200,300,200,"炫彩窗口",0,"XC_SY_DEFAULT");//XC_SY_DEFAULT
- XWnd_ShowWindow(hWindow, 0x5/*_SW_SHOW*/);//显示窗体
- XRunXCGUI();//运行
- XExitXCGUI();//退出调用 释放资源
复制代码 |
|