[THIN] Re: SMC Console in SDK

  • From: Warren Simondson <caditc@xxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 25 Sep 2009 16:24:37 +1000

Hi Jim

You're not alone in going nuts by trying compile Citrix SDK's in general in 
2008. they wrote most 
of them in VS 2003 and have never got around to documenting the required 
changes. anywho, 
here we go:

1. Assume you have VS 2008 installed in C:\Program Files\Microsoft Visual 
Studio 9.0\
2. Assume you have the Citrix SDK loaded in C:\Program Files\Citrix\MPSSDK\
3. Assume the SMC code is in C:\Program Files\Citrix\MPSSDK\vc\smc
4. copy mfcom.h from C:\Program Files\Citrix\MPSSDK\vc\inc to C:\Program 
Files\Microsoft 
Visual Studio 9.0\VC\include (this is the quickest way to avoid make path 
statements within the 
program)
5. copy mfcom.lib from C:\Program Files\Citrix\MPSSDK\vc\lib to :\Program 
Files\Microsoft Visual 
Studio 9.0\VC\lib
6. copy MfcomSmcApi.h from C:\Program Files\Citrix\MPSSDK\vc\smc\inc to 
C:\Program 
Files\Microsoft Visual Studio 9.0\VC\include
7. ensure the folder C:\Program Files\Citrix\MPSSDK\vc\smc\Console has full 
permission to the 
current user and NO read only attributes.
8, Open VS 2008
9. file-->open-->project/solution
10. goto C:\Program Files\Citrix\MPSSDK\vc\smc\Console and open smcconsole70.sln
11. the conversion wizard will appear. Press NEXT, NO to the backup, NEXT, then 
FINISH.
12. Press YES to permantently remove source control bindings. then Press CLOSE.
13. In a second the project is ready to modify, but it's not over yet.
14. In the property manager of the project, you'll see Debug|win32 and 
Release|win32 below 
SmcConsole. We'll do the global change here to both debug and release.
15. Double mouse click on SmcConsole and the properties dialog box will appear. 
Another way 
to get to this is to just choose SmcConsole from any of the solution explorer 
or classview 
windows and press PROJECT and then PROPERTIES from the toolbar.
16. In the properties window goto configuration properties-->linker-->input in 
the left side 
window pane
17. In the right side window pane under additional dependancies find 
\sdk\mfsdk\lib\wh32
\retail\dynamic\mfcom.lib in the list od .lib files. change \sdk\mfsdk\lib\wh32
\retail\dynamic\mfcom.lib to just read mfcom.lib and leave everything else the 
same.
18. Press OK to return to the project.
19. THE IMPORTANT BIT: goto Build-->configurtion manager in the toolbar. Citrix 
SDK examples 
will not build in DEBUG mode so you have to build them in Release mode. In the 
Active solution 
configuration drop down box, choose Release. Ensure that WIN32 is the Active 
solution Platform. 
Press close.
19. goto Build-->build SmcConsole in the toolbar.
20. the project will compile and you get a bundle of warnings like this:

.\CDataLogger.cpp(376) : warning C4996: 'wcstombs': This function or variable 
may be unsafe. 
Consider using wcstombs_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. 
See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(534) : 
see declaration 
of 'wcstombs'

This is just garbage about the fact that some old syntax is seen as unsafe and 
you should 
change it to the option provided. Absolute garbage - ignore it.

22. the project should now say:
SmcConsole - 0 error(s), 42 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

And there you go..........

-- 
Warren Simondson

Ctrl-Alt-Del IT Consultancy Pty Ltd

Website: http://www.ctrl-alt-del.com.au








On Fri, Sep 25th, 2009 at 10:33 AM, Jim Cannon <Mach1-70@xxxxxxxxx> wrote:

> Ok I give up.I have downloaded v5 of the MFCOM SDK and I want to
> compile the
> SMC Console.I have Visual Studio 2008 and when the SDK installs it
> says it's
> not a compatible compiler.When I try to compile it fails.Does anyone
> have a
> compiled version I can get or tell me how to compile the one in the
> SDK.It
> would be much appreciated!
> 
> 

************************************************
For Archives, RSS, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
//www.freelists.org/list/thin
Follow ThinList on Twitter
http://twitter.com/thinlist
Thin List discussion is now available in blog format at:
http://thinmaillist.blogspot.com
Thinlist MOBILE Feed
http://thinlist.net/mobile
************************************************

Other related posts: