sscanf 에러 - 현재 보류
* 증상
    ANSI (sscanf)는 정상
    UNICODE (swscanf, stscanf ) 에서 에러
- vc6에서만 에러, vc2010에서는 정상    
    - 코드
    int i=0;
    TCHAR *strIP = _T("9;");//에러!! error!!
    //TCHAR strIP[3] = _T("9;");//정상, worked
    //CStirng strIP = _T("9;");//정상, worked
    _stscanf(strIP, _T("%d;"),&i);
_stscanf swscanf 
Unhandled exception  MSVCRT DLL 0xc0000005 : Access Violation
wint_t __cdecl _ungetwc_lk ( wint_t ch, FILE *str )
{
    ...
    return (wint_t) (*--((wchar_t *)(str->_ptr)) = (wchar_t)(ch & 0xffff));
}
반응형
    
    
    
  'Code > Desktop' 카테고리의 다른 글
| C++ 예외 처리 (0) | 2014.04.10 | 
|---|---|
| IPC(Inter-Process Communication) 예제 정리 (0) | 2014.04.01 | 
| 윈도우즈 64/32비트 판별 함수 (0) | 2014.03.26 | 
| Native API의 함수포인터를 지정할때 에러 해결방법 (0) | 2014.03.23 | 
| define 전처리기 MACRO 사용법 (0) | 2014.03.22 | 



