vs2008 express 编译 tightVNC

本文提供了编译TightVNC的详细步骤,包括所需软件包的下载链接及安装指导,同时给出了如何配置Visual C++ 2008 Express以适配Windows 8 SDK的具体方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


   一. 更新了noVNC package,还是在 公司邮箱的" 企业网盘 "里面的企业文档目录下面,压缩了尺寸,文件名叫novnc-package-v02-20140114.7z。
      启动命令 start.bat -listen 192.168.0.1:6080 -vncserver 192.168.0.1:5900
   
   二. 编译tightvnc
       我已经编译好了原始的版本,试了一下,可以使用。你可以试着编译一下,按照以下步骤,如果出现错误,可以QQ联系我。

       编译环境: Visual C++ 2008 Express   http://go.microsoft.com/?linkid=7729279
                       Windows SDK   http://www.microsoft.com/click/services/Redirect2.ashx?CR_EAC=300105886
        1. 上述三个软件包安装完成后,启动Microsoft Visual C++ 2008 Express Edition,File->Open->Project/Solution 打开 tightvnc-2.7.10里面的tightvnc.sln
        2. 修改源文件tightvnc-2.7.10\screen-hooks\screenhooks.rc  和
                         tightvnc-2.7.10\tvnserver\tvnserver.rc
              改法都是注释掉下列的第一行,添加后两行
                          //#include "afxres.h"
#include "WinResrc.h"

#defineIDC_STATIC -1

然后做如下配置

http://blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx


Using the Windows Software Development Kit (SDK) for Windows 8 Consumer Preview with Visual Studio 2010

Rate This

Now that the Windows Software Development Kit (SDK) for Windows 8 Consumer Preview has been released, I would like to show you how you can use the Windows 8 SDK with Visual Studio 10.

 

  • Download and install the SDK from http://msdn.microsoft.com/en-us/windows/desktop/hh852363.
  • Note the location of your Win8 SDK install – by default it is %PROGRAMFILES%\Windows Kits\8.0\
  • Open your project in VS 2010.  The instructions to do this in VS11 with the v100 platform toolset are similar and you may try that out as well, but these instructions below show how to do this in VS 2010.
  • For each project where you want to use the Windows 8 SDK, go to project properties, VC++ Directories

 

  • Change the following properties (if you installed the SDK to a different location, replace the SDK path with your custom install location):

-          In “Executable Directories” replace $(WindowsSdkDir)bin with $(ProgramFiles)\Windows Kits\8.0\bin\x86

-          In “Include Directories” add $(ProgramFiles)\Windows Kits\8.0\Include\um;$(ProgramFiles)\Windows Kits\8.0\Include\shared at the beginning and remove $(WindowsSdkDir)include

-          In “Library Directories” replace $(WindowsSdkDir)lib with $(ProgramFiles)\Windows Kits\8.0\lib\win8\um\x86

-          In “Exclude Directories” replace $(WindowsSdkDir)include with $(ProgramFiles)\Windows Kits\8.0\Include\um;$(ProgramFiles)\Windows Kits\8.0\Include\shared

-          When targeting x64, replace x86 with x64


评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值