C Programming – How to create and use object files?
Object files are compiled code modules useful to split large code files into small modules to enable to manage them easily. In this article we...
C Programming – Using bitwise operators
‘C’ provides bitwise operators to deal with bits. Each bit is either “0” or “1”. In this article we are going to discuss how to...
C Programming – Dealing with files – How to use open function to open a file?
We have discussed that ‘C’ provides buffered and un-buffered functions for file management. We have already discussed some of the buffered functions in our previous...
C Programming – Dealing with files – How to fetch a record from the file?
In our previous article, we have used “getrecord” function. We will start this article with this function. We have to implement “getrecord” to fetch a...
C Programming – Dealing with files – How to write to the file?
We have discussed opening & reading from the file in our previous Article “C Programming – Dealing with files – How to read from a...
C Programming – Dealing with files – How to read from a file?
C Programming library provides good number of file handling functions to deal with files and directories or folders. Generally we can classify these functions as:...
C++ – Operator Overloading
One of the beautiful feature of ‘C++’ is it’s ability to support Operator Overloading. ‘C++’ Operator Overloading allows to change the behavior of operators when...
C++: Templates
C++ Templates are used for writing generic programming. C++ allows to define function templates and class templates. In C++, we use template keyword to write...
COM – Creating a COM Component using C++ – IClassFactory implementation
CoCreateInstance is depends on IClassFactory to create class instances. We have looked into IClassFactory‘s methods and we have implemented these methods in our previous article. Lets include...
C++ – Calling Virtual functions from class Destructors
C++ allows virtual functions to resolve function calls at run-time. This is called late-binding. Like virtual functions, C++ allows virtual destructors to delete the objects...
COM – Creating a COM Component using C++ – CoCreateInstance
As of now we have created our COM component. Now it is the time to test our component. In this article we are going to...
C++ – Calling Virtual functions from class Constructors
Virtual keyword in C++ is used for polymorphic behavior. C++ allows to create virtual functions, virtual destructors and virtual inheritance. Virtual functions will resolve exact...
ASP.Net – Simple webpage
ASP.Net is a web framework for building web sites. ASP.Net has been designed to be fully integrated with the .Net framework. ASP.Net works with Internet...
.Net – Assemblies – Create a Publisher Policy
As of now, we have created a hello shared assembly and installed it into GAC. We also created a new version of hello assembly and...
C++ – Multiple Inheritance – Virtual inheritance to overcome inheritance ambiguity
Another interesting feature of Object Oriented Programming is it’s inheritance. Inheritance inherits the behavior or attributes from it’s parent or base classes to the derived...
C++ – Class Constructors
In C++, Class constructors are special kind of methods to instantiate a class. When class’s object is going to create, first C++ will call class’s...
.Net – Assemblies – Add a method
As of now we have created hello assembly and testapp application. testapp application will call the function SayHello (it just prints “Hello, World!” on the...
C++ – How to create an interface or an abstract class?
An interface is a contract between a caller and a callee. An interface doesn’t provide any implementation. It provides a blue-print. C++ uses virtual keyword...
COM – Creating a COM Component using C++ – Registering a COM component
In our previous article we have packaged a component into a DLL. Now we will look how to register the component. Registering a COM component...
.Net – Assemblies – gacutil
We have created hello.exe assembly in our previous article and installed it into Global Assembly Cache (GAC). Lets look at where in GAC this assembly...