Subversion Repositories spk

Rev

Rev 1 | Blame | Compare with Previous | Last modification | View Log | RSS feed

// stdafx.cpp : source file that includes just the standard includes
// Creator.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"


        System::String ^GetVersionString()
        {
                return GetVersionString((float)PACKAGERVERSION, (int)PACKAGERBETA);
        }
        System::String ^GetVersionString(float version, int beta)
        {
                System::String ^str = "V" + _US(Utils::WString::FromFloat(version, 2));
                // beta version
                if ( beta > 0 )
                        str += " (Beta " + beta + ")";
                // RC release
                else if ( beta < 0 )
                        str += " (RC " + (0 - beta) + ")";
                return str;
        }