Sunday, December 23, 2007

Real Word Control with Visual Basic Express 2008

Have you ever wanted to control or sense real world events? The AWC GP3 makes it easy to do many different kind of sensing and control projects from a computer with a standard serial port or a USB serial adapter. The GP3EZ software (free) allows you to do a lot of projects with no programming at all. However, it is easy to use the board from VB, Java, C++, even Windows Scripting Host!

Here's a tutorial on using the board using Visual Basic Express 2008 which is free from Microsoft. Its easy!

Submit to:   book mark Real Word Control with Visual Basic Express 2008 in del.icio.usDel.icio.us  |   submit Real Word Control with Visual Basic Express 2008 to digg.comDigg  |   submit Real Word Control with Visual Basic Express 2008 to slashdot.comSlashdot  |  diigo itDiigo

Thursday, December 20, 2007

Resource Editing for Visual Studio Express

Microsoft provides several "Visual Studio Express" tools for free download. These are slightly limited versions of their popular development tools for C++, C#, and Visual Basic.

I enjoy having these tools for free, and most of the missing features I don't notice. Except for one: resource editing. If you want to add icons or menus to your C++ programs, you'll have to manually munge up an RC file. Or do you?

I went looking for an open source resource editor. Of course, I could just break down and install my real copies of Visual C++ or even break out some other commercial resource editors I have, but I wanted a free solution to go along with the free Visual Studio Express product.

I looked pretty hard and I couldn't find a single tool that did what I wanted. However, I did find two tools that together would do the job.

The first tool is the excellent XN Resource Editor. What doesn't this tool do? It will create menus, icons, dialogs, cursors, and everything else you can think of. Oh yeah, but while it will read RC files, I couldn't find any way to make it save an RC file! It will, however, do a nice job saving to a binary res file.

Of course, you could just leave it at that and let Visual Studio include the .res file. So I guess you can just use one tool. But I wanted an RC file that I could easily manipulate -- at least for strings and IDs.

That's when I downloaded Resource Hacker. This tool is made to load resources from just about anywhere. You can do certain things with those resources (although you can't actually edit them). However, this tool will save a proper RC file.

So the steps are:

1. Use XN Resource Editor to create your resources
2. Save resources as a .RES file
3. Open the .RES file with Resource Hacker
4. Save as a .RC file
5. Add the RC file to your Visual Studio project.

You may have to touch up your RC file a little if you get any errors (for example, include winuser.h).

XN can read an RC file, so you can "round trip" by reading the file from step 4 into XN, making changes, and then repeating steps 2 through 4.

Enjoy!

Labels: ,

Submit to:   book mark Resource Editing for Visual Studio Express in del.icio.usDel.icio.us  |   submit Resource Editing for Visual Studio Express to digg.comDigg  |   submit Resource Editing for Visual Studio Express to slashdot.comSlashdot  |  diigo itDiigo

Saturday, December 01, 2007

Fix the dotNet Framework

Well somehow I got the .Net framework 2.0 buggered. It wouldn't uninstall, but it wouldn't install either. Visual Studio would complain when it started and several other programs too.

I finally found this free tool that will forcefully remove all traces of a given version of the .Net framework. After that, I was able to install it again.

Works great! Kudos to the author.

Submit to:   book mark Fix  the dotNet Framework in del.icio.usDel.icio.us  |   submit Fix  the dotNet Framework to digg.comDigg  |   submit Fix  the dotNet Framework to slashdot.comSlashdot  |  diigo itDiigo