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

My developer's diary: Episode 1

Post Reply
lolo
Posts: 4
Joined: 2004-10-06 22:34

My developer's diary: Episode 1

Post by lolo »

First of all, I downloaded UltraVNC 1.0.1 source code. I was happy because it seemed that I could find everything to compile it inside. I had installed VC6++ SP5 and processor pack because I had read that it was the requirement to compile.

The first problem was that aclui.h wasn't found when I built winvnc. I searched in the forum and I found that the last SDK was the solution. So I installed last MS plataform SDK (http://www.microsoft.com/downloads/deta ... laylang=en)

However, this didn't fix the situation and I still get errors when I compile like this:

Code: Select all

ldapAuth.cpp
Linking...
   Creating library ..\..\Release/ldapauth.lib and object ..\..\Release/ldapauth.exp
adsiid.lib(guid.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.
To fix that, I copy files that message says, for example, adsii.lib from c:\Program Files\Microsoft Visual Studio\VC98\Lib\ADSIID.LIB (VC6 SP5 with processor pack) to E:\Microsoft Platform SDK\Lib\ADSIid.Lib (where is installed MS Plataform SDK) and re-build.

After all, I get that code compiles in release configuration but with 38 warnings. Is that ok or I would have to get 0 warnings? If I select debug configuration, I also get that code compiles with 38 warnings and this last message:

Code: Select all

Linking...
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library

winvnc.exe - 0 error(s), 38 warning(s)
To sum up, I have several questions that I would be grateful if someone answers these questions:
- If everything is okay, would I get warnings when I build winvnc?

- MS Plataform SDK I downloaded website says "This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition" so, which MS plataform SDK is it supossed is the last for you? Last available (Windows® Server 2003 SP1 Platform SDK Web Install) or maybe another? I think that copy files that fail in building process in plataform sdk directory is not okay so this could be the reason.

- In Tools - Options - Directories I added E:\Microsoft Platform SDK\Include in the top of include directories and E:\Microsoft Platform SDK\Lib in the top of Library directories, is that okay?

- I'm developing an UltraVNC version with smartcard support so I would be grateful I could read the developer discussions forum, could someone give me rights, please?

And that's all today, thanks in advance for supporting.

Lolo.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Post by Rudi De Vos »

+Yep, there are warnings
+SDK for server 2003 is used
+SDK, just include it via options (include/lib), only be sure to put it as first. ORDER is important
lolo
Posts: 4
Joined: 2004-10-06 22:34

Post by lolo »

Rudi De Vos wrote:+Yep, there are warnings
+SDK for server 2003 is used
+SDK, just include it via options (include/lib), only be sure to put it as first. ORDER is important
Thanks, I supposed that but now I'm sure everything is ok.

To recapitulate, everyone that wants to compile source code must do the following:

- Visual C++ 6.0
- SP 5
- Processor Pack for SP 5
- Microsoft Plataform SDK 2003 (not 2003 SP1). The good version is dated on February 2003.
- Put include and lib MS Plataform SDK directories at the first place in Tools - Options - Directories.

If you do all this, you will build winvnc without problems although there will be warning but it's ok.

Well, Episode 1 of my diary seems to be over...
ziesemer

Post by ziesemer »

Are there specific issues to using the 2003 SP1 SDK over the non-SP1? Could you address any details here, or provide a link to them?

What about Visual C++ 2005 Express? The benefit here would be the ability to use a FREE compiler for a FREE project.

Attempting to use Visual C++ 2005 Express, I made it much farther than I did with a Borland attempt, but am stuck at the following error while trying to compile the viewer:

Code: Select all

Generating Code...
Compiling resources...
.\res\vncviewer.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
This is after installing the 2003 SP1 SDK, and adding the SDK "Include" and "Lib" directories to the proper places in the IDE options.

I found that a "afxres.h" lives in a subdirectory in Include\mfc, and attempted to include this directory, but it only made things worse. I'm curious about this comment in vncviewer.rc:

Code: Select all

// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
This would lead me to believe that the project would try to create it's own file based on other resources, but I can't find any other information on this.

I'm trying to compile from the "UltraVnc-101-src.zip" download off of SourceForge, not from CVS, as I just want to make one simple fix, and want to be otherwise equivalent to 1.0.1, not to whatever else has since been done to CVS. I'd assume that this code is what was used to build the 1.0.1 release, but I find that hard to believe considering some other blatant errors I found in the source - namely, 2 for loops that used undeclared "i" and "b" variables which I had to fix.

Any ideas would be appreciated - thanks!!
ziesemer

Post by ziesemer »

Well, I'm now trying it on a computer with a full version of Microsoft Visual Studio 2005. Still had to fix a missing declaration of an int for an 'i' in a for loop in ClientConnection.cpp on line 2382.

Here's my errors:

1>Linking...
1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

This time, I'm operating on HEAD from CVS.

So frustrating...
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Post by Rudi De Vos »

To get it compiled on VS2005 there are several changes needed.

VC6.0
int i;
for ( i=0;i<xx;i++)
VS2005
for (int i=0;i<xx;i++)
Syntax changed

Manifest, just remove it from the resources. VS2005 generates his own manifest.
lolo
Posts: 4
Joined: 2004-10-06 22:34

Post by lolo »

ziesemer wrote:Are there specific issues to using the 2003 SP1 SDK over the non-SP1?
Yes, there are specific MS PSDK SP1 issues. For example, the first time I tried to compile I got error messages like "linking error" and it was because of version of some files that were too new (I had installed MS PSDK 2003 server SP1)... I fixed that copying files from VC SP5 to MS PSDK. Later I understood that all these problems disappear when you use MS PSDK 2003 (february 2003 edition).
ziesemer
Posts: 2
Joined: 2006-01-21 00:42
Location: Wausau, WI
Contact:

Post by ziesemer »

Rudi De Vos wrote:Manifest, just remove it from the resources. VS2005 generates his own manifest.
Which/how? I removed res\vncviewer.exe.manifest, and now I got this:

Code: Select all

5>.\res\vncviewer.rc(55) : error RC2135 : file not found: vncviewer.exe.manifest
ziesemer
Posts: 2
Joined: 2006-01-21 00:42
Location: Wausau, WI
Contact:

Post by ziesemer »

Fixed! For anyone else having the same problem - http://groups.yahoo.com/group/wtl/message/11826

Project Properties, Configuration Properties, Manifest Tool, Input and Output, Embed Manifest = No
ninhdh
Posts: 1
Joined: 2006-03-08 02:15

Post by ninhdh »

2 All
I installed the following :

- Visual C++ 6.0
- SP 5
- Processor Pack for SP 5
- Microsoft Plataform SDK 2003 SP1 (a upgrade version of SDK 2003 , I can't find any url to download Microsoft Plataform SDK 2003).
- Put include and lib MS Plataform SDK directories at the first place in Tools - Options - Directories.

But I still can't rebuild ultravnc, it still shows error message :

C:\Projects\UltraVNC\sources\winvnc\ms-logon\authSSP\authSSP.cpp(191) : error C2065: 'SecureZeroMemory' : undeclared identifier
EventLogging.cpp
GenClientServerContext.cpp
vncAccessControl.cpp
vncSecurityEditor.cpp
C:\Program Files\Microsoft Platform SDK\Include\aclui.h(236) : error C2061: syntax error : identifier 'PINHERITED_FROM'
vncSSP.cpp


Pls help me urgent!!!!!!!!

Thanks in advance!
Ninh Dao
Marscha
Former moderator
Former moderator
Posts: 464
Joined: 2004-05-14 06:48

Post by Marscha »

"error C2065: 'SecureZeroMemory' : undeclared identifier" normally indicates that the include path does not include the Platform SDKs include files.
creat
Posts: 7
Joined: 2006-03-14 02:03

similar problems

Post by creat »

im having similar problems but in my case i just don't find an up-to-date svn or cvs server, they all contain SC code only or version 1.0.1 from august.

Any ideas where is the current dev code? it seems like it's not maintain in sourceforge anymore and no current code is public
Last edited by creat on 2006-03-15 00:07, edited 1 time in total.
Puppet
20
20
Posts: 38
Joined: 2006-08-16 13:51
Location: US
Contact:

Manifest problem during viewer compiling

Post by Puppet »

The quote below is from an earlier post in this thread.
ziesemer wrote:Fixed! For anyone else having the same problem - http://groups.yahoo.com/group/wtl/message/11826

Project Properties, Configuration Properties, Manifest Tool, Input and Output, Embed Manifest = No
The above solution does indeed work. I just compiled the viewer using VS2005 and had to perform the above mentioned steps to disable the manifest.
The grass may not be greener on the other side, but it just might have less weeds...
.
;)
.
frankmt
Posts: 1
Joined: 2007-06-04 23:30

Post by frankmt »

ziesemer wrote:

Code: Select all

Generating Code...
Compiling resources...
.\res\vncviewer.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
I'm having the same problem. Does anyone know how to solve it?

Thanks!
Francisco
Last edited by frankmt on 2007-06-04 23:33, edited 1 time in total.
Post Reply