本文介绍了SimulateSAS/SASLIB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用VS2008,并且在项目中包含了securedesktopclient.lib和RpcRT4.lib.
当我调用SimulateSAS时出现错误:
错误1错误LNK2001:未解决的外部符号"void __cdecl SimulateSAS(int)"; (?SimulateSAS @@ YAXH @ Z)SASLIBCAD.obj SASLIBCAD
源代码:
Hi all,
I'm using VS2008 and have included the securedesktopclient.lib and RpcRT4.lib in the project.
When I call SimulateSAS i get the error:
Error 1 error LNK2001: unresolved external symbol "void __cdecl SimulateSAS(int)" (?SimulateSAS@@YAXH@Z) SASLIBCAD.obj SASLIBCAD
Source Code:
#pragmacomment(lib,`"securedesktopclient.lib") |
#pragma注释(lib,"RpcRT4.lib") |
#include< stdafx.h> |
#include< windows.h> |
VOIDSimulateSAS(BOOLfAsUser); |
int _tmain( int argc,_TCHAR * argv []) |
{ |
SimulateSAS( true ); |
返回 0; |
} |
#pragma comment(lib, "securedesktopclient.lib") |
#pragma comment(lib, "RpcRT4.lib") |
#include <stdafx.h> |
#include <windows.h> |
VOID SimulateSAS(BOOL fAsUser); |
int _tmain(int argc, _TCHAR* argv[]) |
{ |
SimulateSAS(true); |
return 0; |
} |
推荐答案
这篇关于SimulateSAS/SASLIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!