Originally committed to SVN as r2299.

This commit is contained in:
Rodrigo Braz Monteiro 2008-08-09 23:01:39 +00:00
parent b828b4a6ae
commit 6ca9ac3f3a
6 changed files with 7 additions and 4 deletions

View file

@ -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"

View file

@ -33,6 +33,7 @@
// Contact: mailto:amz@aegisub.net
//
#define ATHENA_DLL
#ifdef ATHENA_DLL
#ifdef ATHENA_EXPORTS
#define ATHENA_API __declspec(dllexport)

View file

@ -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);

View file

@ -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));
}
}

View file

@ -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);
}

View file

@ -63,6 +63,7 @@
/>
<Tool
Name="VCLinkerTool"
OutputFile="../../bin/aegilibtest_d.exe"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="1"