Thanks for working on the code and sharing.
In the last days I tried to compile the 2019 source, but always get errors. I tried several things, cleaned up the directories and so on, but without success.
For many years now I always got it to work, in the last years with the 2015 source. There are always lots of warnings but the exe worked fine.
Now these 3 LNK2019-errors are remaining:
- Code: Select all
videodriver.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: int __thiscall ScreenCapture::osVersion(void)" (?osVersion@ScreenCapture@@IAEHXZ)" in Funktion ""public: __thiscall VideoDriver::VideoDriver(void)" (??0VideoDriver@@QAE@XZ)".
videodriver.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall ScreenCapture::ScreenCapture(void)" (??0ScreenCapture@@QAE@XZ)" in Funktion ""public: __thiscall VideoDriver::VideoDriver(void)" (??0VideoDriver@@QAE@XZ)".
vncdesktop.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall DeskDupEngine::DeskDupEngine(void)" (??0DeskDupEngine@@QAE@XZ)" in Funktion ""protected: int __thiscall vncDesktop::InitVideoDriver(void)" (?InitVideoDriver@vncDesktop@@IAEHXZ)".
.\..\Debug/winvnc.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise.
Could you help please? (Sorry I didn't find out how to post without line-wrap)
And on this occasion: in the source there are a lot of changes to 2015, some new files, but one piece of code is irritating me. In videodriver.cpp:
- Code: Select all
hFile0 = CreateFile("c:\\video0.dat", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
hFile1 = CreateFile("c:\\video1.dat", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
...
What is this for? In root-directory users usually have no write access. Here file creation would fail.