错误代码如下:
.\tinyxml.cpp(44) : error C3861: 'fopen_s': identifier not found
1>.\tinyxml.cpp(116) : error C3861: '_snprintf_s': identifier not found
1>.\tinyxml.cpp(698) : error C3861: '_snprintf_s': identifier not found
1>.\tinyxml.cpp(720) : error C3861: '_snprintf_s': identifier not found
1>.\tinyxml.cpp(1236) : error C3861: 'sscanf_s': identifier not found
1>.\tinyxml.cpp(1243) : error C3861: 'sscanf_s': identifier not found
1>.\tinyxml.cpp(1252) : error C3861: '_snprintf_s': identifier not found
1>.\tinyxml.cpp(1263) : error C3861: '_snprintf_s': identifier not found
哪个大哥帮帮小弟,老感激你了

解决方案 »

  1.   

    use _snwprintf and _TCHAR  instead of char 
    _TCHAR abc[256];
    _snwprintf (abc, 256, _TRUNCATE, , );
    this may fix your issue.上面是我在别的帖子上看到的你那样问题的解决方案,你试试吧,我英文不是很好,否则帮你翻译了
      

  2.   


    #include <stdio.h>
    #include <stdlib.h>
      

  3.   

    解决方法:
    1. 在工程->属性->C++->Preprocessor->Preprocessor Definition里面添加"_LIB;"
    如果想用STL的TinyXML的话,添加上TIXML_USE_STL
    2. 在tinystr.h和tinyxml.h里面第一行添加:
    #define _MSC_VER        1
    这样TinyXML就会调用C标准库了,不会使用CRT.转:http://www.devdiv.net/viewthread-23771