summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xChangelog.txt399
-rwxr-xr-xUpgradeLog.XML12
-rwxr-xr-xmsg_export.dep54
-rwxr-xr-xmsg_export.dsp236
-rwxr-xr-xmsg_export.dsw29
-rwxr-xr-xmsg_export.sln26
-rwxr-xr-xmsg_export.txt200
-rwxr-xr-xmsg_export.vcproj603
-rwxr-xr-xmsg_export_10.vcxproj162
-rwxr-xr-xmsg_export_10.vcxproj.filters63
-rwxr-xr-xres/export_m.ico (renamed from export_m.ico)bin9062 -> 9062 bytes
-rwxr-xr-xres/langpack_msg_export.txt (renamed from langpack_msg_export.txt)0
-rwxr-xr-xres/notick.ico (renamed from notick.ico)bin318 -> 318 bytes
-rwxr-xr-xres/resource.rc (renamed from resource.rc)2
-rwxr-xr-xres/tick.ico (renamed from tick.ico)bin318 -> 318 bytes
-rwxr-xr-xsrc/FileViewer.cpp (renamed from FileViewer.cpp)8
-rwxr-xr-xsrc/FileViewer.h (renamed from FileViewer.h)0
-rwxr-xr-xsrc/Glob.h (renamed from Glob.h)0
-rwxr-xr-xsrc/main.cpp (renamed from main.cpp)29
-rwxr-xr-xsrc/options.cpp (renamed from options.cpp)18
-rwxr-xr-xsrc/options.h (renamed from options.h)0
-rwxr-xr-xsrc/resource.h (renamed from resource.h)0
-rwxr-xr-xsrc/utils.cpp (renamed from utils.cpp)51
-rwxr-xr-xsrc/utils.h (renamed from utils.h)8
24 files changed, 278 insertions, 1622 deletions
diff --git a/Changelog.txt b/Changelog.txt
deleted file mode 100755
index e099413..0000000
--- a/Changelog.txt
+++ /dev/null
@@ -1,399 +0,0 @@
-Mod by ring0
-=============================
-Version 3.1.0.3
--Bug fix: UTF8 was decoded incorrectly
-
-
-Original version
-=============================
-Version 3.01.00
--New : Compiled with VS2005
--New : Compiled as Unicode
--Changed : Ansi version will no longer read UTF8 event from the database
-
-
-Version 3.00.00
-
--New : Export to UTF8 text files. ( Langpack updated )
--New : When used with unicode version of miranda you can export unicode.
--New : When %identifier% is used with a contact using jabber the Jabber ID is used.
-
-Version 2.15.01
-
--Bug fix : Message Export2 in options was not translatable.
-
-Version 2.15.00
-
--New : Select protocols to export. This should fix the double entries with metacontacts. ( Langpack updated )
-
-Version 2.14.03
-
--Bug fix : Message window (SRMM) sends EVENTTYPE_STATUSCHANGE event this was logged as Unknowen event. It will be ignored.
--Bug fix : If the internal file viewer window is closed while minimized it will not show next time it is opened.
-
-
-Version 2.14.02
-
-
--Bug fix : %identifier% was only replaced for ICQ and MSN protocols. Now it will use %nick% if it is not one of those protocols
-
-
-Version 2.14.01
-
-
--Bug fix : Backslash in user name was not replaced.
-
-
-Version 2.14.00
-
-
--New : Clickable URIs in message history
-
-
-Version 2.13.00
-
-
--New : Variable %year%, %month% and %day% in export path or file name.
--Changed : Doc was updated.
-
-
-Version 2.12.00
-
-
--New : Variable %identifier% in export path or file name.
--New : Page in the options "Message Export2"
--New : When the filename is changed the action can be set to Prompt, Rename or Nothing.
--New : When the user is deleted the action can be set to Prompt, Delete or Nothing.
--Changed : File size was decreased
-
-
-Version 2.11.00
-
-
--When copying text from internal file viewer leading spaces after a new line will be removed.
-
-
-Version 2.10.00
-
-
--Option to enable or disable history for every contact on the list. Default is enabled.
--Added syntax highlighting for files with << and >> in the exported format.
-
-
-Version 2.09.00
-
-
--Option to use << and >> in the exported format instead of the usual nick. ( Langpack updated )
- Note Syntax highlighting will not work !! ( coming later )
-
-
-Version 2.08.01
-
-
--Bug fix if you had multiply ICQ protocols the ICQ variables might not work.
--Export file header now also includes the protocol for the contact.
--Some ICQ dependencies removed.
-
-
-Version 2.08.00
-
-
--Internal file viewer will not scroll to the bottom when a new event is added to the file.
--Improvement in the "Auto filename". Only sets the filename if it's not already set. When a match is found it will set the filename for both contacts.
-
-
-Version 2.07.01
-
-
--Bug fix If you export old history and you have more than 32768 events some of the history
- will not be exportet. This was because of a bug in Microsoft STD.
- Thanks Carl.
-
-
-Version 2.07.00
-
-
-IMPORTANT UPDATE !
--Bug fix old history might be owerwritten by new history !!!
-If you history file has a size which can be divided by 65536.
-It will write new events in the beginning of the file.
-
--Bug fix Apply Button was not enabled when "Set to default filename" was used.
--Only prompts if you want to delete a file if there are no other contacts using it.
--Code changed to compile with warning level 4.
-
-
-Version 2.06.00
-
-
--Show User details in options. ( Langpack updated )
-
-
-Version 2.05.01
-
-
--Bug fix : was not always being replaced causing file creation to fail.
-
-
-Version 2.05.00
-
-
--WebPager support. ( Langpack updated )
-Will be exported to Current user File.
-You do not need to have the WebPager plugin, but if you dont you will not see
-that you have receive a WebPager message.
-
-
-Version 2.04.01
-
-
--Bugfix: MSN file transfer event not same format as ICQ event.
--Icon changed so that if you use Replace miranda history it will show ,
-msg_export icon in right click menu.
-
-
-Version 2.04.00
-
-
--User defined file viewer.
--Optional extra new line.
--Added variable %protocol% in export path or file name.
--Improved (Unknown Contact) handling.
--Save as RTF, in the file viewer menu, this feature may be removed again.
-
-
-Version 2.03.00
-
-
--Syntax highlighting ( in the internal file viewer )
-
-
-Version 2.02.00
-
-
--Clicking the header in the options allows you to sort the user list by Nick, Proto or UIN.
-
-
-Version 2.01.00
-
-
--Checks for errors in the language pack which may result in crashes.
--When %UIN% can not be found %nick% is used
--Many language pack strings removed.
--New column in options with protocol.
--Size optimized
-
-
-Version 2.00.00
-
-
--Bugfix. The relative path detection had a flaw which causes it not to detect a relative path. When this happens the location of your exported files will change after a file transfer.
-
-
-Version 1.9.9
-
-
-If you are using 1.9.7 and not having any problems no need to update.
-
--Bugfix. This bug is just way too stupid to describe. Lets just say you dont want to release crash testing code.
-
-
-Version 1.9.8
-
-
-If you are not having problems no need to update.
-
--Added error dialog when used with Miranda 0.2.0.0 alpha, would otherwise crash at startup. ( Langpack updated )
-
-
-
-Version 1.9.7
-
-
--Optional if you want a "Prompt to delete file" when you delete a contact. ( Langpack updated )
-
-
-Version 1.9.6
-
-
--%e-mail% variable can be used to name files. If the user does not have one %nick% will be used. Supports ICQ and MSN.
--"Set to default filename" allows you to set the file name on some users to what you have written in the Default File option.
--Dialog if the path to Miranda.exe can not be found. This will result in the use of relative paths.
--Debug button in options dialog will shows internal variables.
-
-
-Version 1.9.5
-
-
--Question if you want to delete file when you delete contact. ( Langpack updated )
--Bugfix: Ignore file change to (Unknown Contact) working when you have language pack installed.
-
-
-Version 1.9.4
-
-
--File change detection / reload
-
-
-Version 1.9.3
-
-
--Bugfix /*?<>|" was not beeing replaced (intruduced in 1.9.1) sorry about that.
-
-
-
-Version 1.9.2
-
-
--If no file is found when using the internal file viewer, it will display file path and number of events in the Miranda database.
--If something fails you can save debug information.
--More fail checking in AUTHREQUEST or ADDED handling.
-
-
-
-Version 1.9.1
-
-
--Font selection.
--Bug fix : and " in User nick was not replaced causing file creation to fail.
--Bug fix selecting new path with browse button did not enable apply button.
-
-
-
-Version 1.9.0
-
-
--Background color selection.
-
-
-
-Version 1.8.0
-
-
--FileName change detection.
--File Viewer Font changed on Win 98 / NT 4.0, ( not changeable )
-
-
-Version 1.7.1
-
-
--Fixed internal file viewer not working.
--New Icon ( thanks to Muhannad )
-
-
-
-Version 1.7.0
-
-
--Internal File Viewer
--Your can replace miranda history with File viewer.
-
-
-Version 1.6.0
-
-
-- SMS support. You need the SMS plugin for this to work.
-It is only tested with LB_Sms Version 0.0.0.1
-
-
-Version 1.5.0
-
-
-- EmailExpress support. Will be exported to Current user File(your nick). You do not need to have the EmailExpress plugin, but if you dont you will not see that you have receive an EmailExpress message.
-
-
-Version 1.4.1
-
-
-- Fixed multi line File and URL descriptions was not indented.
-- Rewrite line splitting algorithm. Will now also split lines at ' ','?','-','.',','.
-- Default time format changes to d s
-- A few more error dialogs you properly will never see.
-
-
-
-Version 1.4.0
-
-
--Variable %group% in export path
--Export "authorization requests" to Current user file
--Export "added to contact list" to Current user file
--Export history for selected users.
--Current user added to user list
--Auto create export folders
-
-
-
-Version 1.3.0
-
-
--Language pack support
-
-
-Version 1.2.1
-
-
--Workaround for bug in Convers.dll
-
-
-Version 1.2.0
-
-
--Bugfix for using relative paths
--Default file name option (%UIN% / %nick%)
--Dropdown listbox. (help)
--Help file.
--Help button.
--Rebased ( 0x22100000 )
-
-
-Version 1.1.0(a)
-
-
--Configurable output file for every user
--Progress bar on Export All
--Export All Sorting
--Initial user info expanded.
--More Error dialogs.
--Auto file name
--Some code cleaning
-(Updated preview)
-
-
-Version 1.1.0
-
-
--Configurable output file for every user
--Progress bar on Export All
--Export All Sorting
--Initial user info expanded.
--More Error dialogs.
--Auto file name
--Some code cleaning
-
-
-
-Version 1.0.4
-
-
--Bugfix for not loading on Windows 98 / 95 / ME
-
-
-Version 1.0.3
-
-
--Added message boxes on all initilizing failures
--Added browse button in options
-
-
-Version 1.0.2
-
-
-- Bug fix, the first character is missing on the second and subsequent lines.
-- added support for uninstall plugin
-
-
-Version 1.0.0
-
-
--First release \ No newline at end of file
diff --git a/UpgradeLog.XML b/UpgradeLog.XML
deleted file mode 100755
index 3b6a763..0000000
--- a/UpgradeLog.XML
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?><UpgradeLog>
-<Properties><Property Name="Solution" Value="msg_export">
-</Property><Property Name="Файл решения" Value="X:\temp\msgexport\msg_export.sln">
-</Property><Property Name="Date" Value="16 октября 2011 г.">
-</Property><Property Name="Time" Value="11:02">
-</Property></Properties><Event ErrorLevel="0" Project="msg_export" Source="msg_export.vcproj" Description="Веб-развертывание на локальном IIS-сервере больше не поддерживается. Инструмент веб-развертывания был удален из параметров проекта.">
-</Event><Event ErrorLevel="1" Project="msg_export" Source="msg_export.vcproj" Description="Приложение было обновлено, чтобы включить параметры, связанные с контролем учетных записей пользователей (UAC), появившемся в Windows Vista. По умолчанию, в Windows Vista при включенном UAC, приложение запускается с теми же привилегиями, что и запустивший его процесс. Это также делает невозможным запуск приложений с технологией виртуализации. Параметры, связанные с UAC можно поменять на странице свойств проекта.">
-</Event><Event ErrorLevel="0" Project="msg_export" Source="msg_export.vcproj" Description="Проект обновлен успешно.">
-</Event><Event ErrorLevel="3" Project="msg_export" Source="msg_export.vcproj" Description="Converted">
-</Event><Event ErrorLevel="0" Project="" Source="msg_export.sln" Description="Преобразование решения успешно завершено">
-</Event><Event ErrorLevel="3" Project="" Source="msg_export.sln" Description="Converted">
-</Event></UpgradeLog> \ No newline at end of file
diff --git a/msg_export.dep b/msg_export.dep
deleted file mode 100755
index 4ca2789..0000000
--- a/msg_export.dep
+++ /dev/null
@@ -1,54 +0,0 @@
-# Microsoft Developer Studio Generated Dependency File, included by msg_export.mak
-
-.\main.c : \
- "..\..\miranda32\core\m_system.h"\
- "..\..\miranda32\database\m_database.h"\
- "..\..\miranda32\random\langpack\m_langpack.h"\
- "..\..\miranda32\random\plugins\m_plugins.h"\
- "..\..\miranda32\random\plugins\newpluginapi.h"\
- "..\..\miranda32\random\skin\m_skin.h"\
- "..\..\miranda32\ui\contactlist\m_clist.h"\
- "..\..\miranda32\ui\contactlist\statusmodes.h"\
- "..\..\miranda32\ui\options\m_options.h"\
- ".\glob.h"\
- ".\options.h"\
- ".\utils.h"\
- "c:\program files\microsoft platform sdk\include\basetsd.h"\
- "c:\program files\microsoft platform sdk\include\guiddef.h"\
- "c:\program files\microsoft platform sdk\include\propidl.h"\
- "c:\program files\microsoft platform sdk\include\tvout.h"\
- "c:\program files\microsoft platform sdk\include\winefs.h"\
-
-
-.\options.c : \
- "..\..\miranda32\database\m_database.h"\
- "..\..\miranda32\random\plugins\m_plugins.h"\
- "..\..\miranda32\random\plugins\newpluginapi.h"\
- "..\..\miranda32\ui\options\m_options.h"\
- ".\glob.h"\
- ".\utils.h"\
- "c:\program files\microsoft platform sdk\include\basetsd.h"\
- "c:\program files\microsoft platform sdk\include\guiddef.h"\
- "c:\program files\microsoft platform sdk\include\propidl.h"\
- "c:\program files\microsoft platform sdk\include\shldisp.h"\
- "c:\program files\microsoft platform sdk\include\tvout.h"\
- "c:\program files\microsoft platform sdk\include\winefs.h"\
-
-
-.\utils.c : \
- "..\..\miranda32\database\m_database.h"\
- "..\..\miranda32\random\plugins\m_plugins.h"\
- "..\..\miranda32\random\plugins\newpluginapi.h"\
- "..\..\miranda32\ui\contactlist\m_clist.h"\
- "..\..\miranda32\ui\contactlist\statusmodes.h"\
- ".\glob.h"\
- "c:\program files\microsoft platform sdk\include\basetsd.h"\
- "c:\program files\microsoft platform sdk\include\guiddef.h"\
- "c:\program files\microsoft platform sdk\include\propidl.h"\
- "c:\program files\microsoft platform sdk\include\tvout.h"\
- "c:\program files\microsoft platform sdk\include\winefs.h"\
-
-
-.\resource.rc : \
- ".\export_m.ico"\
-
diff --git a/msg_export.dsp b/msg_export.dsp
deleted file mode 100755
index 6dba434..0000000
--- a/msg_export.dsp
+++ /dev/null
@@ -1,236 +0,0 @@
-# Microsoft Developer Studio Project File - Name="msg_export" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=msg_export - Win32 Release
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "msg_export.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "msg_export.mak" CFG="msg_export - Win32 Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "msg_export - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "msg_export - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "msg_export - Win32 Debug Unicode" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "msg_export - Win32 Release Unicode" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "msg_export - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MSG_EXPORT_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W4 /Gi /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x407 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 msvcrt.lib User32.lib Kernel32.lib Comdlg32.lib Shell32.lib Gdi32.lib comctl32.lib libcpmtd.lib oldnames.lib /nologo /base:"0x22100000" /dll /pdb:none /machine:I386 /nodefaultlib /filealign:0x200
-# SUBTRACT LINK32 /map /debug
-
-!ELSEIF "$(CFG)" == "msg_export - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "msg_export___Win32_Debug"
-# PROP BASE Intermediate_Dir "msg_export___Win32_Debug"
-# PROP BASE Ignore_Export_Lib 1
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "msg_export___Win32_Debug"
-# PROP Intermediate_Dir "msg_export___Win32_Debug"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MD /W3 /Gi /GX /O2 /YX /FD /c
-# ADD CPP /nologo /MT /W4 /Gi /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /FR /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x407 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 user32.lib gdi32.lib comdlg32.lib /nologo /dll /pdb:none /machine:I386 /out:"Release/enotify.dll" /filealign:0x200
-# ADD LINK32 User32.lib Shell32.lib Comdlg32.lib Gdi32.lib comctl32.lib /nologo /base:"0x22100000" /dll /pdb:none /debug /debugtype:both /machine:I386 /out:"../Bin/Debug/plugins/Msg_Export.dll" /filealign:0x200
-# SUBTRACT LINK32 /map /nodefaultlib
-
-!ELSEIF "$(CFG)" == "msg_export - Win32 Debug Unicode"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "msg_export___Win32_Debug_Unicode"
-# PROP BASE Intermediate_Dir "msg_export___Win32_Debug_Unicode"
-# PROP BASE Ignore_Export_Lib 1
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "msg_export___Win32_Debug_Unicode"
-# PROP Intermediate_Dir "msg_export___Win32_Debug_Unicode"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W4 /Gi /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /FR /YX /FD /c
-# ADD CPP /nologo /MT /W4 /Gi /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /FR /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 User32.lib Shell32.lib Comdlg32.lib Gdi32.lib comctl32.lib /nologo /base:"0x22100000" /dll /pdb:none /debug /debugtype:both /machine:I386 /out:"../Bin/Debug/plugins/Msg_Export.dll" /filealign:0x200
-# SUBTRACT BASE LINK32 /map /nodefaultlib
-# ADD LINK32 User32.lib Shell32.lib Comdlg32.lib Gdi32.lib comctl32.lib /nologo /base:"0x22100000" /dll /pdb:none /debug /debugtype:both /machine:I386 /out:"../Bin/Debug/plugins/Msg_Export.dll" /filealign:0x200
-# SUBTRACT LINK32 /map /nodefaultlib
-
-!ELSEIF "$(CFG)" == "msg_export - Win32 Release Unicode"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "msg_export___Win32_Release_Unicode"
-# PROP BASE Intermediate_Dir "msg_export___Win32_Release_Unicode"
-# PROP BASE Ignore_Export_Lib 0
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release_Unicode"
-# PROP Intermediate_Dir "Release_Unicode"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W4 /Gi /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MT /W4 /Gi /GX /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 msvcrt.lib User32.lib Kernel32.lib Comdlg32.lib Shell32.lib Gdi32.lib comctl32.lib libcpmtd.lib oldnames.lib /nologo /base:"0x22100000" /dll /pdb:none /machine:I386 /nodefaultlib /filealign:0x200
-# SUBTRACT BASE LINK32 /map /debug
-# ADD LINK32 msvcrt.lib User32.lib Kernel32.lib Comdlg32.lib Shell32.lib Gdi32.lib comctl32.lib libcpmtd.lib oldnames.lib /nologo /base:"0x22100000" /dll /pdb:none /machine:I386 /nodefaultlib /filealign:0x200
-# SUBTRACT LINK32 /map /debug
-
-!ENDIF
-
-# Begin Target
-
-# Name "msg_export - Win32 Release"
-# Name "msg_export - Win32 Debug"
-# Name "msg_export - Win32 Debug Unicode"
-# Name "msg_export - Win32 Release Unicode"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\FileViewer.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\FileViewer.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Glob.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\main.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utils.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\utils.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=.\export_m.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\file_vie.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\notick.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\resource.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\resource.rc
-# End Source File
-# Begin Source File
-
-SOURCE=.\tick.ico
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\Changelog.txt
-# End Source File
-# Begin Source File
-
-SOURCE=.\langpack_msg_export.txt
-# End Source File
-# Begin Source File
-
-SOURCE=.\msg_export.txt
-# End Source File
-# Begin Source File
-
-SOURCE=.\TimeNotes.txt
-# End Source File
-# End Target
-# End Project
diff --git a/msg_export.dsw b/msg_export.dsw
deleted file mode 100755
index fc79aff..0000000
--- a/msg_export.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "msg_export"=".\msg_export.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/msg_export.sln b/msg_export.sln
deleted file mode 100755
index cb62ce4..0000000
--- a/msg_export.sln
+++ /dev/null
@@ -1,26 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "msg_export", "msg_export.vcproj", "{4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}"
-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
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Debug - Unicode|Win32.ActiveCfg = Debug - Unicode|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Debug - Unicode|Win32.Build.0 = Debug - Unicode|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Debug|Win32.ActiveCfg = Debug|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Debug|Win32.Build.0 = Debug|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Release - Unicode|Win32.ActiveCfg = Release - Unicode|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Release - Unicode|Win32.Build.0 = Release - Unicode|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Release|Win32.ActiveCfg = Release|Win32
- {4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/msg_export.txt b/msg_export.txt
deleted file mode 100755
index 114b2b7..0000000
--- a/msg_export.txt
+++ /dev/null
@@ -1,200 +0,0 @@
-Description
- Exports every message, URL or File you receive to a text file.
- Messages are exported to one file per user. New messages are
- exported when you receive them. Can be used as history management.
-
- Features:
- -Export all or some of your current history
- -Set individual files per user
- -Set the time format/ column width
- -Open history file for a user from Miranda.
- -Use internal or external File Viewer
- -File change detection / reload
- -File name change detection.
- -Font and background color selection.
-
- Send bug reports, comments and Suggestions to: Kennet_N@ofir.dk.
-
-Export directory
- The path your messages will be exported to.
- You can write a complete path or you can use %dbpath% which is the
- ProfileDir= from your mirandaboot.ini.
- You can also use all the variables ( %..% ) from Default File.
- The "Default File" or the file from "User list" will be joined together
- with the "Export directory" to form the complete file path.
-
- Default: %dbpath%\MsgExport\
-
-Browse
- This will open a "Browse for a folder" where you can select the
- Export directory.
- see Export directory for details.
-
-Default File
- This sets the default file name which will be used if you do not
- specify another on in the User list.
- You can use
- %nick% Nick you are received from or sending to.
- %UIN% UIN you are received from or sending to.
- %group% The group you have put the user in.
- %e-mail% The users E-mail address.
- %protocol% The protocol which the user is using.
- %identifier% This is a protocol specific variable.
- If it is an ICQ user it will be UIN.
- If it is a MSN user it will be e-mail.
- If it is a Jabber user Jabber ID is used.
- When %UIN% or %e-mail% can nor be found %nick% is used.
-
- The following variables do not cause the file name change notification
- %year% The current year as a 4 digit number
- %month% The current month as a 2 digit number
- %day% The current day as a 2 digit number
- %hour% The current day as a 2 digit number
-
- Default: %nick%.txt
-
-Max column width
- This is the maximum line width that will be written to the file.
- If you receive a message which has a longer line the line will
- be broken up in 2 or more lines.
-
- Default: 80
-
-Time format
- Here you can set the format of the time column in the export file.
- The time column is the one after the user.
- You can use:
- t Time without seconds, e.g. hh:mm
- s Time with seconds, e.g. hh:mm:ss
- m Time without minutes, e.g. hh
- d Short date, e.g. dd/mm/yyyy
- D Long date, e.g. d mmmm yyyy
-
- If you write any other characters they will simply be copied over.
- So you may use "d t :" if you like to add a ":" before the message.
-
- Default: "d s"
-
-Replace miranda history
- This option allows you to make the msg_export File Viewer you default
- miranda history viewer. If you do not set this option msg_export will
- create a new menu item to view the exported text file.
-
- Default: Not checked
-
-Use internal viewer
- If you set this option msg_export will use its own File Viewer to
- open the history file's. If you do not set it it will use the program
- you have associated with *.txt files
-
- Default: Checked
-
-External file viewer
- Here you can set the program you which to use to view your history files
- If you set the path to en empty string the explorer default will be
- used, this is just like double clicking the file in your explorer.
- The program that you choose will be lunched with the file as the first
- parameter.
-
- Default:
-
-Use UTF8 in new files
- This option allows you to select the file format you wish message export
- to use. When this option is enabled new files created will use Unicode
- Transformation Format 8. When used with the Unicode version of Miranda
- you can store Unicode in the text files.
- When the option is not enabled files are stored in ANSI format.
- UTF8 file format allows you to move the file to a PC with a different
- code page and the text will still be displayed right.
- Message export always read what format a file is before exporting and
- will use the same format again. To convert an existing file to use UTF8
- you can open it in Notepad and save it as UTF8.
-
-Append extra new line
- If this option is checked every message exported will have en extra new
- line between them.
-
- Default: Checked
-
-Use << and >>
- If this option is checked << and >> will be used instead of "your nick"
- and "receiver nick" in the exported format.
-
- Default: Not checked
-
-User list
- This is a list of your users.
- Here you can set which file you would like to export to.
- If you do not set any file the default <Nick>.txt will be used.
- If you remove the check in the checkbox no export will be made.
-
-Auto filename
- This will try to find accounts in your user list which is the same
- person.
- Some people have multiply accounts on different networks or one at
- work (nick@work) and one at home (nick).
- Normally these two accounts would become 2 different files.
- If you set the (nick@work) to use the (nick) file, events from both
- accounts will be written to the same file, creating a single file with
- all your message history from that person.
- It will not replace any filenames that is already set!
-
-Clear all
- This will clear all the file's you have entered in the User list.
-
-Export all history
- This will export all your history from the database.
- You will only need to activate this function after you have installed
- this plugin or if you change the export directory or format.
- Note that all events will simply be added to the current files even if
- the event is already in the file.
- Important !
- Exported events will be sorted according to the time you received them,
- therefore the order may NOT be the same as when you look in the
- history in Miranda.
- The history in Miranda may be in incorrect order if the original
- messages come from the AOL's ICQ. This is my experience.
-
-When filename changes
- This sets the action that msg_export will take when it detects that a
- file has been renamed. You can choose between
- -Prompt for action: This will show a dialog every time
- -Rename file: This will automatically rename the file every time
- -Do nothing: This will ignore the event, resulting in multiply files
-
- Default: Prompt for action
-
-When user is deleted
- This sets the action that msg_export will take when it detects that a
- user has been deleted and that no other user is using the file the
- deleted user was writing to. You can choose between
- -Prompt for action: This will show a dialog every time.
- -Delete file: This will automatically delete the file.
- -Do nothing: This will ignore the event, resulting in an unused file.
-
- Default: Prompt for action
-
-Export Protocols
- This is a list of your protocols.
- If you remove the check in the checkbox no export will be made for that
- protocol.
-
-##########################################################################
-########################## File Viewer ###########################
-##########################################################################
-
-Find...
- Openens a standart search dialog box to search in the open file.
-
-External
- This will open the Text File in the program you have associated with
- *.txt files.
-
-Font...
- This item is located in the system menu (Top left corner) it alows you to
- change the font used in the file viewer. You can also set the Font
- color.
-
-Color...
- This item is located in the system menu (Top left corner) it alows you to
- change the back ground color. \ No newline at end of file
diff --git a/msg_export.vcproj b/msg_export.vcproj
deleted file mode 100755
index fb41abc..0000000
--- a/msg_export.vcproj
+++ /dev/null
@@ -1,603 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9,00"
- Name="msg_export"
- ProjectGUID="{4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}"
- RootNamespace="msg_export"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/msg_export.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- InlineFunctionExpansion="1"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
- StringPooling="true"
- RuntimeLibrary="0"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="4"
- SuppressStartupBanner="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/filealign:0x200"
- AdditionalDependencies="comctl32.lib"
- LinkIncremental="1"
- SuppressStartupBanner="true"
- GenerateManifest="false"
- IgnoreAllDefaultLibraries="false"
- BaseAddress="0x22100000"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\msg_export___Win32_Debug/msg_export.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- WarningLevel="4"
- SuppressStartupBanner="true"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- IgnoreImportLibrary="true"
- AdditionalOptions="/filealign:0x200"
- AdditionalDependencies="comctl32.lib"
- OutputFile="../Bin/Debug/plugins/Msg_Export.dll"
- LinkIncremental="1"
- SuppressStartupBanner="true"
- GenerateManifest="false"
- IgnoreAllDefaultLibraries="false"
- GenerateDebugInformation="true"
- BaseAddress="0x22100000"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug - Unicode|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\msg_export___Win32_Debug/msg_export.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="&quot;X:\install\git\miranda\miranda-im\miranda\include&quot;"
- PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- WarningLevel="4"
- SuppressStartupBanner="true"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- IgnoreImportLibrary="true"
- AdditionalOptions="/filealign:0x200"
- AdditionalDependencies="comctl32.lib user32.lib kernel32.lib comdlg32.lib shell32.lib"
- LinkIncremental="1"
- SuppressStartupBanner="true"
- GenerateManifest="false"
- IgnoreAllDefaultLibraries="false"
- GenerateDebugInformation="true"
- ProgramDatabaseFile="c:\debug\$(TargetName).pdb"
- BaseAddress="0x22100000"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release - Unicode|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/msg_export.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="&quot;X:\install\git\miranda\miranda-im\miranda\include&quot;"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE"
- StringPooling="true"
- RuntimeLibrary="0"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="4"
- SuppressStartupBanner="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/filealign:0x200"
- AdditionalDependencies="comctl32.lib user32.lib kernel32.lib comdlg32.lib shell32.lib"
- LinkIncremental="1"
- SuppressStartupBanner="true"
- GenerateManifest="false"
- IgnoreAllDefaultLibraries="false"
- BaseAddress="0x22100000"
- RandomizedBaseAddress="1"
- DataExecutionPrevention="0"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
- >
- <File
- RelativePath="FileViewer.cpp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="FileViewer.h"
- >
- </File>
- <File
- RelativePath="Glob.h"
- >
- </File>
- <File
- RelativePath="main.cpp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="options.cpp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="options.h"
- >
- </File>
- <File
- RelativePath="utils.cpp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release - Unicode|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="utils.h"
- >
- </File>
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
- >
- <File
- RelativePath="export_m.ico"
- >
- </File>
- <File
- RelativePath="file_vie.ico"
- >
- </File>
- <File
- RelativePath="notick.ico"
- >
- </File>
- <File
- RelativePath="resource.h"
- >
- </File>
- <File
- RelativePath="resource.rc"
- >
- </File>
- <File
- RelativePath="tick.ico"
- >
- </File>
- </Filter>
- <File
- RelativePath="Changelog.txt"
- >
- </File>
- <File
- RelativePath="langpack_msg_export.txt"
- >
- </File>
- <File
- RelativePath="msg_export.txt"
- >
- </File>
- <File
- RelativePath="TimeNotes.txt"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/msg_export_10.vcxproj b/msg_export_10.vcxproj
new file mode 100755
index 0000000..59f399d
--- /dev/null
+++ b/msg_export_10.vcxproj
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="src\FileViewer.cpp" />
+ <ClCompile Include="src\main.cpp" />
+ <ClCompile Include="src\options.cpp" />
+ <ClCompile Include="src\utils.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\FileViewer.h" />
+ <ClInclude Include="src\Glob.h" />
+ <ClInclude Include="src\options.h" />
+ <ClInclude Include="src\resource.h" />
+ <ClInclude Include="src\utils.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="res\export_m.ico" />
+ <None Include="res\notick.ico" />
+ <None Include="res\tick.ico" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\resource.rc" />
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{4CE78D43-FF23-4134-A5AC-B2CF0F8D9F3B}</ProjectGuid>
+ <RootNamespace>msg_export</RootNamespace>
+ <ProjectName>msg_export</ProjectName>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
+ <GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</GenerateManifest>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir>
+ <IgnoreImportLibrary Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</IgnoreImportLibrary>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
+ <GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</GenerateManifest>
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Release/msg_export.tlb</TypeLibraryName>
+ <HeaderFileName>
+ </HeaderFileName>
+ </Midl>
+ <ClCompile>
+ <Optimization>MinSpace</Optimization>
+ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);_CRT_SECURE_NO_DEPRECATE;UNICODE;_UNICODE</PreprocessorDefinitions>
+ <StringPooling>true</StringPooling>
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <PrecompiledHeader>
+ </PrecompiledHeader>
+ <WarningLevel>Level4</WarningLevel>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;libgadu;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <AdditionalOptions>/filealign:0x200 %(AdditionalOptions)</AdditionalOptions>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <BaseAddress>0x22100000</BaseAddress>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <DataExecutionPrevention>
+ </DataExecutionPrevention>
+ <TargetMachine>MachineX86</TargetMachine>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\msg_export___Win32_Debug/msg_export.tlb</TypeLibraryName>
+ <HeaderFileName>
+ </HeaderFileName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;%(PreprocessorDefinitions);_CRT_SECURE_NO_DEPRECATE;UNICODE;_UNICODE</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ <PrecompiledHeader>
+ </PrecompiledHeader>
+ <BrowseInformation>true</BrowseInformation>
+ <WarningLevel>Level4</WarningLevel>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;libgadu;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <AdditionalOptions>/filealign:0x200 %(AdditionalOptions)</AdditionalOptions>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <BaseAddress>0x22100000</BaseAddress>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <DataExecutionPrevention>
+ </DataExecutionPrevention>
+ <TargetMachine>MachineX86</TargetMachine>
+ <AdditionalLibraryDirectories>$(SolutionDir)\lib</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/msg_export_10.vcxproj.filters b/msg_export_10.vcxproj.filters
new file mode 100755
index 0000000..ada2a79
--- /dev/null
+++ b/msg_export_10.vcxproj.filters
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{8b9237c4-9104-49cd-9e02-a216d059bfb6}</UniqueIdentifier>
+ <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{f8f2c8ef-4b67-43be-b1c4-cf53c2e15bd7}</UniqueIdentifier>
+ <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
+ </Filter>
+ <Filter Include="Headers">
+ <UniqueIdentifier>{a4d03f87-3170-4821-9a81-648b77757e88}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="src\FileViewer.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\options.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\utils.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\FileViewer.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="src\Glob.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="src\options.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="src\resource.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="src\utils.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="res\export_m.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\notick.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ <None Include="res\tick.ico">
+ <Filter>Resource Files</Filter>
+ </None>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\resource.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/export_m.ico b/res/export_m.ico
index 5f85a18..5f85a18 100755
--- a/export_m.ico
+++ b/res/export_m.ico
Binary files differ
diff --git a/langpack_msg_export.txt b/res/langpack_msg_export.txt
index 2397ac0..2397ac0 100755
--- a/langpack_msg_export.txt
+++ b/res/langpack_msg_export.txt
diff --git a/notick.ico b/res/notick.ico
index 4ff17df..4ff17df 100755
--- a/notick.ico
+++ b/res/notick.ico
Binary files differ
diff --git a/resource.rc b/res/resource.rc
index 8ca0115..cb3a5fd 100755
--- a/resource.rc
+++ b/res/resource.rc
@@ -1,6 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
-#include "resource.h"
+#include "src/resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
diff --git a/tick.ico b/res/tick.ico
index d24d6ad..d24d6ad 100755
--- a/tick.ico
+++ b/res/tick.ico
Binary files differ
diff --git a/FileViewer.cpp b/src/FileViewer.cpp
index f53d446..b7765b6 100755
--- a/FileViewer.cpp
+++ b/src/FileViewer.cpp
@@ -73,9 +73,9 @@ void swap(char &c1, char &c2) {
c2=ch;
}
-int DecodeUTF8(const char *pcBuff,int iBufSize,char *pcOutBuf) {
+int DecodeUTF8(const char *pcBuff,int /*iBufSize*/,char *pcOutBuf) {
int iBytesInOut=0;
- int cp,i;
+ int /*cp,*/i;
char ch,*p;
//Parse UTF-8 sequence
@@ -1051,7 +1051,7 @@ void SetRichEditFont(HWND hRichEdit, bool bUseSyntaxHL )
ncf.dwMask = CFM_BOLD | CFM_FACE | CFM_ITALIC | CFM_SIZE | CFM_UNDERLINE;
ncf.dwEffects = DBGetContactSettingDword( NULL , MODULE , szFileViewDB "TEffects" , 0 );
ncf.yHeight = DBGetContactSettingDword( NULL , MODULE , szFileViewDB "THeight" , 165 );
- _tcscpy( ncf.szFaceName , DBGetString( NULL , MODULE , szFileViewDB "TFace" , _T("Courier New")).c_str() );
+ _tcscpy( ncf.szFaceName , _DBGetString( NULL , MODULE , szFileViewDB "TFace" , _T("Courier New")).c_str() );
if( ! bUseSyntaxHL )
{
@@ -1223,7 +1223,7 @@ static BOOL CALLBACK DlgProcFileViewer(HWND hwndDlg, UINT msg, WPARAM wParam, LP
lf.lfStrikeOut = (dwEffects & CFE_STRIKEOUT) != 0;
lf.lfItalic = (dwEffects & CFE_ITALIC) != 0;
}
- _tcscpy(lf.lfFaceName, DBGetString( NULL , MODULE , szFileViewDB "TFace" , _T("Courier New")).c_str());
+ _tcscpy(lf.lfFaceName, _DBGetString( NULL , MODULE , szFileViewDB "TFace" , _T("Courier New")).c_str());
CHOOSEFONT cf = { 0 };
cf.lStructSize = sizeof( cf );
cf.hwndOwner = hwndDlg;
diff --git a/FileViewer.h b/src/FileViewer.h
index 6da79c9..6da79c9 100755
--- a/FileViewer.h
+++ b/src/FileViewer.h
diff --git a/Glob.h b/src/Glob.h
index 8de2c08..8de2c08 100755
--- a/Glob.h
+++ b/src/Glob.h
diff --git a/main.cpp b/src/main.cpp
index 71a5bff..c49623d 100755
--- a/main.cpp
+++ b/src/main.cpp
@@ -31,13 +31,8 @@
#define MS_SHOW_EXPORT_HISTORY "History/ShowExportHistory"
-MM_INTERFACE mmi = {0};
-
-UTF8_INTERFACE utfi = {0};
-
HINSTANCE hInstance = NULL;
-
-PLUGINLINK *pluginLink;
+int hLangpack = 0;
// static so they can not be used from other modules ( sourcefiles )
static HANDLE hEventOptionsInitialize = 0;
@@ -65,7 +60,6 @@ PLUGININFOEX pluginInfo = {
" 2002 Kennet Nielsen",
"http://sourceforge.net/projects/msg-export/",
UNICODE_AWARE,
- 0,
#ifdef _UNICODE
{ 0x46102b07, 0xc215, 0x4162, { 0x9c, 0x83, 0xd3, 0x77, 0x88, 0x1d, 0xa7, 0xcc } } // {46102B07-C215-4162-9C83-D377881DA7CC}
#else
@@ -209,8 +203,7 @@ int MainInit(WPARAM /*wparam*/,LPARAM /*lparam*/)
mi.pszName=Translate("Open E&xported History");
mi.pszService=MS_SHOW_EXPORT_HISTORY;
}
-
- hOpenHistoryMenuItem = (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM,0,(LPARAM)&mi);
+ hOpenHistoryMenuItem = Menu_AddContactMenuItem(&mi);
if( !hOpenHistoryMenuItem )
MessageBox( NULL , _T("Failed to add menu item Open Exported History\nCallService(MS_CLIST_ADDCONTACTMENUITEM,...)") , MSG_BOX_TITEL , MB_OK );
@@ -314,11 +307,9 @@ extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-int __declspec(dllexport)Load(PLUGINLINK *link)
+int __declspec(dllexport)Load()
{
- pluginLink=link;
- mir_getMMI( &mmi );
- mir_getUTFI(&utfi);
+ mir_getLP(&pluginInfo);
hEventSystemInit = HookEvent(ME_SYSTEM_MODULESLOADED,MainInit);
if( !hEventSystemInit )
@@ -331,12 +322,12 @@ int __declspec(dllexport)Load(PLUGINLINK *link)
if( nMaxLineWidth < 5 )
nMaxLineWidth = 5;
- sExportDir = DBGetString( NULL , MODULE , "ExportDir" , _T("%dbpath%\\MsgExport\\") );
- sDefaultFile = DBGetString( NULL , MODULE , "DefaultFile" , _T("%nick%.txt") );
+ sExportDir = _DBGetString( NULL , MODULE , "ExportDir" , _T("%dbpath%\\MsgExport\\") );
+ sDefaultFile = _DBGetString( NULL , MODULE , "DefaultFile" , _T("%nick%.txt") );
- sTimeFormat = DBGetString( NULL , MODULE , "TimeFormat" , _T("d s") );
+ sTimeFormat = _DBGetString( NULL , MODULE , "TimeFormat" , _T("d s") );
- sFileViewerPrg = DBGetString( NULL , MODULE , "FileViewerPrg" , _T("") );
+ sFileViewerPrg = _DBGetString( NULL , MODULE , "FileViewerPrg" , _T("") );
bUseInternalViewer( DBGetContactSettingByte( NULL , MODULE , "UseInternalViewer" , bUseInternalViewer() ) != 0 );
bReplaceHistory = DBGetContactSettingByte( NULL , MODULE , "ReplaceHistory" , bReplaceHistory ) != 0;
@@ -352,7 +343,7 @@ int __declspec(dllexport)Load(PLUGINLINK *link)
if( bReplaceHistory )
{
- hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,ShowExportHistory);
+/* hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,ShowExportHistory); //this need new code
if( hServiceFunc )
{
int *disableDefaultModule=(int*)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY,0,0);
@@ -367,7 +358,7 @@ int __declspec(dllexport)Load(PLUGINLINK *link)
}
}
- if( ! hServiceFunc )
+ if( ! hServiceFunc ) */
MessageBox( NULL , TranslateTS(_T("Failed to replace Miranda History.\r\nThis is most likely due to changes in Miranda.")) , MSG_BOX_TITEL , MB_OK );
}
diff --git a/options.cpp b/src/options.cpp
index 4464658..17bc917 100755
--- a/options.cpp
+++ b/src/options.cpp
@@ -136,20 +136,20 @@ int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
if( lParamSort == 2 )
{
- return DBGetString( (HANDLE)lParam1 , "Protocol" , "p" , _T("") ).compare(
- DBGetString( (HANDLE)lParam2 , "Protocol" , "p" , _T("") )
+ return _DBGetString( (HANDLE)lParam1 , "Protocol" , "p" , _T("") ).compare(
+ _DBGetString( (HANDLE)lParam2 , "Protocol" , "p" , _T("") )
);
}
if( lParamSort == 3 )
{
DWORD dwUin1 = DBGetContactSettingDword(
(HANDLE)lParam1,
- DBGetStringA( (HANDLE)lParam1 , "Protocol" , "p" , "" ).c_str(),
+ _DBGetStringA( (HANDLE)lParam1 , "Protocol" , "p" , "" ).c_str(),
"UIN",
0);
DWORD dwUin2 = DBGetContactSettingDword(
(HANDLE)lParam2,
- DBGetStringA( (HANDLE)lParam2 , "Protocol" , "p" , "" ).c_str(),
+ _DBGetStringA( (HANDLE)lParam2 , "Protocol" , "p" , "" ).c_str(),
"UIN",
0);
@@ -743,7 +743,7 @@ static BOOL CALLBACK DlgProcMsgExportOpts(HWND hwndDlg, UINT msg, WPARAM wParam,
sItem.lParam = (LPARAM) hContact;
- sTmp = DBGetString( hContact , MODULE , "FileName" , _T("") );
+ sTmp = _DBGetString( hContact , MODULE , "FileName" , _T("") );
sItem.pszText = (_TCHAR*)sTmp.c_str();
ListView_InsertItem( hMapUser , &sItem );
@@ -755,8 +755,8 @@ static BOOL CALLBACK DlgProcMsgExportOpts(HWND hwndDlg, UINT msg, WPARAM wParam,
sItem.iSubItem = 2;
- sTmp = DBGetString( hContact , "Protocol" , "p" , _T("") );
- string sTmpA = DBGetStringA( hContact , "Protocol" , "p" , "" );
+ sTmp = _DBGetString( hContact , "Protocol" , "p" , _T("") );
+ string sTmpA = _DBGetStringA( hContact , "Protocol" , "p" , "" );
sItem.pszText = (_TCHAR*)sTmp.c_str();
ListView_SetItem( hMapUser , &sItem );
@@ -1471,13 +1471,13 @@ int OptionsInitialize(WPARAM wParam,LPARAM /*lParam*/)
odp.pszGroup = Translate("Plugins");
odp.groupPosition = 100000000;
odp.pfnDlgProc = DlgProcMsgExportOpts;
- CallService(MS_OPT_ADDPAGE,wParam,(LPARAM)&odp);
+ Options_AddPage(wParam,&odp);
odp.position = 100000001;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MSGEXPORT2);
odp.pszTitle = Translate("Message export2");
odp.pfnDlgProc = DlgProcMsgExportOpts2;
- CallService(MS_OPT_ADDPAGE,wParam,(LPARAM)&odp);
+ Options_AddPage(wParam,&odp);
return 0;
}
diff --git a/options.h b/src/options.h
index 60debd4..60debd4 100755
--- a/options.h
+++ b/src/options.h
diff --git a/resource.h b/src/resource.h
index cd12714..cd12714 100755
--- a/resource.h
+++ b/src/resource.h
diff --git a/utils.cpp b/src/utils.cpp
index 6df102a..3643d2c 100755
--- a/utils.cpp
+++ b/src/utils.cpp
@@ -275,7 +275,7 @@ const _TCHAR* NickFromHandle(HANDLE hContact)
}
/////////////////////////////////////////////////////////////////////
-// Member Function : DBGetString
+// Member Function : _DBGetString
// Type : Global
// Parameters : hContact - ?
// szModule - ?
@@ -290,7 +290,7 @@ const _TCHAR* NickFromHandle(HANDLE hContact)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-tstring DBGetStringW(HANDLE hContact,const char *szModule,const char *szSetting , const _TCHAR * pszError )
+tstring _DBGetStringW(HANDLE hContact,const char *szModule,const char *szSetting , const _TCHAR * pszError )
{
tstring ret;
DBVARIANT dbv = {0};
@@ -313,7 +313,7 @@ tstring DBGetStringW(HANDLE hContact,const char *szModule,const char *szSetting
return ret;
}
-string DBGetStringA(HANDLE hContact,const char *szModule,const char *szSetting , const char * pszError )
+string _DBGetStringA(HANDLE hContact,const char *szModule,const char *szSetting , const char * pszError )
{
string ret;
DBVARIANT dbv = {0};
@@ -383,7 +383,7 @@ void ReplaceAll( tstring &sSrc , const _TCHAR * pszReplace , const _TCHAR * pszN
bool bCreatePathToFile( tstring sFilePath )
{
string::size_type nPos = sFilePath.rfind( '\\' );
- if( nPos != string.npos )
+ if( nPos != string::npos )
{
if( nPos + 1 < sFilePath.size() )
sFilePath.erase( nPos + 1);
@@ -571,7 +571,6 @@ bool bWriteHexToFile( HANDLE hFile , void * pData, int nSize )
// Developer : KN
/////////////////////////////////////////////////////////////////////
-extern UTF8_INTERFACE utfi;
bool bReadMirandaDirAndPath()
{
@@ -636,9 +635,9 @@ void ReplaceDBPath( tstring &sRet )
tstring GetFilePathFromUser( HANDLE hContact )
{
- tstring sFilePath = sExportDir + DBGetString( hContact , MODULE , "FileName" , sDefaultFile.c_str() );
+ tstring sFilePath = sExportDir + _DBGetString( hContact , MODULE , "FileName" , sDefaultFile.c_str() );
- bool bNickUsed = sFilePath.find( _T("%nick%") ) != string.npos;
+ bool bNickUsed = sFilePath.find( _T("%nick%") ) != string::npos;
ReplaceDefines( hContact , sFilePath );
@@ -648,7 +647,7 @@ tstring GetFilePathFromUser( HANDLE hContact )
ReplaceDBPath( sFilePath );
// Previous file name check to see if it has changed !!
- tstring sPrevFileName = DBGetString( hContact , MODULE , "PrevFileName" , _T("") );
+ tstring sPrevFileName = _DBGetString( hContact , MODULE , "PrevFileName" , _T("") );
if( sNoDBPath != sPrevFileName )
{
if( ! sPrevFileName.empty() )
@@ -794,19 +793,19 @@ void ReplaceAllNoColon( tstring &sSrc , const _TCHAR * pszReplace , tstring &sNe
void ReplaceDefines( HANDLE hContact , tstring & sTarget )
{
- if( sTarget.find( _T("%nick%") ) != string.npos )
+ if( sTarget.find( _T("%nick%") ) != string::npos )
{
ReplaceAll( sTarget , _T("%nick%") , FileNickFromHandle( hContact ) );
}
- bool bUINUsed = sTarget.find( _T("%UIN%") ) != string.npos;
- bool bEMailUsed = sTarget.find( _T("%e-mail%") ) != string.npos;
- bool bProtoUsed = sTarget.find( _T("%protocol%") ) != string.npos;
- bool bIdentifierUsed = sTarget.find( _T("%identifier%") ) != string.npos;
+ bool bUINUsed = sTarget.find( _T("%UIN%") ) != string::npos;
+ bool bEMailUsed = sTarget.find( _T("%e-mail%") ) != string::npos;
+ bool bProtoUsed = sTarget.find( _T("%protocol%") ) != string::npos;
+ bool bIdentifierUsed = sTarget.find( _T("%identifier%") ) != string::npos;
if( bUINUsed || bEMailUsed || bProtoUsed || bIdentifierUsed )
{
- string sProto = DBGetStringA( hContact , "Protocol" , "p" , "" );
+ string sProto = _DBGetStringA( hContact , "Protocol" , "p" , "" );
if( bUINUsed || ( bIdentifierUsed && sProto == "ICQ" ) )
{
DWORD dwUIN = DBGetContactSettingDword(hContact, sProto.c_str(), "UIN", 0);
@@ -833,10 +832,10 @@ void ReplaceDefines( HANDLE hContact , tstring & sTarget )
if( bEMailUsed || ( bIdentifierUsed && sProto == "MSN"))
{
- tstring sEMail = DBGetString( hContact , sProto.c_str() , "e-mail" , _T("") );
+ tstring sEMail = _DBGetString( hContact , sProto.c_str() , "e-mail" , _T("") );
if( sEMail.empty() )
{
- sEMail = DBGetString( hContact , "MSN" , "e-mail" , _T("") );
+ sEMail = _DBGetString( hContact , "MSN" , "e-mail" , _T("") );
if( sEMail.empty() )
{
// We can't finde the E-mail address we will use the the nick
@@ -853,7 +852,7 @@ void ReplaceDefines( HANDLE hContact , tstring & sTarget )
}
if( bIdentifierUsed && sProto == "Jabber" )
{
- tstring sReplace = DBGetString( hContact , "Jabber" , "jid" , _T("") );
+ tstring sReplace = _DBGetString( hContact , "Jabber" , "jid" , _T("") );
if( sReplace.empty() )
{
sReplace = FileNickFromHandle( hContact );
@@ -863,7 +862,7 @@ void ReplaceDefines( HANDLE hContact , tstring & sTarget )
}
if( bProtoUsed )
{
- tstring tmp = DBGetString( hContact , "Protocol" , "p" , _T("") );
+ tstring tmp = _DBGetString( hContact , "Protocol" , "p" , _T("") );
ReplaceAllNoColon( sTarget , _T("%protocol%") , tmp );
}
if( bIdentifierUsed )
@@ -873,9 +872,9 @@ void ReplaceDefines( HANDLE hContact , tstring & sTarget )
}
}
- if( sTarget.find( _T("%group%") ) != string.npos )
+ if( sTarget.find( _T("%group%") ) != string::npos )
{
- tstring sGroup = DBGetString( hContact , "CList" , "Group" , _T("") );
+ tstring sGroup = _DBGetString( hContact , "CList" , "Group" , _T("") );
ReplaceAllNoColon( sTarget , _T("%group%") , sGroup );
}
@@ -903,9 +902,9 @@ void ReplaceDefines( HANDLE hContact , tstring & sTarget )
void ReplaceTimeVariables( tstring &sRet )
{
- if( sRet.find( _T("%year%") ) != string.npos ||
- sRet.find( _T("%month%") ) != string.npos ||
- sRet.find( _T("%day%") ) != string.npos )
+ if( sRet.find( _T("%year%") ) != string::npos ||
+ sRet.find( _T("%month%") ) != string::npos ||
+ sRet.find( _T("%day%") ) != string::npos )
{
SYSTEMTIME stTime;
GetLocalTime( &stTime );
@@ -1147,12 +1146,12 @@ void ExportDBEventInfo(HANDLE hContact, DBEVENTINFO &dbei )
// in the options dialog.
ReplaceAll( output , _T("%User%") , sRemoteUser );
- string sProto = DBGetStringA( hContact , "Protocol" , "p" , "" );
- ReplaceAll( output , _T("%Proto%") , DBGetString( hContact , "Protocol" , "p" , _T("") ) );
+ string sProto = _DBGetStringA( hContact , "Protocol" , "p" , "" );
+ ReplaceAll( output , _T("%Proto%") , _DBGetString( hContact , "Protocol" , "p" , _T("") ) );
for( int nCur = 0 ; nCur < 9 ; nCur++ )
{
- ReplaceAll( output , pszReplaceList[nCur] , DBGetString( hContact , sProto.c_str() , pszReplaceListA[nCur] , _T("") ) );
+ ReplaceAll( output , pszReplaceList[nCur] , _DBGetString( hContact , sProto.c_str() , pszReplaceListA[nCur] , _T("") ) );
}
_sntprintf( szTemp , sizeof( szTemp ) , _T("%d") , DBGetContactSettingDword(hContact, sProto.c_str(), "UIN", 0) );
diff --git a/utils.h b/src/utils.h
index 7b4523f..f2ca584 100755
--- a/utils.h
+++ b/src/utils.h
@@ -57,10 +57,10 @@ using namespace std;
#ifdef _UNICODE
#define tstring wstring
- #define DBGetString DBGetStringW
+ #define _DBGetString _DBGetStringW
#else
#define tstring string
- #define DBGetString DBGetStringA
+ #define _DBGetString _DBGetStringA
#endif
enum ENDialogAction
@@ -99,8 +99,8 @@ int nContactDeleted(WPARAM wparam,LPARAM lparam);
const _TCHAR *NickFromHandle(HANDLE hContact);
-tstring __inline DBGetStringW(HANDLE hContact,const char *szModule,const char *szSetting , const _TCHAR * pszError );
-string __inline DBGetStringA(HANDLE hContact,const char *szModule,const char *szSetting , const char * pszError );
+tstring __inline _DBGetStringW(HANDLE hContact,const char *szModule,const char *szSetting , const _TCHAR * pszError );
+string __inline _DBGetStringA(HANDLE hContact,const char *szModule,const char *szSetting , const char * pszError );
void ReplaceAll( tstring &sSrc , const _TCHAR * pszReplace , const tstring &sNew);
void ReplaceAll( tstring &sSrc , const _TCHAR * pszReplace , const _TCHAR * pszNew);