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