Developing Windows Applications by Mykola Dudar

Helping Developers Build Applications for Windows using Visual Studio.

Browse by Tags

Tagged Content List
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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)...
  • Blog Post: 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...
  • Blog Post: 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 way to my blog...
  • Blog Post: VS2005 SP1 does update VC++ redistributable MSMs in \common files\merge 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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 = ...
  • Blog Post: 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...
  • Blog Post: Silent installs of VCRedist.EXE shipped with VS2005

    Aaron has a post on his blog that describes way of silent install of VCRedist.EXE. I though I would cross-link it from my blog in case some folks are interested in this information. Here is the link http://blogs.msdn.com/astebner/archive/2007/02/07/update-regarding-silent-install-of-the-vc-8-0-runtime...
  • Blog Post: Junfeng Zhang describing ways of diagnosing SxS failures

    Junfeng has an interesting walkthrough on how diagnose SxS failures and brief introduction of new tool available on Vista. One may find it here, http://blogs.msdn.com/junfeng/archive/2006/04/14/576314.aspx .
  • Blog Post: Aero Wizards (Windows Vista style wizards) in MFC8 (VS2005)

    Almost a year ago I was looking on new Vista features to estimate amount of changes to an existing MFC application required to add support for this features. One of these features is new Aero-style wizards that replace Wizard97 on Windows Vista. I have built a small demo that I have used for building...
  • Blog Post: Calling methods of deleted object

    I came across an interesting discussion today. A person who asked the question called a method of C++ object after it was deleted. And it worked. I guess if I have ever attempted to do something like this, it failed for me and I have not had a chance to ask this question. Here is the code snippet (copying...
  • Blog Post: Norton WinDoctor errors about msvcr80.dll

    Another email came in my inbox today. It is about Norton WinDoctor issuing errors about msvcr80.dll. If one does "One Button Checkup" with Norton WinDoctor 9.0 after .Net Framework 2.0 or Visual Studio 2005 is installed. It usually gives about all ten errors are in subfolders from C:\WINDOWS\Microsoft...
  • Blog Post: Codeguru slow chat or where I spend my time

    Sorry, I know I promised more information about STL/CLR and did not keep my promise last two days. It is just I have a portion of my time dedicated to emails from you or posts made by you on forums or in newsgroups. In particular last two days I have spent that portion of time on either discussing posts...
  • Blog Post: Applocal deployment of MFC localized resource DLLs

    It was pointed out to me that it is not clear from Docs how to redistribute MFC localized DLLs with MFC application in application local folder. Again while doc team is updating docs, I have put together a quick sample. If you have MFC application MyApplication.exe and you are going to redistribute...
  • Blog Post: Visual C++ 2005 Redistributable Package is released to the web

    VCRedist.exe can now be downloaded from the Microsoft site. This package contains VS2005 RTM versions of all VC libraries – OpenMP, MFC, ATL, CRT, MSDIA. It installs and registers all them. Side-by-side assemblies such as MFC, CRT, MFC LOC and ATL are installed into a shared location (%SYSTEMROOT%\WinSxS...
  • Blog Post: Feedback on VS2005

    You probably already know that VS2005 has been released. Just a small note. One can still use Product Feedback site, http://lab.msdn.microsoft.com/ProductFeedback/ to report bugs and suggestions to VS2005 even after it is released. Bugs are still upload to internal database and triaged there. And, of...
  • Blog Post: VS2005 docs are online!

    I would like to let readers know that most of material that I have on my blog in regard of Fusion and VC++ libs, manifests and other side-by-side things, all or most of this is already available in a form of VC++ docs online on http://msdn2.microsoft.com . It is actually online for quite some time, but...
  • Blog Post: Running C++ application built by VC++ Express on another computer

    Another FAQ from VC++ Express users is: "I give my VC++ application to my friend, and it does not run on her computer." This happens because VC++ Dlls have to be redistributed to another computer together with this application. There are three ways to get an application built with VC++ Express...
  • Blog Post: Complete example for MFC/Winforms integration

    Just posted on MSDN a sample of MFC/Windows Forms integration as it is in Visual Studio 2005. Please be advised that some parts of it may not work with early builds of VS2005. However it should all work on release of VS2005. Here is the link http://www.microsoft.com/downloads/details.aspx?FamilyID...
  • Blog Post: Windows Forms and MFC Integration using CWinFormDialog

    One of the primary scenarios around integration of Windows Forms into an existing MFC application is around showing a Windows Form as a dialog, similar to CDialog class in MFC. Developer can create a MFC representation of an existing Windows Form control (System::Windows::Form::Control) created in either...
  • Blog Post: Resolving application dependency on Visual C++ libraries

    When you use Visual C++ to build windows applications, a key step to guarantee that your application runs on another computer is to ensure that you deploy all dependencies of your application to that computer. At the minimum, your applications depends on Visual C++ libraries such as MFC, CRT, Standard...
  • Blog Post: Using tools without installing Visual Studio

    Recently another issue has come up another FAQ. Folks try using tools without installing Visual Studio and some additional work has to be done for Beta 1 or CTP of Visual Studio 2005. Just FYI, this is unsupported way to use VC++ tools and my recommendations are as-is with no guarantees. However if a...
Page 1 of 2 (27 items) 12