Compiling WinVNC

Nathaniel Byrd techy "at" thinice.com
Thu, 25 Mar 1999 14:59:25 +0000


Brendin,
A implicit cast to (HINSTANCE) cleared that up for me.  I believe the line
was:
hInstance = hInst;
to:
hInstance = (HINSTANCE)hInst;

This was one of the only changes I had to make to compile on 6.0, btw.  Hope
this helps,

Nathaniel Byrd
Voice Technologies, Inc.
----- Original Message -----
From: Brendin Emslie <bemslie1 "at" telusplanet.net>
To: <vnc-list "at" uk.research.att.com>
Sent: Wednesday, March 24, 1999 7:21 PM
Subject: Compiling WinVNC


> Compiling...
> VNCHooks.cpp
> C:\vnc\vnc_winsrc\winvnc\VNCHooks\VNCHooks.cpp(101) : error C2440: '=' :
> cannot convert from 'void *' to 'struct HINSTANCE__ *'
>         Conversion from 'void*' to pointer to non-'void' requires an
> explicit cast
> Error executing cl.exe.
>
> WinVNC.exe - 1 error(s), 0 warning(s)
>
> This is what happens when I compile the winvnc with the no_corba config
> under Microsoft c++ ver 6... The winvnc viewer compiles without error.
>
> Anyone know why this is?
>
> Thanks,
> Brendin



---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------