Posts

Showing posts with the label Windows

Visual Studio 2015 required executable runtime libraries

Image
Once finished to develop your software final step is start to release the installation package. Executable generated by Visual Studio compiler require some additional libraries called runtimes allowing to software to run correctly. You have to provide these libraries in your installation package for allow your software to run in each machine without problems.

Qt: QNetworkAccessManager and SSL connection under Windows

Image
QNetworkAccessManager is the Qt component for make network connection. The use of this component is quite easy and you can use for basic operation like download files or web pages. Experimenting the use you'll note it work very well with standard network connection but, especially under Windows, doesn't work with SSL connection (like 'https' for example).

Qt Tips and Tricks: Qt Creator for develop Android app using Gradle and proxy problem

Image
Qt Creator recently introduced a new way for develop android application. Basically is now possible to select use Gradle instead of apache-ant for final APK creation. Gradle is going to be the new "standard" than the choice of Qt team look perfectly reasonable. However if you are developing in a network under a proxy you could experiment some problem using Gradle.

Clear console screen in Windows and Linux

Image
In case of develop of a console mode application it could be quite frequently to clear all the console screen for prepare new output. Here some examples of codes for clear screen in both operating systems.

Set console cursor position in Windows and Linux

Image
In console mode the typical need for set cursor position would be to "update" data in the same fixed position creating a refresh effect. This requirement need to set the cursor in the same point every time and start print characters. Each new print will overwrite the old data and this will create the dynamic update effect.

Set window icon in Windows console application

Image
Console application is a special Windows interface that doesn't need any GUI window since show only a console prompt as input. Each MS-DOS executable or batch file is automatically executed using this special mode. However is possible to develop a pure Windows application using this modality.

Get console screen size in Windows and Linux

Image
Console application in both operating systems Windows and Linux measure the screen size using the number of columns and lines instead of use pixels. This because console mode allow only characters output inside the ASCII range and each character block have a fixed width and height size.

Visual Studio color schemes collection

Image
Visual Studio is one of the best IDE available with a lot of nice features. One of the most useful is the possibility to customize the color scheme of the editor to allow a quick reading of the various elements of the code. Find the right combination of colors, though, can sometimes be quite long than the following site will can help you.   

Get time in milliseconds on Windows and Linux

Image
Please note that in this case the time expressed in milliseconds is not a conversion of the system time but is a number of milliseconds elapsed by a specific time in the past different according to operating system used. This value is useful if you want to calculate a timeout based to millisecods unit.