This is a continuation of the previous tutorial, which discussed setting up the MSVC++ .NET 2003 IDE for gauge development. In particular, the sample gauge file used in that tutorial will be used in this new installment.
Using the gauge code already discussed, I am now going to illustrate the process by which we need to modify the original code such that it will be ready for conversion to a true multi-gauge format.
NOTE: I suffer no illusions that this is the "best" way to handle the conversion of Easy Gauge source files to a multi-gauge format! However, it is simple, logical and most importantly, IT WORKS! ;)
As a first step, I have created a new subfolder in my gauge project and named it \subgauges. I have moved the xxxG.c file to this new subfolder:
http://img342.imageshack.us/img342/4...ustut016fj.jpg
Now I need to modify the main .c file to show where I've now located the xxxG.c file:
http://img247.imageshack.us/img247/3...ustut022oy.jpg
Next, I need to make the resource id's for this subgauge unique. I have adopted the convention of addint a three-four letter 'prefix' to designate the subgauge's revisions. In this case, [font color=red]MAP_[/font] seems to be a logical choice.
Here is the revised .h file:
http://img247.imageshack.us/img247/7...ustut039wl.jpg
Now I'll modify the .rc file:
http://img39.imageshack.us/img39/2280/cplustut045bw.jpg
The final step in this process is a bit longer and I'll have to use a number of pictures to illustrate the full process. I'll continue this in the next section.





Bookmarks