Visual C++

Visual Studio 2012 – Enable / Disable IntelliSense for “Visual C#”

One of the great features of Visual Studio IDE (Integrated Development Environment) is its IntelliSense feature. IntelliSense provides code elements that you can select when you are coding; which indirectly increases productivity. IntelliSense enables to show members list, parameter info, quick info and completes the word. This article explains how to enable or disable IntelliSense. […]

COM – Creating a COM Component using C++ – IClassFactory implementation

CoCreateInstance depends on IClassFactory to create class instances. We have looked into IClassFactory‘s methods and we have implemented these methods in our previous article. Let’s include IClassFactory‘s implementation into our HelloComponent. We already have HelloComponent‘s declaration in the “HelloComponent.h” file and its implementation in the “HelloComponent.cpp” file. In the same way, we will add the IClassFactory […]

COM – Creating a COM Component using C++ – IClassFactory

In our previous article, we have identified that CoCreateFunction is requesting an instance of IClassFactory. Why CoCreateInstance is requesting an instance of IClassFactory? One of the goals of the COM is to locate the objects easily without worrying about where they are located and where they are housed; whether they are housed in in-process, local, or remote. in-process means, the […]

COM – Creating a COM Component using C++ – Inside CoCreateInstance

As we discussed in our previous articles, COM’s CoCreateInstance function is used to create instances for COM classes. What is happening inside the CoCreateInstance function? When the client program calls CoCreateInstance to create an instance of COM class: It actually internally calls another function CoGetClassObject CoGetClassObject checks the registry entries for CLSID which was passed through […]

Passing class member function as a controlling function to AfxBeginThread (VC++)!

In Visual C++, usually we use AfxBeginThread function to create a Thread which will run the piece of code concurrently. AfxBeginThread function can be useful to create both worker thread and an user-interface thread. This article explains the first flavor of AfxBeginThread function which is useful to create worker threads. How to create worker threads? The […]

Scroll to top