Hi,
These two files are related. They both convey version information
to the user. The contents of moduleinfo.h is expressed through the
Wireshark about dialog, on the plugins tab, while the contents of
moduleinfo.nmake is expressed through the Windows resource mechanism.
The format is MAJOR.MINOR.MICRO.EXTRA.
Since the VERSION string is a string EXTRA can be void.
MODULE_VERSION_* is an unsigned integer so has to be set to a value.
therefore MODULE_VERSION_EXTRA is normally set to 0. They way you set
them is correct.
You should keep them synchronized manually, since we have not devised
a way to do this automatically.
Thanx,
Jaap
A Verma wrote:
Hi,
I have a query. I am making a dll called yyy.dll.
Now in the folder c:\wireshark\plugins\yyy there are 2 files:
1. moduleinfo.h
2. moduleinfo.nmake
Is there any relation between the version in
"#define VERSION "0.6.5" in moduleinfo.h
and between
"# The version
MODULE_VERSION_MAJOR=0
MODULE_VERSION_MINOR=6
MODULE_VERSION_MICRO=5
MODULE_VERSION_EXTRA=0" in moduleinfo.nmake?
I have tried to keep them the same. I am doing correctly?
Or should i have done:
"# The version
MODULE_VERSION_MAJOR=0
MODULE_VERSION_MINOR=0
MODULE_VERSION_MICRO=6
MODULE_VERSION_EXTRA=5" ?
Pls suggest me. Thanks so much!
regards,
Ash