• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

TightVNC 2.0.4在VC2010下的编译

mysql 搞代码 4年前 (2022-01-09) 21次浏览 已收录 0个评论
文章目录[隐藏]

TightVNC 2.0.4在VC2010下的编译 TightVNC 2.0.4版本由服务端tvnserver-2.0.4和客户端tvnviewer-1.5.4组成。可从http://www.tightvnc.com/download.php获取源码。本文介绍在vc2010下编译TightVNC2.0.04。 编译服务端tvnserver-2.0.4 修改desktop-ipc工程,排

TightVNC 2.0.4在VC2010下的编译

TightVNC 2.0.4版本由服务端tvnserver-2.0.4和客户端tvnviewer-1.5.4组成。可从http://www.tightvnc.com/download.php获取源码。本文介绍在vc2010下编译TightVNC2.0.04。

编译服务端tvnserver-2.0.4

修改desktop-ipc工程,排除IpcServer.cpp文件。

因为desktop-ipc工程包含了一个不存在的文件IpcServer.cpp,直接编译会提示找不到IpcServer.cpp文件,因此需要从工程中排除此文件。右键选择该文件,在在弹出菜单中选择Properties,弹出属性对话框,在Configuration Properties/General选项卡中,修改Exclude From Build的值为yes,默认为No。

修改win-system工程,添加文件PipeImpersonatedThread.cpp,否则在连接tvnserver时会出现如下link错误:

1>—— Build started: Project: tvnserver, Configuration: Debug Win32 ——

1>win-system.lib(WTS.obj) : error LNK2019: unresolved external symbol “public: virtual __thiscall PipeImpersonatedThread::~PipeImpersonatedThread(void)” (??1PipeImpersonatedThread@@UAE@XZ) referenced in function __catch$?duplicatePipeClientToken@WTS@@SAXPAX@Z$0

1>win-system.lib(WTS.obj) : error LNK2019: unresolved external symbol “public: void __thiscall PipeImpersonatedThread::getFaultReason(class StringStorage *)” (?getFaultReason@PipeImpersonatedThread@@QAEXPAVStringStorage@@@Z) referenced in function “public: static void __cdecl WTS::duplicatePipeClientToken(void *)” (?duplicatePipeClientToken@WTS@@SAXPAX@Z)

1>win-system.lib(WTS.obj) : error LNK2019: unresolved external symbol “public: bool __thiscall PipeImpersonatedThread::getImpersonationSuccess(void)” (?getImpersonationSuccess@PipeImpersonatedThread@@QAE_NXZ) referenced in function “public: static void __cdecl WTS::duplicatePipeClientToken(void *)” (?duplicatePipeClientToken@WTS@@SAXPAX@Z)

1>win-system.lib(WTS.obj) : error LNK2019: unresolved external symbol “public: void __thiscall PipeImpersonatedThread::waitUntilImpersonated(void)” (?waitUntilImpersonated@PipeImpersonatedThread@@QAEXXZ) referenced in function “public: static void __cdecl WTS::duplicatePipeClientToken(void *)” (?duplicatePipeClientToken@WTS@@SAXPAX@Z)

1>win-system.lib(WTS.obj) : error LNK2019: unresolved external symbol “public: __thiscall PipeImpersonatedThread::PipeImpersonatedThread(void *)” (??0PipeImpersonatedThread@@QAE@PAX@Z) referenced in function “public: static void __cdecl WTS::duplicatePipeClientToken(void *)” (?duplicatePipeClientToken@WTS@@SAXPAX@Z)

1>F:\2-研D发¤?é库a\远?程¨?控?制?\tightvnc\tvnserver-2.0.4\Debug\tvnserver.exe : f本文来源gaodai$ma#com搞$代*码*网atal error LNK1120: 5 unresolved externals

========== Build: 0 succeeded, 1 failed, 23 up-to-date, 0 skipped ==========

Build tvnserver工程即可完成服务端的构建,构建完后,会在tvnserver-2.0.4目录下生成debug目录,在debug目录下会生成许多lib库和tvnserver.exe。

编译客户端tvnviewer-1.5.4

将所有工程的字符集设置为多字节字符集。

在工程设置对话框的Configuration Properties/General选项卡,将Character Set设置为Use Multi-Byte Character Set,默认为Use Unicode Character Set。

修改win-system工程,添加文件PipeImpersonatedThread.cpp。

Build tvnviewer工程即可完成客户端的构建,构建完后,会在tvnviewer-1.5.4目录下生成debug目录,在debug目录下会生成许多lib库和vncviewer.exe。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:TightVNC 2.0.4在VC2010下的编译

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址