summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-01 11:21:23 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-01 11:21:23 +0000
commitfc70234c12fc3f9825484bdba094f306d0779c88 (patch)
treedd85db29df2bf15e61b29c4763e0d6e0f3c47f4b
parentff7aec36581526087e368e4bf6b2e8be7ccfa46e (diff)
format text, incoming & outgoing
updater support encrypt password in db git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@229 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--MySpace/MySpace.cpp35
-rw-r--r--MySpace/MySpace.sln26
-rw-r--r--MySpace/MySpace.vcproj531
-rw-r--r--MySpace/MySpace_8.vcproj8
-rw-r--r--MySpace/common.h1
-rw-r--r--MySpace/options.cpp11
-rw-r--r--MySpace/proto.cpp8
-rw-r--r--MySpace/server_con.cpp4
-rw-r--r--MySpace/version.h4
9 files changed, 66 insertions, 562 deletions
diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp
index aa229b5..6121fa3 100644
--- a/MySpace/MySpace.cpp
+++ b/MySpace/MySpace.cpp
@@ -37,12 +37,16 @@ extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRe
}
extern "C" __declspec (dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
+ if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 30))
+ return 0;
return &pluginInfo;
}
// uncomment this for pre 0.7 compatibility
extern "C" __declspec (dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) {
+ if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 30))
+ return 0;
pluginInfo.cbSize = sizeof(PLUGININFO);
return (PLUGININFO*)&pluginInfo;
}
@@ -54,6 +58,37 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
}
int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
+ if(ServiceExists(MS_UPDATE_REGISTER)) {
+ // register with updater
+ Update update = {0};
+ char szVersion[16];
+
+ update.cbSize = sizeof(Update);
+
+ update.szComponentName = pluginInfo.shortName;
+ update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
+ update.cpbVersion = strlen((char *)update.pbVersion);
+
+ update.szUpdateURL = UPDATER_AUTOREGISTER;
+
+ // these are the three lines that matter - the archive, the page containing the version string, and the text (or data)
+ // before the version that we use to locate it on the page
+ // (note that if the update URL and the version URL point to standard file listing entries, the backend xml
+ // data will be used to check for updates rather than the actual web page - this is not true for beta urls)
+#ifdef _UNICODE
+ update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/MySpace.zip";
+ update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_MySpace.html";
+#else
+ update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/MySpace_ansi.zip";
+ update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_MySpace_ansi.html";
+#endif
+ update.pbBetaVersionPrefix = (BYTE *)"MySpace version ";
+
+ update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+
+ CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
+ }
+
InitNetlib();
InitMenu();
diff --git a/MySpace/MySpace.sln b/MySpace/MySpace.sln
deleted file mode 100644
index 688791b..0000000
--- a/MySpace/MySpace.sln
+++ /dev/null
@@ -1,26 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MySpace", "MySpace.vcproj", "{EC43AA96-F631-49D9-944D-2B08571D1B66}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug (Unicode)|Win32 = Debug (Unicode)|Win32
- Debug|Win32 = Debug|Win32
- Release (Unicode)|Win32 = Release (Unicode)|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Debug (Unicode)|Win32.ActiveCfg = Debug (Unicode)|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Debug (Unicode)|Win32.Build.0 = Debug (Unicode)|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Debug|Win32.ActiveCfg = Debug|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Debug|Win32.Build.0 = Debug|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Release (Unicode)|Win32.ActiveCfg = Release (Unicode)|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Release (Unicode)|Win32.Build.0 = Release (Unicode)|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Release|Win32.ActiveCfg = Release|Win32
- {EC43AA96-F631-49D9-944D-2B08571D1B66}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/MySpace/MySpace.vcproj b/MySpace/MySpace.vcproj
deleted file mode 100644
index 0a5889f..0000000
--- a/MySpace/MySpace.vcproj
+++ /dev/null
@@ -1,531 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="MySpace"
- ProjectGUID="{EC43AA96-F631-49D9-944D-2B08571D1B66}"
- RootNamespace="MySpace"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="../../include"
- PreprocessorDefinitions="_DEBUG;_WINDOWS;_USERDLL"
- RuntimeLibrary="1"
- UsePrecompiledHeader="2"
- PrecompiledHeaderThrough="common.h"
- DebugInformationFormat="3"
- DisableSpecificWarnings="4996"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="../../include"
- PreprocessorDefinitions="NDEBUG;_WINDOWS;_USERDLL"
- RuntimeLibrary="0"
- UsePrecompiledHeader="2"
- PrecompiledHeaderThrough="common.h"
- DisableSpecificWarnings="4996"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug (Unicode)|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="../../include"
- PreprocessorDefinitions="_DEBUG;_WINDOWS;_USERDLL;UNICODE;_UNICODE"
- RuntimeLibrary="1"
- UsePrecompiledHeader="2"
- PrecompiledHeaderThrough="common.h"
- DebugInformationFormat="3"
- DisableSpecificWarnings="4996"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release (Unicode)|Win32"
- OutputDirectory="$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="../../include"
- PreprocessorDefinitions="NDEBUG;_WINDOWS;_USERDLL;UNICODE;_UNICODE"
- RuntimeLibrary="0"
- UsePrecompiledHeader="2"
- PrecompiledHeaderThrough="common.h"
- DisableSpecificWarnings="4996"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="false"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath=".\arc4.cpp"
- >
- </File>
- <File
- RelativePath=".\common.cpp"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- UsePrecompiledHeader="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- UsePrecompiledHeader="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug (Unicode)|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- UsePrecompiledHeader="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release (Unicode)|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- UsePrecompiledHeader="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\menu.cpp"
- >
- </File>
- <File
- RelativePath=".\MySpace.cpp"
- >
- </File>
- <File
- RelativePath=".\net.cpp"
- >
- </File>
- <File
- RelativePath=".\NetMessage.cpp"
- >
- </File>
- <File
- RelativePath=".\nick_dialog.cpp"
- >
- </File>
- <File
- RelativePath=".\options.cpp"
- >
- </File>
- <File
- RelativePath=".\proto.cpp"
- >
- </File>
- <File
- RelativePath=".\server_con.cpp"
- >
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- <File
- RelativePath=".\arc4.h"
- >
- </File>
- <File
- RelativePath=".\collection.h"
- >
- </File>
- <File
- RelativePath=".\common.h"
- >
- </File>
- <File
- RelativePath=".\menu.h"
- >
- </File>
- <File
- RelativePath=".\net.h"
- >
- </File>
- <File
- RelativePath=".\NetMessage.h"
- >
- </File>
- <File
- RelativePath=".\nick_dialog.h"
- >
- </File>
- <File
- RelativePath=".\options.h"
- >
- </File>
- <File
- RelativePath=".\proto.h"
- >
- </File>
- <File
- RelativePath=".\resource.h"
- >
- </File>
- <File
- RelativePath=".\server_con.h"
- >
- </File>
- <File
- RelativePath=".\version.h"
- >
- </File>
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
- >
- <File
- RelativePath=".\icon1.ico"
- >
- </File>
- <File
- RelativePath=".\menu.ico"
- >
- </File>
- <File
- RelativePath=".\MySpace.rc"
- >
- <FileConfiguration
- Name="Debug|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug (Unicode)|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release (Unicode)|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\resource.rc"
- >
- </File>
- <File
- RelativePath=".\version.rc"
- >
- <FileConfiguration
- Name="Debug|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug (Unicode)|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release (Unicode)|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCResourceCompilerTool"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <File
- RelativePath=".\readme.txt"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/MySpace/MySpace_8.vcproj b/MySpace/MySpace_8.vcproj
index 0a5889f..5b4cacb 100644
--- a/MySpace/MySpace_8.vcproj
+++ b/MySpace/MySpace_8.vcproj
@@ -345,6 +345,10 @@
</FileConfiguration>
</File>
<File
+ RelativePath=".\formatting.cpp"
+ >
+ </File>
+ <File
RelativePath=".\menu.cpp"
>
</File>
@@ -395,6 +399,10 @@
>
</File>
<File
+ RelativePath=".\formatting.h"
+ >
+ </File>
+ <File
RelativePath=".\menu.h"
>
</File>
diff --git a/MySpace/common.h b/MySpace/common.h
index 6ba2650..4a4f3de 100644
--- a/MySpace/common.h
+++ b/MySpace/common.h
@@ -47,6 +47,7 @@
#include <m_langpack.h>
#include <m_popup.h>
+#include <m_updater.h>
////////////
// included for backward compatibility
diff --git a/MySpace/options.cpp b/MySpace/options.cpp
index cf592d8..e8ee938 100644
--- a/MySpace/options.cpp
+++ b/MySpace/options.cpp
@@ -10,6 +10,10 @@ void LoadOptions() {
_tcsncpy(options.email, dbv.ptszVal, 256);
DBFreeVariant(&dbv);
}
+ if(!DBGetContactSettingTString(0, MODULE, "password", &dbv)) {
+ _tcsncpy(options.pw, dbv.ptszVal, 256);
+ CallService(MS_DB_CRYPT_DECODESTRING, (WPARAM)(256 * sizeof(TCHAR)), (LPARAM)options.pw);
+ } else
if(!DBGetContactSettingTString(0, MODULE, "pw", &dbv)) {
_tcsncpy(options.pw, dbv.ptszVal, 256);
DBFreeVariant(&dbv);
@@ -28,7 +32,12 @@ void LoadOptions() {
void SaveOptions() {
DBWriteContactSettingTString(0, MODULE, "email", options.email);
- DBWriteContactSettingTString(0, MODULE, "pw", options.pw);
+
+ //DBWriteContactSettingTString(0, MODULE, "pw", options.pw);
+ TCHAR buff[256];
+ _tcsncpy(buff, options.pw, 256);
+ CallService(MS_DB_CRYPT_ENCODESTRING, (WPARAM)(256 * sizeof(TCHAR)), (LPARAM)buff);
+ DBWriteContactSettingTString(0, MODULE, "password", buff);
DBWriteContactSettingByte(0, MODULE, "sound", options.sound ? 1 : 0);
DBWriteContactSettingByte(0, MODULE, "privacy_mode", (BYTE)options.privacy_mode);
diff --git a/MySpace/proto.cpp b/MySpace/proto.cpp
index b2f03d9..21fb0af 100644
--- a/MySpace/proto.cpp
+++ b/MySpace/proto.cpp
@@ -2,6 +2,7 @@
#include "proto.h"
#include "server_con.h"
#include "resource.h"
+#include "formatting.h"
#define FAILED_MESSAGE_HANDLE 99998
@@ -123,7 +124,7 @@ static DWORD CALLBACK sttFakeAckMessageFailed( LPVOID param )
int ProtoSendMessage(WPARAM wParam, LPARAM lParam) {
CCSDATA *ccs = (CCSDATA *) lParam;
char *message = (char *)ccs->lParam;
- char msg_utf[MAX_MESSAGE_SIZE];
+ char msg_utf[MAX_MESSAGE_SIZE], msg_fmt[MAX_MESSAGE_SIZE];
int uid;
if((uid = DBGetContactSettingDword(ccs->hContact, MODULE, "UID", 0)) == 0 || status == ID_STATUS_OFFLINE) {
@@ -153,13 +154,16 @@ int ProtoSendMessage(WPARAM wParam, LPARAM lParam) {
}
msg_utf[MAX_MESSAGE_SIZE-1] = 0;
+ entitize(msg_utf, MAX_MESSAGE_SIZE);
+ mir_snprintf(msg_fmt, MAX_MESSAGE_SIZE, "<p><f f='Times' h='16'><c v='black'><b v='white'>%s</b></c></f></p>", msg_utf);
+
ClientNetMessage msg;
msg.add_int("bm", 1);
msg.add_int("sesskey", sesskey);
msg.add_int("t", uid);
msg.add_int("f", my_uid);
msg.add_int("cv", CLIENT_VER);
- msg.add_string("msg", msg_utf);
+ msg.add_string("msg", msg_fmt);
SendMessage(msg);
HANDLE hEvent;
diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp
index 35e7da1..56560d6 100644
--- a/MySpace/server_con.cpp
+++ b/MySpace/server_con.cpp
@@ -4,6 +4,7 @@
#include "arc4.h"
#include "options.h"
#include "nick_dialog.h"
+#include "formatting.h"
#include <ctime>
@@ -399,6 +400,9 @@ void __cdecl ServerThreadFunc(void*) {
}
char text[MAX_MESSAGE_SIZE];
if(msg.get_string("msg", text, MAX_MESSAGE_SIZE)) {
+ strip_tags(text);
+ unentitize(text);
+
PROTORECVEVENT pre = {0};
pre.flags = PREF_UTF;
pre.szMessage = text;
diff --git a/MySpace/version.h b/MySpace/version.h
index d9c3688..36db18d 100644
--- a/MySpace/version.h
+++ b/MySpace/version.h
@@ -4,8 +4,8 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 1
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 0
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM