forked from mia/Aegisub
Originally committed to SVN as r2299.
This commit is contained in:
parent
b828b4a6ae
commit
6ca9ac3f3a
6 changed files with 7 additions and 4 deletions
|
@ -116,7 +116,7 @@
|
|||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="false"
|
||||
AdditionalIncludeDirectories="include/athenasub;src"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_WINDOWS"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_WINDOWS;ATHENA_EXPORTS"
|
||||
RuntimeLibrary="2"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
UsePrecompiledHeader="2"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
// Contact: mailto:amz@aegisub.net
|
||||
//
|
||||
|
||||
#define ATHENA_DLL
|
||||
#ifdef ATHENA_DLL
|
||||
#ifdef ATHENA_EXPORTS
|
||||
#define ATHENA_API __declspec(dllexport)
|
||||
|
|
|
@ -42,4 +42,4 @@
|
|||
#include "range.h"
|
||||
|
||||
|
||||
extern "C" Athenasub::ILibAthenaSub* CreateLibAthenasub(const char* hostName);
|
||||
extern "C" ATHENA_API Athenasub::ILibAthenaSub* CreateLibAthenasub(const char* hostName);
|
||||
|
|
|
@ -44,7 +44,8 @@ typedef Athenasub::ILibAthenaSub* (__stdcall *CreateLibAthenasubPtr)(const char*
|
|||
namespace Athenasub {
|
||||
inline LibAthenaSub Create(HMODULE module,const char* hostName) {
|
||||
CreateLibAthenasubPtr CreateLib = (CreateLibAthenasubPtr)GetProcAddress(module,"CreateLibAthenasub");
|
||||
printf("Pointer at %x.\n",CreateLib);
|
||||
printf("Pointer is %x. Last error is %i.\n",CreateLib,GetLastError());
|
||||
return LibAthenaSub(CreateLib(hostName));
|
||||
//return LibAthenaSub(CreateLibAthenasub(hostName));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
using namespace Athenasub;
|
||||
|
||||
|
||||
extern "C" ILibAthenaSub* CreateLibAthenasub(const char* hostName) {
|
||||
extern "C" ATHENA_API ILibAthenaSub* CreateLibAthenasub(const char* hostName) {
|
||||
return new CLibAthenaSub(hostName);
|
||||
}
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/aegilibtest_d.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
|
|
Loading…
Reference in a new issue