Creating native code C/C++ client to WCF services that uses wsHttpBinding with WWSAPI

Several developers have asked me this question and I have decided to create one blog post with the answer. If you use Windows 7 Beta version of wsutil.exe, you would see that it might not generate _CreateServiceProxy helper function in some cases for services that use WsHttpBinding. In Beta, wsutil.exe would issue the following warning:…

0

How to fix "Cannot add event handler because code element marked as read-only" in VS2005 and VS2008

Today VS2008 SP1 pop up an error dialog when I was editing MFC dialog box in VS2008 SP1. The error was saying something like “Cannot add event handler because code element CMainDlg marked as read-only”. Clearly neither .cpp nor .h file for this class was not marked as read-only. Actually none of files in directory were marked…

4

WCF in VS2008 – Hosting is required for Ctrl+F5

Here is another interesting feature of VS2008 about which I could not find any documentation about on MSDN. If we go back to the example from my last post, debugging (F5) the WCF Service Client project is going to start WCF Host Service. However running the same WCF Service client program (Ctrl+F5) is going to…

3

WCF in VS2008 – Basic Service and Client over HTTP channel

Looking through documentation for Windows Communication Foundation (WCF) on MSDN, I am surprised to find almost none information about cool  features of VS2008 added specifically to make development with WCF in VS2008 easier. Most of topics still talk about VS2005.  So I have decided to put a start into this and publish a small “Getting…

14

Using C# in C++ project with Visual Studio 2005

Today when I have been cleaning folders on my hard drive, I have found yet another demo project.  I have built it sometime ago to demonstrate how how one can have C# and C++ project in one solution and link them both into one binary using C++ linker. It looks like it had never found its…

2

VS2005 SP1 does update VC++ redistributable MSMs in common filesmerge modules

I thought I should write a short post on this issue. It had been discussed before on forums and in bugs. Long story short, VS2005 SP1 does update all VC++ redistributable MSMs in \Program Files\Common Files\Merge Modules. Or I guess I should say, it is built to update them. However if it did not update…

2

VS2005 SP1 version of Visual C++ Redistributable Package is available for download.

Actually it has been available for download for several days now, but I was looking on Orcas features and completely forgot to mention it on my blog. Here they are: Visual C++ 2005 SP1 Redistributable Package (x64) Visual C++ 2005 SP1 Redistributable Package (IA64) Visual C++ 2005 SP1 Redistributable Package (x86) You can use the…

7

Workaround for using VS2005 SP1 version of VCRedist.EXE within a boostrapper (setup.exe)

A reader of the previous post on my blog has posted two questions about using SP1 version of VCRedist.EXE as a boostrapper package. I felt that the topic is important enough to discuss it in a dedicated post rather than comments on another post. Here are quotes of original comments:   I’m trying to redistribute…

10

A solution to two references to different versions of CRT, MFC, ATL in one application manifest file

I have received several questions about a case when developers find two or more references to different versions of CRT or MFC or ALT libraries in application manifest. Usually application manifest would look similar to the following: <?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?> <assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″>   <dependency>     <dependentAssembly>       <assemblyIdentity type=”win32″ name=”Microsoft.VC80.CRT” version=”8.0.50727.762″ processorArchitecture=”x86″ publicKeyToken=”1fc8b3b9a1e18e3b”></assemblyIdentity>…

24

Q&A on adapting VS2005 SP1 to build your applications

  When VS2005 SP1 has been released, because of manifests it become more visible what version of VC++ DLLs are used at runtime by applications built with SP1. Devs have noticed that once they have built their application with VS2005 SP1, it wants to load SP1 version of VC++ libraries and refuses to load RTM…

10