sorry for this late post that i’ve promised a month ago. But who cares, the important thing is that we’re here alive and kicking again or not? :)
Today i would like to tell you how to create a GUI loader for your Google Chrome Live CD, because if you remember the last post, we had made it but only in (maybe horrible?) Console version. Before posting the code as usual i would like to tell you what you have to do before.
To make a GUI loader for a CD is just a pain in the ass (believe me) because you have to think two things: first, is for what platform you’re going to develop to, and second you have to choose a method that is compatible with all the forms, versions and types of that platform. In this case i covered all the Windows platforms (from Windows 95 to Windows 7) but as you already know between them, there are so much differences in the core of the platform that made me to choose the only one that i know that it just works: i’m talking about Windows SDK.
Yeah, maybe you’re thinking “wtf?” or “just crazy…why didn’t you choose .NET platform?”, but i can answer both of those questions with: didn’t you know that Windows 95 to Windows ME do not have .NET support? And because Windows is made in Pure C, why can’t we use such a great language like that one? Windows SDK was made with only one scope in mind: cover all the windows platforms, to let developers create application that just works (but they’re just “much difficult” to code).
OK so, now that we know what are we going to do, before copying and compiling the source that will be posted after this, you must do two things: create an empty C++ project with Microsoft Visual C++ 2005/2008/2010 (also Express Edition works) and create a BMP image to put when our loader is working. After this remember to include that one in a file called Resource.rc. That is, copy and paste the code into your Main.cpp file and compile :)
Easy huh? If you’re curious to know much about the code, read the comments (if you need more, just let me know) and continue to follow me as i’m going to post some nice other things, like how to fix baloon height size in Google Maps API v2.
Thanks for reading, see you in the next post.
EDIT: I’ve attached a simple project with all of this combined, so just download, unzip and compile. To do so, you need Microsoft Visual C++ 2010 Express Edition (otherwise you can copy and paste the code). Download it now!