FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
519 stars 1.61k forks source link

Errors when compiling with VS2015 #142

Open langazov opened 8 years ago

langazov commented 8 years ago

1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(347): error C2440: '=': cannot convert from 'BOOL (cdecl )(freerdp ,char ,char ,char )' to 'pVerifyCertificate' 1> C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(347): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(846): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,rdpPointer )' to 'pPointer_New' 1> C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(846): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(848): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,rdpPointer *)' to 'pPointer_Set' 1> C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(848): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(849): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext )' to 'pPointer_SetNull' 1> C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(849): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(850): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext )' to 'pPointer_SetDefault' 1> C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(850): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(961): warning C4838: conversion from 'UINT32' to 'unsigned char' requires a narrowing conversion 1>C:\Work\FreeRDP-WebConnect\wsgate\RDP.cpp(961): warning C4838: conversion from 'unsigned int' to 'unsigned char' requires a narrowing conversion 1> Update.cpp 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(44): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext )' to 'pBeginPaint' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(44): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(45): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext )' to 'pEndPaint' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(45): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(46): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,rdpBounds )' to 'pSetBounds' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(46): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(47): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext *)' to 'pSynchronize' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(47): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(48): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext )' to 'pDesktopResize' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(48): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(49): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,BITMAP_UPDATE *)' to 'pBitmapUpdate' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(49): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(50): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,PALETTE_UPDATE )' to 'pPalette' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(50): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(51): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,PLAY_SOUND_UPDATE )' to 'pPlaySound' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(51): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(52): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,SURFACE_BITS_COMMAND )' to 'pSurfaceBits' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(52): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(54): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,UINT8,RECTANGLE_16 )' to 'pRefreshRect' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(54): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(55): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,UINT8,RECTANGLE_16 *)' to 'pSuppressOutput' 1> C:\Work\FreeRDP-WebConnect\wsgate\Update.cpp(55): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1> Primary.cpp 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(43): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,DSTBLT_ORDER )' to 'pDstBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(43): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(44): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,PATBLT_ORDER )' to 'pPatBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(44): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(45): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,SCRBLT_ORDER *)' to 'pScrBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(45): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(46): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,OPAQUE_RECT_ORDER *)' to 'pOpaqueRect' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(46): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(47): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,DRAW_NINE_GRID_ORDER )' to 'pDrawNineGrid' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(47): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(48): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,MULTI_DSTBLT_ORDER )' to 'pMultiDstBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(48): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(49): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,MULTI_PATBLT_ORDER )' to 'pMultiPatBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(49): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(50): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,MULTI_SCRBLT_ORDER )' to 'pMultiScrBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(50): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(51): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,MULTI_OPAQUE_RECT_ORDER )' to 'pMultiOpaqueRect' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(51): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(52): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,MULTI_DRAW_NINE_GRID_ORDER )' to 'pMultiDrawNineGrid' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(52): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(53): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,LINE_TO_ORDER )' to 'pLineTo' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(53): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(54): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,POLYLINE_ORDER )' to 'pPolyline' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(54): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(55): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,MEMBLT_ORDER *)' to 'pMemBlt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(55): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(56): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,MEM3BLT_ORDER )' to 'pMem3Blt' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(56): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(57): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,SAVE_BITMAP_ORDER )' to 'pSaveBitmap' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(57): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(58): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,GLYPH_INDEX_ORDER )' to 'pGlyphIndex' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(58): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(59): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,FAST_INDEX_ORDER )' to 'pFastIndex' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(59): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(60): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,FAST_GLYPH_ORDER )' to 'pFastGlyph' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(60): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(61): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,POLYGON_SC_ORDER )' to 'pPolygonSC' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(61): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(62): error C2440: '=': cannot convert from 'void (cdecl )(rdpContext ,POLYGON_CB_ORDER )' to 'pPolygonCB' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(62): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(63): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,ELLIPSE_SC_ORDER )' to 'pEllipseSC' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(63): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1>C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(64): error C2440: '=': cannot convert from 'void (__cdecl )(rdpContext ,ELLIPSE_CB_ORDER *)' to 'pEllipseCB' 1> C:\Work\FreeRDP-WebConnect\wsgate\Primary.cpp(64): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1> myBindHelper.cpp 1> myWsHandler.cpp

c64cosmin commented 8 years ago

You could download it from here: https://www.cloudbase.it/downloads/FreeRDPWebConnect.msi https://www.cloudbase.it/downloads/FreeRDPWebConnect_Beta.msi

I recommend the beta if you just do some testing.

langazov commented 8 years ago

I tried it. I need some additional options in the config. When I use it with Windows 7 it make the screen look broken. I did some tests directly with FreeRDP client, and it looked the same on it. After playing little bit with the options,I found out that the reason is the GDI rendering, and when I switch to Software GDI , it looks fine. So, Do you have an option to use SoftwareGDI in your binary ? If not, I will need to set this flag and compile it. And I will be very grateful if I receive some help. Regards, Emil