Compiling SC

Single Click discussions / bugs

Compiling SC

Postby ender » 2015-02-04 22:29

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
ender
8
8
 
Posts: 12
Joined: 2014-01-19 23:16

Re: Compiling SC

Postby Rudi De Vos » 2015-02-05 11:35

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.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Compiling SC

Postby ender » 2015-02-05 16:18

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
ender
8
8
 
Posts: 12
Joined: 2014-01-19 23:16

Re: Compiling SC

Postby Rudi De Vos » 2015-02-06 15:00

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 ...
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Compiling SC

Postby ender » 2015-02-06 16:17

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.
User avatar
ender
8
8
 
Posts: 12
Joined: 2014-01-19 23:16


Return to SC

Who is online

Users browsing this forum: No registered users and 1 guest