diff options
Diffstat (limited to 'win/winvnc')
-rw-r--r-- | win/winvnc/JavaViewer.cxx | 2 | ||||
-rw-r--r-- | win/winvnc/Makefile.am | 27 | ||||
-rw-r--r-- | win/winvnc/STrayIcon.cxx | 6 | ||||
-rw-r--r-- | win/winvnc/VNCServerWin32.cxx | 2 | ||||
-rw-r--r-- | win/winvnc/winvnc.rc | 8 |
5 files changed, 39 insertions, 6 deletions
diff --git a/win/winvnc/JavaViewer.cxx b/win/winvnc/JavaViewer.cxx index 15c05c46..ca9c285f 100644 --- a/win/winvnc/JavaViewer.cxx +++ b/win/winvnc/JavaViewer.cxx @@ -21,7 +21,7 @@ #include <winvnc/resource.h> #include <rdr/MemInStream.h> #include <rfb/LogWriter.h> -#include <rfb/VNCserverST.h> +#include <rfb/VNCServerST.h> #include <rfb_win32/TCharArray.h> #define strcasecmp _stricmp diff --git a/win/winvnc/Makefile.am b/win/winvnc/Makefile.am new file mode 100644 index 00000000..da555fe3 --- /dev/null +++ b/win/winvnc/Makefile.am @@ -0,0 +1,27 @@ +bin_PROGRAMS = winvnc4
+
+HDRS = AddNewClientDialog.h ControlPanel.h JavaViewer.h ManagedListener.h \
+ QueryConnectDialog.h STrayIcon.h VNCServerService.h VNCServerWin32.h \
+ resource.h
+
+winvnc4_SOURCES = $(HDRS) buildTime.cxx ControlPanel.cxx JavaViewer.cxx \
+ ManagedListener.cxx QueryConnectDialog.cxx STrayIcon.cxx \
+ VNCServerService.cxx VNCServerWin32.cxx winvnc.cxx
+
+winvnc4_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win
+
+winvnc4_LDADD = $(top_srcdir)/common/rfb/librfb.la \
+ $(top_srcdir)/win/rfb_win32/librfb_win32.la \
+ $(top_srcdir)/common/Xregion/libXregion.la \
+ $(top_srcdir)/common/network/libnetwork.la \
+ $(top_srcdir)/common/rdr/librdr.la resources.o -lws2_32 -lgdi32 \
+ -lole32 -lcomctl32 -lversion
+
+winvnc4_LDFLAGS = -mwindows
+
+EXTRA_DIST = winvnc.rc winvnc.ico connected.ico icon_dis.ico connecte.ico \
+ winvnc4.exe.manifest winvnc.bmp
+
+resources.o: winvnc.rc
+ $(WINDRES) $^ -o $@
+
diff --git a/win/winvnc/STrayIcon.cxx b/win/winvnc/STrayIcon.cxx index 0b10fa5b..354575ad 100644 --- a/win/winvnc/STrayIcon.cxx +++ b/win/winvnc/STrayIcon.cxx @@ -59,8 +59,9 @@ const WORD rfb::win32::AboutDialog::Description = IDC_DESCRIPTION; const UINT WM_SET_TOOLTIP = WM_USER + 1; +namespace winvnc { -class winvnc::STrayIcon : public TrayIcon { +class STrayIcon : public TrayIcon { public: STrayIcon(STrayIconThread& t) : thread(t), vncConfig(_T("vncconfig.exe"), isServiceProcess() ? _T("-noconsole -service") : _T("-noconsole")), @@ -183,7 +184,7 @@ public: switch (command->dwData) { case 1: { - CharArray viewer = new char[command->cbData + 1]; + CharArray viewer(command->cbData + 1); memcpy(viewer.buf, command->lpData, command->cbData); viewer.buf[command->cbData] = 0; return thread.server.addNewClient(viewer.buf) ? 1 : 0; @@ -277,4 +278,5 @@ void STrayIconThread::setToolTip(const TCHAR* text) { PostMessage(windowHandle, WM_SET_TOOLTIP, 0, 0); } +} diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx index 9e8fa887..cd0978b6 100644 --- a/win/winvnc/VNCServerWin32.cxx +++ b/win/winvnc/VNCServerWin32.cxx @@ -112,7 +112,7 @@ void VNCServerWin32::processAddressChange(network::SocketListener* sock_) { _tcscpy(toolTip.buf, prefix); for (i=addrs.begin(); i!= addrs.end(); i=next_i) { next_i = i; next_i ++; - TCharArray addr = *i; // Assumes ownership of string + TCharArray addr(*i); // Assumes ownership of string _tcscat(toolTip.buf, addr.buf); if (next_i != addrs.end()) _tcscat(toolTip.buf, _T(",")); diff --git a/win/winvnc/winvnc.rc b/win/winvnc/winvnc.rc index 56ce5986..db428db6 100644 --- a/win/winvnc/winvnc.rc +++ b/win/winvnc/winvnc.rc @@ -9,6 +9,10 @@ // #include "windows.h" +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif + ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -210,8 +214,8 @@ END // HTTPFILE // -/VNCVIEWER.JAR HTTPFILE DISCARDABLE "..\\..\\java\\src\\com\\tigervnc\\vncviewer\\VncViewer.jar" -/INDEX.VNC HTTPFILE DISCARDABLE "index.vnc" +//VNCVIEWER.JAR HTTPFILE DISCARDABLE "..\\..\\java\\src\\com\\tigervnc\\vncviewer\\VncViewer.jar" +//INDEX.VNC HTTPFILE DISCARDABLE "index.vnc" ///////////////////////////////////////////////////////////////////////////// // |