diff --git a/installguide/Interface.html b/installguide/Interface.html index 9a33e3a70..36f81f97c 100644 --- a/installguide/Interface.html +++ b/installguide/Interface.html @@ -99,14 +99,16 @@ Read Only

Returns the version number of Visual PinMAME as an 8-digit string - "vvmmbbrr":

+ "vvmmbbrr.bbbb":

vv = Major version
mm = Minor version
bb = Beta version
- rr = Revision

+ rr = Revision
+ bbbb = Build number

Example:
- A result of "00990201" signifies "Version 0.99 Beta 2 Rev A

- If (Controller.Version<"00990201") Then MsgBox "You need a newer + A result of "00990201.4711" signifies "Version 0.99 Beta 2 Rev A build #4711

+ It is possible to amend the build number while checking the version, but not mandatory!

+ If (Controller.Version<"00990201.4711") Then MsgBox "You need a newer version of VPinMAME." : Exit Sub diff --git a/src/win32com/Controller.cpp b/src/win32com/Controller.cpp index e4925faf6..59f36c254 100644 --- a/src/win32com/Controller.cpp +++ b/src/win32com/Controller.cpp @@ -1742,10 +1742,10 @@ STDMETHODIMP CController::get_Version(BSTR *pVal) int nVersionNo0, nVersionNo1, nVersionNo2, nVersionNo3; GetProductVersion(&nVersionNo0, &nVersionNo1, &nVersionNo2, &nVersionNo3); - TCHAR szVersion[9]; - wsprintf(szVersion, _T("%02i%02i%02i00"), nVersionNo0, nVersionNo1, nVersionNo2); - //Should output the version number as 03060000 without build number - //the build number does not have enough room^^ + TCHAR szVersion[14]; + wsprintf(szVersion, _T("%02i%02i%02i00.%04i"), nVersionNo0, nVersionNo1, nVersionNo2, nVersionNo3); + // Should output the version number as 03060000.0980 + // The build number is returned after the decimal sign CComBSTR bstrVersion(szVersion);