summaryrefslogtreecommitdiffstats
path: root/win/winvnc
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-10-08 11:49:12 +0000
committerAdam Tkac <atkac@redhat.com>2009-10-08 11:49:12 +0000
commit49e1a12fa7e48f37b456a93a570bc13322e48fc5 (patch)
tree0a83a82f43e58c00c1418858994636d033347757 /win/winvnc
parent24b930f1b87ac1c57d28fbee56cdb7305e725238 (diff)
downloadtigervnc-49e1a12fa7e48f37b456a93a570bc13322e48fc5.tar.gz
tigervnc-49e1a12fa7e48f37b456a93a570bc13322e48fc5.zip
[Bugfix] Fix MS Visual Studio 2008 compilation issues.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3912 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/winvnc')
-rw-r--r--win/winvnc/ControlPanel.cxx8
-rw-r--r--win/winvnc/winvnc.rc4
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 b1104b5b..275f4524 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