This project is read-only.

Command line access

Mar 23, 2013 at 11:42 PM
Edited Mar 23, 2013 at 11:42 PM
I have to modificate the main class to accesss the command line information inside the App class.

I ve added this to the main function. Its calls the virtual bool ConfigureCommandLine(LPSTR lpcmdline); (perhaps name is not optimal)

Perhaps this can be implemented nativly.
int WINAPI WinMain( HINSTANCE h_Inst, HINSTANCE h_PrevInst, LPSTR lpcmdline, int ncmdshow)
    // The instance of the app must already be created by now

    Application* m_pApp = Application::GetApplication();
    if (!m_pApp)
        Log::Get().Write( L"There was no instance of the application." );

        if(!m_pApp->ConfigureCommandLine(lpcmdline)) {
        Log::Get().Write( L"No access" );
Mar 28, 2013 at 3:18 AM
This item has been added in the latest commit. Please let me know if it works for your needs.
Mar 28, 2013 at 8:38 AM
Works well! :)