Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Compiling MSLogonACL

Should you have problems with the MS logon plugin, here's the place to look for help or report issues
Post Reply
Sentax
Posts: 5
Joined: 2006-06-08 19:24

Compiling MSLogonACL

Post by Sentax »

So I've tried my hardest to not post a question and to get the out of the box source to compile but I have to come here.

Here is my Build Log:

Code: Select all

Create Buildtime for VERSIONINFO
buildtime.in
Compiling...
vncExportACL.cpp
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications.  To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
C:\temp\src\ultravnc\winvnc\ms-logon\MSLogonACL\vncExportACL.cpp(136) : error C2664: 'wcstombs' : cannot convert parameter 2 from 'char *' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\temp\src\ultravnc\winvnc\ms-logon\MSLogonACL\vncExportACL.cpp(137) : error C2664: 'wcstombs' : cannot convert parameter 2 from 'char *' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
vncImportACL.cpp
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications.  To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
C:\temp\src\ultravnc\winvnc\ms-logon\MSLogonACL\vncImportACL.cpp(382) : error C2664: 'wcstombs' : cannot convert parameter 2 from 'char *' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

MSLogonACL.exe - 3 error(s), 0 warning(s)
What is this wcstombs function? I've seen other topics out there mentioning Unicode. I'm not sure exactly what I need to change but I would expect that source from sourceforge would be ok and I wouldn't have to change anything to Unicode since that was seem to have been taken care of a while ago.

So. Someone please help me to get ultravnc compiled on VCC.

BTW. I have VCC 6.0, SP5, Processor Pack, and SDK installed with all settings changed to VCC and PATH variables set.

So, what next my friends? :D

[mod=494,1150449717]moved from General help to MS Logon[/mod]
Last edited by Sentax on 2006-06-16 09:21, edited 1 time in total.
Marscha
Former moderator
Former moderator
Posts: 464
Joined: 2004-05-14 06:48

Post by Marscha »

The reference to NT 5 beta indicates that you either have an SDK that is too old or have not included the SDK correctly.
Make sure that the Include and Lib directories of the SDK are configured appropriately.
See [post=23461][/post] for more info.

wcstombs is WideCharStringToMultiByteString.
This is about Unicode conversion.
But it should compile without modifications once the SDK setup is OK.
Sentax
Posts: 5
Joined: 2006-06-08 19:24

Post by Sentax »

You were exactly correct! Thank you!

Ok my problem was that I had the includes to the .Net 2003 Includes folder and not the Platform SDK Includes directory and the same for the Lib.

Wow sure does compile nice once everything is set!

Thanks!
Post Reply