lrc123 发表于 2007-9-5 21:30:41

请问GS的C++的Dll接口在哪下呢?

请问GS的C++接口在哪下呢?

ultranet 发表于 2007-9-9 09:15:56

不用下,c++ sdk的文件在sdk_engine這個資料夾。

afuncs.h, atypes.h, avars.h, adll.h - header files
acknex.cpp - source code of acknex.exe
acknex.lib - library for using acknex.dll
複製到c++ project的文件夾,
//main.cpp
#define WIN32_LEAN_AND_MEAN      
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include "adll.h"
int APIENTRY WinMain(HINSTANCE hInstance,    // application instance handle
                     HINSTANCE hPrevInstance, // always zero
                     LPTSTR    lpCmdLine,    // application command line
                     int       nCmdShow)    // window flags
{

    engine_open("arena.wmb");
    while (engine_frame());
    engine_close();
    return 0;
}
//compile source
最後在command prompt到wed的路徑執行wed.exe,使用指令WED -p path\\executable.exe建立一個acknex.dll到c++ project。

使用sdk挺麻煩的,每次編譯出exe麵要bind一個新的acknex.dll,測試運行非常麻煩。

lrc123 发表于 2007-9-15 19:29:19

确实是挺麻烦的,其他接口也得这样吗?(比如说Delphi)

3dmad 发表于 2007-9-30 19:06:11

我记得有一个gsdelphi.dll

ps:ultranet is that really you????
页: [1]
查看完整版本: 请问GS的C++的Dll接口在哪下呢?