Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: simple interpreter Pin
harcaype23-Oct-08 2:10
harcaype23-Oct-08 2:10 
QuestionRe: simple interpreter [modified] Pin
David Crow23-Oct-08 2:54
David Crow23-Oct-08 2:54 
AnswerRe: simple interpreter Pin
harcaype23-Oct-08 4:23
harcaype23-Oct-08 4:23 
QuestionControl outgoing TCP/IP connections Pin
od@ananzi.co.za22-Oct-08 4:23
od@ananzi.co.za22-Oct-08 4:23 
AnswerRe: Control outgoing TCP/IP connections Pin
Richard Andrew x6422-Oct-08 18:00
professionalRichard Andrew x6422-Oct-08 18:00 
Questioncovert / cast int to char* with a twist Pin
Programm3r22-Oct-08 4:22
Programm3r22-Oct-08 4:22 
AnswerRe: covert / cast int to char* with a twist Pin
James R. Twine22-Oct-08 5:08
James R. Twine22-Oct-08 5:08 
AnswerRe: covert / cast int to char* with a twist Pin
Mark Salsbery22-Oct-08 5:12
Mark Salsbery22-Oct-08 5:12 
Here's how the CRT does itoa(), with all the error/buffer overflow checking stripped...
// radix can be 2 through 36 (10 for decimal, 16 for hexadecimal, etc.
void integertoascii(int n, char *buf, int radix)
{
    char *pbuf = buf;
    do
    {
        unsigned int digit = (unsigned int)(n % radix);
        n /= radix;

        if (digit > 9)
            *pbuf++ = digit - 10 + 'a';
        else
            *pbuf++ = digit + '0';
    }
    while (n > 0);
    *pbuf-- = '\0';

    do 
    {
        char temp = *pbuf;
        *pbuf = *buf;
        *buf = temp;
        --pbuf;
        ++buf;
    } while (buf < pbuf);
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionHo wto close running application before uninstallation?? Pin
tarunclassic22-Oct-08 3:46
tarunclassic22-Oct-08 3:46 
AnswerRe: Ho wto close running application before uninstallation?? Pin
Richard Andrew x6422-Oct-08 17:58
professionalRichard Andrew x6422-Oct-08 17:58 
GeneralRe: How to close running application before uninstallation?? Pin
tarunclassic22-Oct-08 19:54
tarunclassic22-Oct-08 19:54 
QuestionDLL preferred load address Pin
George_George22-Oct-08 3:34
George_George22-Oct-08 3:34 
AnswerRe: DLL preferred load address Pin
Simon P Stevens22-Oct-08 3:48
Simon P Stevens22-Oct-08 3:48 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 15:20
George_George22-Oct-08 15:20 
GeneralRe: DLL preferred load address Pin
Naveen22-Oct-08 15:40
Naveen22-Oct-08 15:40 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 16:05
George_George22-Oct-08 16:05 
GeneralRe: DLL preferred load address Pin
Naveen22-Oct-08 16:19
Naveen22-Oct-08 16:19 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 17:37
George_George22-Oct-08 17:37 
AnswerRe: DLL preferred load address Pin
Iain Clarke, Warrior Programmer22-Oct-08 3:50
Iain Clarke, Warrior Programmer22-Oct-08 3:50 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 15:30
George_George22-Oct-08 15:30 
GeneralRe: DLL preferred load address Pin
Simon P Stevens22-Oct-08 21:38
Simon P Stevens22-Oct-08 21:38 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 21:48
George_George22-Oct-08 21:48 
GeneralRe: DLL preferred load address Pin
Iain Clarke, Warrior Programmer22-Oct-08 21:41
Iain Clarke, Warrior Programmer22-Oct-08 21:41 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 21:48
George_George22-Oct-08 21:48 
AnswerRe: DLL preferred load address Pin
anminxin22-Oct-08 5:40
anminxin22-Oct-08 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.