<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C++ on Infinite Script</title><link>https://www.infinitescript.com/tags/c++/</link><description>Recent content in C++ on Infinite Script</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 15 Jul 2013 15:03:48 +0000</lastBuildDate><atom:link href="https://www.infinitescript.com/tags/c++/index.xml" rel="self" type="application/rss+xml"/><item><title>Use SQLite in Qt</title><link>https://www.infinitescript.com/2013/07/use-sqlite-in-qt/</link><pubDate>Mon, 15 Jul 2013 15:03:48 +0000</pubDate><guid>https://www.infinitescript.com/2013/07/use-sqlite-in-qt/</guid><description>&lt;p&gt;SQLite is a lightweight, file-based database that needs no separate server process, which makes it a perfect fit for desktop applications that want to store data locally. Qt ships with a built-in SQLite driver as part of its SQL module, so you can talk to a database without pulling in any third-party dependency. This post walks through the few steps required to set it up and run your first queries.&lt;/p&gt;</description></item><item><title>Writing Your First Win32 Application with C++</title><link>https://www.infinitescript.com/2013/03/writing-your-first-windows-application-with-c/</link><pubDate>Wed, 20 Mar 2013 12:20:09 +0000</pubDate><guid>https://www.infinitescript.com/2013/03/writing-your-first-windows-application-with-c/</guid><description>&lt;p&gt;Welcome to the first windows tutorial. In this tutorial, I&amp;rsquo;ll give you the basic information on how to code in windows and we&amp;rsquo;ll go over a few important details first.&lt;/p&gt;&#10;&lt;h2 id="messages"&gt;Messages&lt;/h2&gt;&#10;&lt;p&gt;The basic windows program has two important functions inside. The first one is the event handler(I&amp;rsquo;ll talk about this one later on) and the second one is the main function(WinMain from now on). WinMain is similar to DOS&amp;rsquo; main function, in fact, WinMain is called from the DOS main function but in windows, we don&amp;rsquo;t have access to the DOS main; everything is covered up by windows. Windows introduces us to messages. A message could be easily described as a pile of data that gets sent to the event handler which then tells the window what to do. A message&amp;rsquo;s name is prefixed with WM(stands for Windows Message as you might have guessed?). There are a whole lot of messages that a window can handle, however, we&amp;rsquo;ll only need a few of them. You can use these messages in many ways. For example, the message WM_CREATE, can be used for initialization purposes, it gets sent to the window when it&amp;rsquo;s created, and WM_PAINT is used when you want to draw something on the screen, and so on, you get the image. Most of the messages get sent to the window automatically; for example, when you move your mouse around you send a message to windows, and any other actions like that send messages to windows. You can also send a message to your window yourself, but you&amp;rsquo;ll probably never need to.&lt;/p&gt;</description></item></channel></rss>