Error 21 error C3861: 'wcstok_s': identifier not found D:\Microsoft Visual Studio 10.0\VC\include\tchar.h 794
今天在編譯nodepad++ 一個插件的時候編譯的時候竟然出現上面的一個錯誤,找了很久都沒有辦法解決。
LocationNavigate.cpp
#include "PluginDefinition.h"
#include <shlwapi.h>
#include <tchar.h> //就是這裏報錯了
#include "LNhistoryDlg.h"
#include <list>
#include<WinBase.h>
修改一下包含的順序就可以解決了
#include <tchar.h>
#include "PluginDefinition.h"
#include <shlwapi.h>
#include "LNhistoryDlg.h"
#include <list>
#include<WinBase.h>