Compiling WinVNC

James [Wez] Weatherall jnw "at" uk.research.att.com
Thu, 25 Mar 1999 11:34:50 +0000


On Wed, 24 Mar 1999, Brendin Emslie wrote:

> 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.

Yes.  It's because I implicitely cast a HANDLE into an HINSTANCE, which VC
5 likes and VC 6 doesn't.  The currently available source code on our web
site should conatin the patch for this.  (If not then let me know!)

Cheers,

James "Wez" Weatherall
--
Laboratory for Communications Engineering, Cambridge - Tel : 766513
AT&T   Laboratories, Cambridge, UK                   - Tel : 343000


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