summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 12:27:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 12:27:07 +0000
commit50fb93f0bd6075a0f3cfb77abfc5a3aa9d75a5a6 (patch)
tree732a624aeabea094d56e00e08327e88f0a16f806 /plugins/Db_autobackups
parentd3ac0d2b927ec6d952116c1084b0ee7c147e34f2 (diff)
Db_autobackups:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@544 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/backup.cpp2
-rw-r--r--plugins/Db_autobackups/db_autobackups_10.vcxproj6
-rw-r--r--plugins/Db_autobackups/db_autobackups_10.vcxproj.filters6
-rw-r--r--plugins/Db_autobackups/headers.h2
-rw-r--r--plugins/Db_autobackups/main.cpp11
5 files changed, 13 insertions, 14 deletions
diff --git a/plugins/Db_autobackups/backup.cpp b/plugins/Db_autobackups/backup.cpp
index fd27c9f09f..a6b78dace2 100644
--- a/plugins/Db_autobackups/backup.cpp
+++ b/plugins/Db_autobackups/backup.cpp
@@ -180,7 +180,7 @@ int Backup(TCHAR* backup_filename)
dest_file_len = lstrlen(dest_file);
if(dest_file_len > 50)
{
- puText = mir_alloc(sizeof(TCHAR) * (dest_file_len + 2));
+ puText = (TCHAR*)mir_alloc(sizeof(TCHAR) * (dest_file_len + 2));
for(i = (int)dest_file_len - 1; dest_file[i] != _T('\\'); i--);
lstrcpyn(puText, dest_file, i + 2);
diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj b/plugins/Db_autobackups/db_autobackups_10.vcxproj
index 18ef0b6135..eb409a44ae 100644
--- a/plugins/Db_autobackups/db_autobackups_10.vcxproj
+++ b/plugins/Db_autobackups/db_autobackups_10.vcxproj
@@ -151,9 +151,9 @@
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="backup.c" />
- <ClCompile Include="options.c" />
- <ClCompile Include="main.c" />
+ <ClCompile Include="backup.cpp" />
+ <ClCompile Include="options.cpp" />
+ <ClCompile Include="main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="headers.h" />
diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters b/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters
index 964916d73a..52d562b3c9 100644
--- a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters
+++ b/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters
@@ -15,13 +15,13 @@
</Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="backup.c">
+ <ClCompile Include="backup.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="options.c">
+ <ClCompile Include="options.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="main.c">
+ <ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
diff --git a/plugins/Db_autobackups/headers.h b/plugins/Db_autobackups/headers.h
index b0c235855a..41da04b69b 100644
--- a/plugins/Db_autobackups/headers.h
+++ b/plugins/Db_autobackups/headers.h
@@ -44,6 +44,6 @@ int LoadOptions(void);
HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle);
extern HINSTANCE hInst;
-TCHAR* profilePath;
+extern TCHAR* profilePath;
#endif
diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp
index 1d00a3b60f..714c02d3f6 100644
--- a/plugins/Db_autobackups/main.cpp
+++ b/plugins/Db_autobackups/main.cpp
@@ -6,6 +6,7 @@ struct MM_INTERFACE mmi;
HINSTANCE hInst;
PLUGINLINK *pluginLink;
int hLangpack;
+TCHAR* profilePath;
HANDLE hFolder;
HANDLE hHooks[4];
@@ -29,8 +30,6 @@ PLUGININFOEX pluginInfo={
{ 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } }
};
-#define MIID_DB_AUTOBACKUPS { 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } }
-
struct
{
TCHAR* szDescr;
@@ -165,19 +164,19 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
return TRUE;
}
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
-int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink=link;
SysInit();
return 0;
}
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
int i;
@@ -249,4 +248,4 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle)
SendMessage(hwndTT, TTM_SETTITLE, 1, (LPARAM)ptszTitle);
SendMessage(hwndTT, TTM_SETMAXTIPWIDTH, 0, (LPARAM)700);
return hwndTT;
-}
+} \ No newline at end of file