Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Compiling SC

Single Click discussions / bugs
Post Reply
User avatar
ender
8
8
Posts: 13
Joined: 2014-01-19 23:16

Compiling SC

Post by ender »

I want to do a few small modifications to SC winvnc.exe (translation, include manifest), so I need to recompile winvnc. This works fine, but the resulting executable depends on newer VC runtime (msvcr80.dll), while the original one is linked against msvcrt.dll. How is the official SC compiled to use msvcrt.dll (compiling with VS6 doesn't work for me, and I wasn't successful trying to use the compiler from DDK)?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6879
Joined: 2004-04-23 10:21
Contact:

Re: Compiling SC

Post by Rudi De Vos »

We still use VC6.0 for SC so we can compile with use of runtime dll's as thoose libs are included with the OS.
You can link with msvcrt when you use a newer compiler.

If you use another compiler and don't want to add the redist files (*80.dll) you need to change the runtime library.

Code generation
/MD = use external libs
/MT = libs are build in the exe
As result the exe wil be a lot bigger, but it doesn't depend on other libs.
User avatar
ender
8
8
Posts: 13
Joined: 2014-01-19 23:16

Re: Compiling SC

Post by ender »

OK, looks like my VS6 install was broken - after reinstalling VS6 and Platform SDK 2003, I got SC to compile.

BTW, any idea why VNC viewer takes about a minute to display it's window (after accepting connection from SC) when the server has desktop composition (Aero) enabled?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6879
Joined: 2004-04-23 10:21
Contact:

Re: Compiling SC

Post by Rudi De Vos »

As more people start reporting a 1 minute delay it's time to find a solution....
First we need to find when it happen ?
Server OS ?
direct using a repeater ?

I need to be able to repeat it when running SC in debug mode ...
User avatar
ender
8
8
Posts: 13
Joined: 2014-01-19 23:16

Re: Compiling SC

Post by ender »

As far as I can see, it happens regardless of Windows version when desktop composition is enabled (if SC is allowed to disable composition, the picture appears immediately; since composition cannot be disabled on Windows 8 and up, the problem is always visible with these versions, but when [WALLPAPER] is used, the problem can be reproduced on Vista and 7). Repeater doesn't have any effect on the problem.

I also noticed that the tray icon (on server) doesn't respond while the client is waiting for the picture to appear.
Post Reply