RoxxSoft Development Blog
Posts tagged application
Simple Win32 application with source code
Oct 2nd
My last post generated some mail about how to use a .rc file from inside Visual C++ 2008 Express, so i decided to post this little example of an application made using resedit, basically what is contained here is a .rc file, a cpp file that uses it, and a resource.h file which contains some definitions.
I’ve used resedit because at least for me, it is as good as any Microsoft application, and it is free, fast, small and i like to work with it, of course you can choose whatever suits you best, but resedit is the best for me. :), if you don’t know where to find this app, please have a look at my post about resource editors, where you can find links to the most popular ones.
To recreate a project like this one, first you need to create an empty project in Visual C++, then, just add an empty .cpp file, then, in resedit, generate at least one dialog, with all the controls you need, save the .rc file into the same folder where your Visual C++ project is, then import the file into the editor by right clicking over the Resource Files section in the Solution Explorer, then select your .rc file.

If you generate the c++ code from inside resedit, only import the resource.h file, forget about the generated .cpp file, after including those files, all you have to do is write the windows procedure and the windows main function and that’s it, the zip file i have linked here has a very simple win32 application that does all these things, if you are interested to know how to build a simple application without too much effort have a look at the code sample, i was going to write a little tutorial about win32, but, the app is so simple that i believe it is better to just explore the code and use the msdn docs to learn about how it works.
After importing the .rc file into Visual C++, you can still change it from resedit, everytime you save your changes, the Visual C++ editor will notify you and allow you to reload the .rc file, this makes it very easy to keep working with both tools open and without locked file conflicts.
Click here to download the code: win32App.zip
Hope this is useful to you, if any doubt comes along, you are free to ask :), i will try to help but please remember it may take some time to see your questions since i don’t check the blog everyday.
Depending on the free time i have, i am considering writing some tutorials about win32, but i think there are some good ones already on the web. anyway, maybe if enough people are interested i’ll do it.
HTML Text Extractor
Sep 17th
A few days ago i posted a very simple app that just extracts the text for any html file, today i have posted the source code for that app, it is so simple i can’t believe some people actually charge for apps like this one, but of course this one is so dumb that it can’t do almost anything aside from removing the html tags, i am sure most commercial apps will do a lot more or a better job.
This code was done with Visual C++ 2008 Express Edition, this was just to try out the compiler so nothing fancy you will find in this code, it was done in less than an hour so it is very simple.
What would be cool i think is a simple app like this that can be improved to include support for more file formats, and then include something like plug-ins so that the app can be updated with more file formats by installing new plug-ins, that would be awesome right? i think i’ll start working on something like that soon.
So anyway, i posted the code here because i think it could be useful for someone developing a similar tool, maybe they can take this code and improve over it, this code has no license terms, it is public domain so that anyone can take it and make whatever they want with it.
You can find the app and the code in the Downloads page
Downloads page
Sep 14th
Just created a Downloads page and posted a small app as a free download, actually it is the first application i give away at this new site, hopefully i will be able to upload some more utilities in the next days, and hopefully they will be useful to someone else who is not me :P
I plan to open source these little applications once the code has been cleaned up and some bugs have been fixed, but if you would like to do that, please drop me a line.
Comments, suggestions are welcome of course.

Recent Comments