I'm trying to create a simple library that can be referenced in another application, and running into an error.
Library class:
public ref class Game
{
public:
Game();
~Game();
};
In my application:
[Platform::MTAThread]
int main(array<Platform::String^>^)
{
auto game = ref new Gaia::Game();
auto viewProvider = ref new ViewProviderFactory();
Windows::ApplicationModel::Core::CoreApplication::Run(viewProvider);
}
Why am I getting the following error?
Error 1 error C2509: '<Dispose>' : member function not declared in 'x::Game' x\game.h 21 1 x