GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Icebird
    // TODO: Add extra initialization here
    CString str( GetCommandLine() );
    CString resToken;
    CString m_argv[255];
    str.Replace( '^', '\n' );

    int curPos   = 0;
    int vPos     = 0;
    m_argv[vPos] = str.Tokenize( "\"", curPos );
    while( m_argv[vPos] != "" )
    {
        vPos++;
        m_argv[vPos] = str.Tokenize( "\"", curPos );
    };

    m_edit.SetWindowText( m_argv[2] );
    SetWindowText( _T(m_argv[4]) );
    SetTimer( 1, 2000, 0 );