CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

C# – How to fix “error CS5001: Program ‘xyz.exe’ does not contain a static ‘Main’ method suitable for an entry point”?

If you want to create an executable file from your ‘C#’ project or file, your code should contain a ‘static Main’ method. This is an entry point to ‘C#’ program. Otherwise, ‘C#’ compiler will throw the below error: error CS5001: Program ‘xyz.exe’ does not contain a static ‘Main’ method suitable for an entry point To […]

Drupal 7 – Creating a module (Part – 6)

We are almost done with our module. Just we have to implement the functionality when the module is installed or uninstalled. Drupal 7 loads the functionality from “.install” file whenever the module is installed or uninstalled. We need to write hook functions “hook_install” and “hook_uninstall” in “.install” file. So, Drupal 7 will call these functions […]

WordPress 3 – Post Revisions

WordPress provides the flexibility to store revisions of posts. That means, WordPress stores the posts into post revisions whenever you modify the post. This really helps to retrieve the post information from post revisions when you miss some information in the current post. WordPress stores all the post revisions into the database like it stores […]

C# – Classes – An Introduction

‘C#’ classes are code blocks that combine data and operations those work on the data. ‘C#’ classes enables Object Oriented Programming (OOP) concepts of encapsulation and abstraction. Encapsulation means combining data and the operations apply on the data together. Abstraction means hiding the details to outer world. ‘C#’ classes are created using the class keyword. Below […]

Visual C++ – Creating an ATL COM Component (Part – 1)

Active Template Library (ATL) is a lightweight library used to develop COM-based components using Visual C++. Through ATL we can quickly develop COM components or COM services. In this article, I am trying to explain the steps to create an ATL COM component using Microsoft Visual C++ and Microsoft Visual Studio 2012 IDE (Integrated Development […]

Scroll to top