Alrighty Seppuku, you've been added as a collaborator to the GitHub repo.
About the string table, it's actually a kind of funny thing. I'll explain it in detail though.
"?PrintText@@YAHXZ@Z"
is the name of the function. That's how it looks when it's exported
from MSVC. The GCC encoding is a bit simpler. "__Z9PrintTextPKc"
Why does it do this? Because you can have function
overloads. For example, "int GetSum(int a, int b);" and "float GetSum(float a, float b);" If they were exported exactly by name, there would be a naming conflict, and you wouldn't be able to tell them apart, even though they're separate functions.
I normally don't use overloads when exporting. Instead I prefix with
extern "C". This causes the export to occur with
just the name of the function. (Some compilers prefix with a "_" and if you're using
__stdcall you'll get "_func@4" or the likes. But no worries on that.)
Here's an example:
void PrintText(const char *p); //exports as __Z9PrintTextPKc or ?PrintText@@YAHXZ@Z depending on compiler
extern "C" void PrintText(const char *p); //exports as PrintText
So, in your string table, you just have to reference the correct name of the function. If I glossed over a few details or you would like more help, let me know.
EDIT: Here's a complete example.
main.cpp
#define EXPORT extern "C" __declspec(dllexport)
inline int dbFloat(float f) { return *(int *)&f; }
EXPORT int GetSum(int x, int y) { return x + y; }
EXPORT int GetSumF(float x, float y) { return dbFloat(x + y); }
commands.rc
STRINGTABLE
BEGIN
1 "Get Sum[%LLL%GetSum%Adds two integers together."
2 "Get Sum[%FFF%GetSumF%Adds two floats together."
END
getsum.ini
Get Sum=GetSum.htm=(x, y) returns number.
GetSum.htm
<html><head><title>GetSum</title></head>
<body><h1>GetSum</h1><h2>GetSum(x, y)</h2>
<p><b>Description</b><br />
Adds two numbers together.</p>
<p><b>Parameters</b><br />
<table border="1">
<tr>
<td><span style="font-family: monospace;">x</span></td><td>First number.</td>
</tr>
<tr>
<td><span style="font-family: monospace;">y</span></td><td>Second number.</td>
</tr>
</table>
<p><b>Return Value</b><br />
The sum of <i>x</i> and <i>y</i>.</p>
</body></html>
(Untested.)
Cheers,
Aaron