diff options
author | Adam Tkac <atkac@redhat.com> | 2009-10-08 11:49:12 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2009-10-08 11:49:12 +0000 |
commit | 8517ea56a741f728ef290f54b77d736251f04b22 (patch) | |
tree | 07b6767e1b57adf454ebb997332f8139aec66a87 /win/winvnc | |
parent | f081381dcabe8fc555cfa7e4339748ff521a7b2b (diff) | |
download | tigervnc-8517ea56a741f728ef290f54b77d736251f04b22.tar.gz tigervnc-8517ea56a741f728ef290f54b77d736251f04b22.zip |
[Bugfix] Fix MS Visual Studio 2008 compilation issues.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3912 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/winvnc')
-rw-r--r-- | win/winvnc/ControlPanel.cxx | 8 | ||||
-rw-r--r-- | win/winvnc/winvnc.rc | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/win/winvnc/ControlPanel.cxx b/win/winvnc/ControlPanel.cxx index 74282303..59bb511a 100644 --- a/win/winvnc/ControlPanel.cxx +++ b/win/winvnc/ControlPanel.cxx @@ -18,9 +18,9 @@ bool ControlPanel::showDialog() void ControlPanel::initDialog() { TCHAR *ColumnsStrings[] = { - "IP address", - "Time connected", - "Status" + (TCHAR *) "IP address", + (TCHAR *) "Time connected", + (TCHAR *) "Status" }; InitLVColumns(IDC_LIST_CONNECTIONS, handle, 120, 3, ColumnsStrings, LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM, @@ -90,7 +90,7 @@ void ControlPanel::UpdateListView(rfb::ListConnInfo* LCInfo) for (ListConn.iBegin(); !ListConn.iEnd(); ListConn.iNext()) { ListConn.iGetCharInfo(ItemString); - InsertLVItem(IDC_LIST_CONNECTIONS, handle, i, ItemString, 3); + InsertLVItem(IDC_LIST_CONNECTIONS, handle, i, (TCHAR **) ItemString, 3); for (ListSelConn.iBegin(); !ListSelConn.iEnd(); ListSelConn.iNext()) { if (ListSelConn.iGetConn() == ListConn.iGetConn()) SelectLVItem(IDC_LIST_CONNECTIONS, handle, i); diff --git a/win/winvnc/winvnc.rc b/win/winvnc/winvnc.rc index 43876297..56ce5986 100644 --- a/win/winvnc/winvnc.rc +++ b/win/winvnc/winvnc.rc @@ -7,7 +7,7 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" +#include "windows.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -34,7 +34,7 @@ END 2 TEXTINCLUDE DISCARDABLE BEGIN - "#include ""afxres.h""\r\n" + "#include ""windows.h""\r\n" "\0" END |