How to use alternate portrait and landscape orientations in a Word document
Just as a simple illustration: suppose we want to configure a 3-page Word document to have a first page with portrait-style orientation, followed by a second page with landscape orientation and then a...
View ArticleHow to encrypt basic authentication credentials in a Web Api application
This post shows you how to handle encrypted user credentials in a Web Api application and offer further security by enforcing https for all REST api calls. Step 1: Create a new Web Api application:...
View ArticleHow to disable a network connection from Control Panel
Step 1: Open Control Panel Step 2: Navigate to Control Panel\All Control Panel Items\Network Connections In Control Panel\All Control Panel Items\Network Connections Step 3: Select Disable
View ArticleCreating a Windows application in Java using Eclipse
Step 1: Create a new Java Application In Eclipse select File > New > Java Project: Step 2: Create a new Frame In Eclipse, right click the ‘src’ folder and select New > Other. In the wizard...
View ArticleMaking bitmap images transparent using paint.net
Something I needed recently which I’ve wanted to blog. It’s fairly simple, and also documented elsewhere online, but as with most things I do technical blog wise, explanations work better with...
View ArticleUsing POSIX threads in Microsoft Visual Studio
Threads can be used to implement parallelism. For UNIX-based systems, a standardized C language threads programming interface has been specified by the IEEE POSIX 1003.1c standard. Implementations that...
View ArticleUsing OpenGL in Microsoft Visual Studio
Getting started with using OpenGL / freeglut in a Microsoft Visual Studio environment for 32 bit versions. 1. Obtain freeglut Go to the freeglut site to obtain the MSVC package:...
View ArticleCreating a Tabbed Dialog using the Windows API
TweetAn example demonstrating how to create and display a tab common control using WinAPI (Win32) C++ programming. Much credit needs to go to Ken Fitlike’s excellent WinAPI site, from which I orginally...
View ArticleWindows programming using MinGW
TweetA short example of how to started with Windows programming in non-Visual Studio environments. In this example, we use the MinGW (Minimalist GNU for Windows) compiler within the Code::Blocks...
View ArticleUsing sc.exe to communicate with Windows Services in Visual C++
TweetSC.exe is commonly used to retrieve and set control information about installed Windows services. Common tasks are to configure, start and stop a service, as well as retrieve the status of a...
View ArticleObtaining Media File Information in Visual C++ Using FFPROBE
TweetA short demonstration on how to utilize the ffprobe command to extract information about media files such as wav / MP4 files. The ffprobe executable comes with the complete ffmpeg package and can...
View ArticleSerializing data in MFC / Visual C++
TweetThis post shows you how to utilize the built-in file handling capabilities that MFC has in order to serialize your data, that is, how to read from or write to a disk. Using the MFC document object...
View ArticleGetting started with Spire.XLS for .NET
TweetE-iceblue Ltd. is a vendor of powerful components for .NET, Silverlight and WPF development. These products enable the user to easily read and write different formats of office files. A quick an...
View ArticleUsing a subset of the boost libraries in Windows
TweetFor many C++ applications I very much want to use the Boost libraries, just not the whole set. This post explains how to use the bcp tool to create a subset of the Boost libraries in order to...
View ArticleReading the status of DVD drives in C++
TweetA short and to-the-point C++ recipe for determining the status of your PC / laptop DVD. To study this area in more depth, follow this link for more information, which is where I got much of this...
View ArticleHow to use the Boost compiled libraries in Windows
TweetAs stated on the boost.org Getting Started for Windows page, most Boost libraries are header-based that require no separate compilation. But there exist some Boost libraries that require a...
View ArticleHow to create a simple list view in C++ / MFC
TweetThese instructions pertain to the use of Visual Studio 2010, but barring one or two differences should be reasonably applicable to other versions of Visual Studio as well. Much of the following...
View Article