close

Trust Me!! Trust You!!


  • Blog
  • Local Log
  • Tag Cloud
  • Key Log
  • Guestbook
  • RSS Feed
  • Write a Post
  • Admin

혹시 블로그 스킨이 깨져 보이시나요? 최신버전의 Internet Explorer(Windows용), Opera, Firefox를 사용해보세요.

UltraVNC 클라이언트 ActiveX 버전의 소스

App 프로그래밍
2012/05/14 18:17
 
ULTR@VNC VIEWER ACTIVEX CONTROL

For my product GoToTerminal, I needed a VNC Client (in the form of an ActiveX control) in order to add VNC support to GoToTerminal.

INTRODUCTION

After a quick search in Google, I discovered that there is any free VNC ActiveX Client, so I decided to take the standard Windows Ultr@VNC client and convert it to an ActiveX Control. The very good quality of the implementation (from an object oriented point of view) dramatically simplified my job. The entire conversion took 3 days. This is a screenshot of the GoToTerminal Control Panel, using my VNC ActiveX Client:

<스샷은 아래 그림 참고>

OBJECT MODEL

These are the properties and methods exposed by the control:

[id(1)] HRESULT Connect();
[id(2)] HRESULT Disconnect();
[propget, id(3)] HRESULT Connected([out, retval] BOOL *pVal);
[propget, id(4)] HRESULT Server([out, retval] BSTR *pVal);
[propput, id(4)] HRESULT Server([in] BSTR newVal);
[id(5)] HRESULT ExecuteCommand( [in] BSTR cmdText, [out,retval] BSTR *pRetVal );
[propget, id(6)] HRESULT IsInitialized([out, retval] BOOL *pVal);

There are 2 events supported by the ActiveX control:

[id(1)] HRESULT OnConnected();
[id(2)] HRESULT OnDisconnected(BSTR reason);

CONVERSION DETAILS

As I said above, the conversion itself was so easy that I was able to clearly isolate all my changes to the code, in a way that preserves the dual compilation of both my ActiveX ATL project and of the original Win32 client. All the changes and additions to the original code are controlled by a preprocessor symbol (_ULTRAVNCAX_), that was also a good way I used to mark all the points in the code where actually I made changes, thus simplifying the conversion of future versions of the VNC client to this ActiveX form.

In the “UltraVncAx” folder you can find the ATL code specific to the ActiveX version of the client. Most noticeably, you can find here the code that relays some relevant Windows messages from the ActiveX control to the VNC client child window and the code that hooks the keyboard (through SetWindowsHookEx/WH_KEYBOARD) in order to correctly dispatch the user input messages to the VNC client (when the ActiveX is focused), in the case when the client is hosted in a complex ActiveX Control Container, such as Internet Explorer.

LICENSE

My ActiveX VNC client, as well as the original Win32 VNC viewer, is licensed under the terms of the GNU General Public License (GPL).

DOWNLOAD

You can download the source code of the Ultr@VNC ActiveX Client from here.
You can download the binary version of the Ultr@VNC ActiveX Client from here.

Also take a look at my Telnet Client ActiveX Control, derived from the excellent PuTTY client.



UltraVncAx.zip



AxVncViewer.zip

이올린에 북마크하기
Trackback 327 / No comment.

Trackback Address :: http://viper150.cafe24.com/trackback/184

You can also say.

Prev 1 ... 116 117 118 119 120 121 122 123 124 ... 298 Next
블로그 이미지
이것저것 불펌금지도 퍼다가 담습니다. 외부에 비공개된 페이지 입니다. By. 어른왕자

카테고리

  • 전체 (298)
    • 사는 이야기 (115)
    • 웹 프로그래밍 (102)
    • App 프로그래밍 (22)
    • IT 뉴스&기타 (22)
    • 박한별 (4)
    • 역사&기타지식 (9)

태그목록

  • 자본
  • 미국
  • 그래픽카드
  • 미국의료
  • hwpCtrl
  • 자바스크립트 마우스 막기
  • 과음
  • 울트라에디트
  • 제이퀴리
  • 터키
  • 파락호
  • 최적화
  • 학술연구정보서비스
  • 마우스
  • substr
  • vga성능
  • 이중성향
  • C#
  • 생산성저하
  • 唐田
  • 커플
  • C Left
  • 만화
  • 마우스막기
  • api
  • 굴욕
  • CD케이스
  • 건강보험
  • 획갈림
  • 다이알로그

최근에 올라온 글

  • 보험사의 조정신청 대응방법.
  • 어느 천재의 앞선 시선.
  • [병맛더빙] 누구게..... (1)
  • 韓경제 `회색 코뿔소` 상황...
  • SVN Connector 설치 URL.
  • 군대를 가지 않는 서울대생.
  • “운은 하늘의 귀여움 받는...
  • 목장에서 알바하다가 캐스...
  • [펌]믿고 거르는 관상.
  • 하루에 1세트씩 하면 좋다...

최근에 달린 댓글

  • <p align="center"><a href="h... 라임애드 02/14
  • <div style="OVERFLOW: hidden... 고사니 02/12
  • <p align="center"><a href="h... 라임정보 02/07
  • <p><img src="https://i.imgur... 브레드 01/22
  • <p><img src="https://i.imgur... 브레드 01/22

최근에 받은 트랙백

  • read this post from Bookie 7. read this post from Bookie 7 02/28
  • công ty may đồng phục. công ty may đồng phục 01/08
  • Israelnightclub`s recent blo... Israelnightclub`s recent blo.. 01/06
  • Suggested Browsing. Suggested Browsing 01/06
  • similar site. similar site 01/06

글 보관함

  • 2019/03 (1)
  • 2018/12 (1)
  • 2018/09 (1)
  • 2018/08 (1)
  • 2018/02 (1)

달력

«   2021/03   »
일 월 화 수 목 금 토
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

링크

  • Total : 263575
  • Today : 32
  • Yesterday : 43
Tattertools
Eolin
rss

어른왕자's blog is powered byTattertools1.1.2.2 : Animato