Category Archives: C++

VS 2015 – fix toolbox with COM components.

Today I will show you how to add COM components to your Visual Studio 2015 toolbox.
In this example I add the Windows Media Player COM component.
To do this you need to use this Right Click – mouse within the Toolbox, and then select Choose Items.

See image:
VS_2015_toolbox_com_001
After that will see this window and just click on COM Components tab.
VS_2015_toolbox_com_002
Use your mouse to select Windows Media Player.
If you want to use another COM component or your DLL file then you need to use Browse… button to add it.
This will should be in the Windows\System32 folder…
Now you can see your COM component into Toolbox:
VS_2015_toolbox_com_003

Posted in All, C#, C++, Programming, Windows 10, Windows 8. Tagged with , , , , , , .

Export your project from Netbeans like RPM package.

I told you in this tutorial about how to make RPM package.

Also I told you how to use Netbeans IDE.

Today I will show how to make this settings.

First you will need make the application working well.

Then you need to go on to project and press click right with your mouse.

Set your package like in the next image:

cp006

Now you can build your RPM package for your distro , see the next image:

cp007

Posted in All, C++, Linux, Programming. Tagged with , , .

Create HTML5 template with C++ .

It’s a simple console C++ program that makes default html5 page with one table.

You can change the source code to create more template for your source code.

Posted in All, C++, HTML 5, Programming. Tagged with , , , .

Working with GLFW library under Fedora.

Today I will try to use GLFW library.

GLFW is a C library that lets you using an OpenGL context and window, display modes and inputs like keyboard, mouse, joystick and time.

GLFW supports Windows, Mac OS X and Unix, Linux and FreeBSD and any operating systems with the X Window System.

Also you can read more about this library here.

First install the library using root account.

Now let’s see the source code.

First I includes all librarys I need.

In the main function I start to see if the library is working.

The next step is to set some settings, see:

… and also testing the desktop settings.

The settings it’s show on console with cout function.

Now I make the window context using fullscreen option.

I set the title of the window.

I enable the keys.

The next source code it’s close the window.

Testing with time command to see how fast working.

The netbeans IDE make the package in this path.

I make RPM package for Fedora distro.

I test my example and working well.

Posted in 3D, All, C++, Linux, OpenGL, Programming. Tagged with , , , , , .

Writing a basic game with C++ and OpenGL libs – part 1 .

This is a first part tutorial about linux game using C++ and OpenGL libs.

Writing a C++ game can be difficult.

You will need to focus on program structure and then to know how to create the necessary classes.

Let’s see the files I used:

The main.cpp file is the main program.

This file will make the window program and will deal with the user.

Also this file use OpenGL libs.

Let’s see the source code:

The next two files : display.cpp and display.hpp is used to display the game objects.

I use just one class : Display.

Let’s see the header file display.hpp

… and display.cpp.

You can see the OpenGL source code to make a rectangle.

The next files game.cpp and game.hpp is used to make all game engine working.

The header file game.hpp is:

… and also game.cpp.

Let’s make the Makefile.

This can done well if you know how working g++ compiler.

Use the command to make the binary file:

The resul is this:

simplegame tutorial c++

Posted in 3D, C++, Game engine, OpenGL, Programming. Tagged with , , , , .