CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: josephhhhh

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,326

    Re: Run-Time Check Failure #2

    Sorry, the code is:

    char scTemp[8];
    unsigned short usCurrent;
    m_ctEdTemp.GetWindowText(scTemp, 8);
    sscanf(scTemp, "%u", &usCurrent);
  2. Replies
    2
    Views
    1,326

    Run-Time Check Failure #2

    Hi all,
    Here is my code:

    char scTemp[8];
    unsigned short usCurrent;
    m_ctEdTemp.GetWindowText(scTemp, 8);
    sscanf(scTemp, "%u", usCurrent);

    Does anyone know what is wrong with this code...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured