CodeSteps

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

Visual C++ – How to create modal dialog and modeless dialogs using MFC ?

MFC (Microsoft Foundation Classes) provides classes to deal with dialogs. Dialog boxes are very useful to take user inputs, displaying and allowing the users to change configuration settings, displaying messages or warnings or errors etc.,. Dialogs are classified into two types depending on their behavior. One is modal dialog and another one is modeless dialog. […]

C#: Classes – Access Specifiers & Inheritance

‘C#’ class members are accessible based on their access specifiers. I will write a separate article on class’s access specifiers in more detail. But here I want to give an high level introduction on access specifiers. Access Specifiers ‘C#’ provides public, private, internal, protected and protected internal access specifiers. Remember that the class members are […]

C Programming – How to use bit fields in structures?

Structures in C are used to group multiple variables of the same or different types. The variables inside the structures can be accessed through its structure variables. I recommend you to read the article, “C Programming – Understanding Structures in C“, before proceeding with this. Usually, ‘C’ structures are to group related information. ‘C’ compiler […]

How to Create a MySQL database from command line?

MySQL provides command line tools to create databases and managing them. In this article we are going to discuss on creating a database from command line. Step 1. First we need to connect to the MySQL database server. Type the below command at command line to connect to the server: mysql -hMyServerName -uMyUserName -pMyPassword Here MyServerName […]

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 articles; “C Programming – Dealing with files – How to read from a file?“, “C Programming – Dealing with files – How to write to the file?” and “C Programming – Dealing […]

Oxwall 1.x: How to Install or Uninstall Plugins?

Plugins are used to extend Oxwall’s social networking platform’s functionality. Oxwall allows to Install or Uninstall Plugins. Oxwall provides an interface to update existing Plugins. In this article, we will discuss how to update or add Plugins to Oxwall’s platform. Step 1. Sign-in into Oxwall’s based social networking platform website as an administrator. Oxwall displays […]

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 […]

C# – How to use COM components?

.Net supports to use of COM (Component Object Model) functionality within its managed code through its COM Interoperability feature. In this article, we are going to discuss the steps to use COM components within the ‘C#’ code. Step 1. The first step is to add the COM component as a reference to the C# project. […]

Scroll to top