Commit 3115db20 by 李定达

1.统一spn和res导出函数

parent 672d92cc
......@@ -2,3 +2,4 @@ Debug/
Release/
*.ipch
*.sdf
*.opensdf
......@@ -111,19 +111,19 @@ void DoCopyFile(const char *dir)
extern "C"{
// __declspec(dllexport) int _stdcall GetValue(char *indata, char *outdata)
//{
// HMODULE hMod = GetInstance();
// if (hMod) {
// PFN_GETVALUE pfn_GetValue = (PFN_GETVALUE)GetProcAddress(hMod, "_GetValue@8");
// if (pfn_GetValue) {
// return pfn_GetValue(indata, outdata);
// }
// FreeLibrary(hMod);
// }
// return -1;
// }
__declspec(dllexport) int _stdcall GetValue(char *indata, char *outdata)
{
HMODULE hMod = GetInstance();
if (hMod) {
PFN_GETVALUE pfn_GetValue = (PFN_GETVALUE)GetProcAddress(hMod, "_GetValue@8");
if (pfn_GetValue) {
return pfn_GetValue(indata, outdata);
}
FreeLibrary(hMod);
}
return -1;
}
__declspec(dllexport) int _stdcall RESGetValue(char *indata, char *outdata)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment