cpp文件,麻烦帮我编译一下
#include <windows.h>using namespace std;
typedef int(*RGSSEval)(const char* pScripts);
static RGSSEval pRGSSEval = NULL;
static HMODULE hRgssCore = NULL;
extern "C" {
__declspec(dllexport) void run(void);
}
void run() {
hRgssCore = ::LoadLibraryA("RGSS103J.dll");
pRGSSEval = (RGSSEval)::GetProcAddress(hRgssCore, "RGSSEval");
// 这里是执行的代码
pRGSSEval("p 'hello, rgss!'");
}