Commit 61919061 by NitefullWind

1. CPCC版,可配置依赖dll路径,设置版本号。

parent b8cdd868
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
EXTERN_C IMAGE_DOS_HEADER __ImageBase; EXTERN_C IMAGE_DOS_HEADER __ImageBase;
#define SBKPAYDLL "sbkpay.dll" #define SBKPAYDLL "sbkpay.dll"
#define SBKPAYCONFIG "sbkpay.ini"
#define FMPDLL "fmclient.dll" #define FMPDLL "fmclient.dll"
//#define FMCRYPT "fmcrypt.dll" //#define FMCRYPT "fmcrypt.dll"
...@@ -52,9 +53,16 @@ HMODULE GetInstance() ...@@ -52,9 +53,16 @@ HMODULE GetInstance()
DWORD dwSize =GetEnvironmentVariable("path", chBuf, 10240); DWORD dwSize =GetEnvironmentVariable("path", chBuf, 10240);
std::string currpath(chBuf); std::string currpath(chBuf);
currpath += (std::string(";") + std::string(mod));
std::cout << currpath;
char dllPath[MAX_PATH] = { 0 };
char conFilePath[MAX_PATH] = { 0 };
sprintf(conFilePath, "%s%s", mod, SBKPAYCONFIG);
printf("SbkPayWrapper: Set config file path: %s\n", conFilePath);
GetPrivateProfileString("ALL", "DLLPATH", mod, dllPath, MAX_PATH, conFilePath);
printf("SbkPayWrapper: Get dll path: %s\n", dllPath);
currpath += (std::string(";") + std::string(mod)) + std::string(";") + std::string(dllPath);
char instance[MAX_PATH] = { 0 }; char instance[MAX_PATH] = { 0 };
sprintf(instance, "%s%s", mod, SBKPAYDLL); sprintf(instance, "%s%s", mod, SBKPAYDLL);
......
No preview for this file type
...@@ -69,6 +69,13 @@ ...@@ -69,6 +69,13 @@
<ItemGroup> <ItemGroup>
<None Include="freemudwrapper.def" /> <None Include="freemudwrapper.def" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h" />
<ClInclude Include="resource1.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="FreemudWrapper.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
......
...@@ -24,4 +24,17 @@ ...@@ -24,4 +24,17 @@
<Filter>源文件</Filter> <Filter>源文件</Filter>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="resource1.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="FreemudWrapper.rc">
<Filter>资源文件</Filter>
</ResourceCompile>
</ItemGroup>
</Project> </Project>
\ No newline at end of file
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by FreemudWrapper.rc
// ¶һĬֵ
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
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