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:: No Line Numbers


A Paste by jake`
1
 
{
    char tmp [512];
    if (GetModuleFileName (0, tmp, sizeof tmp) > 0)
    {
        //    terminate the string at the last backslash
        *strrchr (tmp, '\\') = 0;
        OutputDebugString (tmp);
    }
}