Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FreemudWrapper
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李定达
FreemudWrapper
Commits
672d92cc
Commit
672d92cc
authored
Jul 20, 2017
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1定义def导出函数名称
parent
64ef34c5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
14 deletions
+30
-14
FreemudWrapper.cpp
+14
-14
FreemudWrapper.suo
+0
-0
FreemudWrapper.vcxproj
+5
-0
FreemudWrapper.vcxproj.filters
+6
-0
freemudwrapper.def
+5
-0
No files found.
FreemudWrapper.cpp
View file @
672d92cc
...
...
@@ -111,25 +111,25 @@ 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
)
{
HMODULE
hMod
=
GetInstance
();
if
(
hMod
)
{
PFN_RESGETVALUE
pfn_GetValue
=
(
PFN_GETVALUE
)
GetProcAddress
(
hMod
,
"
_RESGetValue@8
"
);
PFN_RESGETVALUE
pfn_GetValue
=
(
PFN_GETVALUE
)
GetProcAddress
(
hMod
,
"
RESGetValue
"
);
if
(
pfn_GetValue
)
{
return
pfn_GetValue
(
indata
,
outdata
);
}
...
...
FreemudWrapper.suo
0 → 100644
View file @
672d92cc
File added
FreemudWrapper.vcxproj
View file @
672d92cc
...
...
@@ -46,6 +46,7 @@
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>freemudwrapper.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
...
...
@@ -59,11 +60,15 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<ModuleDefinitionFile>freemudwrapper.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="FreemudWrapper.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="freemudwrapper.def" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
...
...
FreemudWrapper.vcxproj.filters
View file @
672d92cc
...
...
@@ -19,4 +19,9 @@
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="freemudwrapper.def">
<Filter>源文件</Filter>
</None>
</ItemGroup>
</Project>
\ No newline at end of file
freemudwrapper.def
0 → 100644
View file @
672d92cc
LIBRARY
EXPORTS
RESGetValue
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment