Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

AutoVersioning Plugin

<< < (4/41) > >>

JGM:

--- Quote from: killerbot on June 28, 2007, 11:13:55 pm ---suggestions :
 - don't use defines (bad, preprocessor and ancient C shit)
 - use static const int or something like that
 - put them in a special namespace to avoid collisions

--- End quote ---

Nice suggestion, I will do it.  :)

But C stills very powerful today :D

Edit:

Men! the development of this simple plugin is taking me more than I expected. I went in to problems with a crappy library of csv that I Implemented.   :x

The problem that I have was when uninstalling the plugin, produced a crash. It seem that the library that I made was having some pointer problems. Now i will implement the plugin using wxFileConfig to store the version variables for producing the header file. It should not produce complications now  :(

tiwag:

--- Quote from: killerbot on June 28, 2007, 11:13:55 pm ---suggestions :
 - don't use defines (bad, preprocessor and ancient C shit)
 - use static const int or something like that
 - put them in a special namespace to avoid collisions

--- End quote ---

don't be too harsh please  :P

this C shit is still widely used in the embedded world
with which I'm working daily.  :shock:

and i can assure you, i don't feel sucked myself because of that  8)

JGM:

--- Quote from: tiwag on June 29, 2007, 12:39:05 pm ---this C shit is still widely used in the embedded world
with which I'm working daily.  :shock:

--- End quote ---

Wow you program embedded systems!. I'm fascinated on learning this subject, is the real programming world, directly managing the hardware without OS. Cool!  :D

Well following the recommendations of killerbot now the output is this one:

--- Code: ---namespace AutoVersion{

//Date Version Types
static long DATE_VERSION = 29;
static long MONTH_VERSION = 06;
static long YEAR_VERSION = 2007;
static double UBUNTU_VERSION_STYLE = 7.06;

//Standard Version Types
static long MAJOR_VERSION = 1;
static long MINOR_VERSION = 0;
static long BUILD_NUMBER = 0;
static long REVISION = 0;

//Miscellaneous Version Types
static long BUILDS_COUNT = 1;
#define RC_FILEVERSION 1,0,0,0
#define RC_FILEVERSION_STRING "1, 0, 0, 0\0"
static char FULLVERSION_STRING[] = "1.0.0.0";

}

--- End code ---

I fixed the problem I was Having while uninstalling the plugin, but now all is working right. Now i will really implement the updating functions. :shock:

JGM:
I finished the plugin, check the first post to download the source! :D

JGM:
I have found a freaking bug,

The program is writing into the version.h "%" signs instead of the actual numbers from the version.ini.

This is the problem:


--- Code: ---        static double UBUNTU_VERSION_STYLE = %.07; //here also?

//Standard Version Types
static long MAJOR_VERSION = %;
static long MINOR_VERSION = %;
static long BUILD_NUMBER = %;
static long REVISION = %;

//Miscellaneous Version Types
static long BUILDS_COUNT = %;

--- End code ---

I don't know how this occurs :oops:. I will hunt this bug. It should be something silly.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version