瀏覽代碼

changes to add-ins, changed add in to be unicode
[SAB]


git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@437 595ec19a-5cb4-439b-94a8-42fb3063c22c

sabrogden 17 年之前
父節點
當前提交
588d3768cc
共有 11 個文件被更改,包括 12 次插入14 次删除
  1. 5 7
      Addins/OutlookExpress/Exports.cpp
  2. 2 2
      Addins/OutlookExpress/OutlookExpress.vcproj
  3. 4 4
      CP_Main.rc
  4. 二進制
      EncryptDecrypt.lib
  5. 1 1
      Options.cpp
  6. 二進制
      Release/focus.dll
  7. 二進制
      Release/focus.lib
  8. 二進制
      UEncryptDecrypt.lib
  9. 二進制
      UEncryptDecryptD.lib
  10. 二進制
      focusdll/Release/focus.dll
  11. 二進制
      focusdll/Release/focus.lib

+ 5 - 7
Addins/OutlookExpress/Exports.cpp

@@ -3,7 +3,7 @@
 #include "TextConvert.h"
 
 bool WriteDataToFile(CString csPath, LPVOID data, ULONG size);
-CString g_csDIBImagePath = "";
+CString g_csDIBImagePath = _T("");
 int g_nDIBImageName = 1;
 
 bool DittoAddin(const CDittoInfo &DittoInfo, CDittoAddinInfo &info)
@@ -25,7 +25,7 @@ bool DittoAddin(const CDittoInfo &DittoInfo, CDittoAddinInfo &info)
 bool SupportedFunctions(const CDittoInfo &DittoInfo, FunctionType type, std::vector<CFunction> &Functions)
 {
 	CFunction func;
-	func.m_csFunction = "ConvertPathToHtmlImageTag";
+	func.m_csFunction = _T("ConvertPathToHtmlImageTag");
 	func.m_csDisplayName = _T("Past As html image link");
 	func.m_csDetailDescription = _T("Converts a CF_DIB or CF_HDROP to a html format for pasting into outlook express");
 
@@ -43,10 +43,8 @@ bool SupportedFunctions(const CDittoInfo &DittoInfo, FunctionType type, std::vec
 
 void CreateLocalPath(bool bCreateDir)
 {
-	TCHAR localPath[MAX_PATH];
-	GetTempPath(sizeof(localPath), localPath);
-	g_csDIBImagePath = localPath;
-	g_csDIBImagePath += _T("ditto");
+	g_csDIBImagePath = _wgetenv(_T("TMP"));;
+	g_csDIBImagePath += _T("\\ditto");
 	if(bCreateDir)
 	{
 		CreateDirectory(g_csDIBImagePath, NULL);
@@ -64,7 +62,7 @@ bool ConvertPathToHtmlImageTag(const CDittoInfo &DittoInfo, IClip *pClip)
 			CreateLocalPath(true);
 		}
 
-		CString csIMG = "";
+		CString csIMG = _T("");
 
 		IClipFormat *pCF_DIB = pFormats->FindFormatEx(CF_DIB);
 		if(pCF_DIB != NULL)

+ 2 - 2
Addins/OutlookExpress/OutlookExpress.vcproj

@@ -20,7 +20,7 @@
 			<Tool
 				Name="VCCLCompilerTool"
 				Optimization="0"
-				PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
+				PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;UNICODE"
 				MinimalRebuild="TRUE"
 				BasicRuntimeChecks="3"
 				RuntimeLibrary="3"
@@ -75,7 +75,7 @@
 			CharacterSet="2">
 			<Tool
 				Name="VCCLCompilerTool"
-				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
+				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;UNICODE"
 				RuntimeLibrary="2"
 				TreatWChar_tAsBuiltInType="TRUE"
 				UsePrecompiledHeader="3"

+ 4 - 4
CP_Main.rc

@@ -919,8 +919,8 @@ END
 //
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION 3,15,4,0
- PRODUCTVERSION 3,15,4,0
+ FILEVERSION 3,16,0,0
+ PRODUCTVERSION 3,16,0,0
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
@@ -936,12 +936,12 @@ BEGIN
         BLOCK "040904b0"
         BEGIN
             VALUE "FileDescription", "Ditto"
-            VALUE "FileVersion", "3, 15, 4, 0"
+            VALUE "FileVersion", "3, 16, 0, 0"
             VALUE "InternalName", "CP_Main"
             VALUE "LegalCopyright", "Copyright (C) 2003"
             VALUE "OriginalFilename", "Ditto"
             VALUE "ProductName", "Ditto"
-            VALUE "ProductVersion", "3, 15, 4, 0"
+            VALUE "ProductVersion", "3, 16, 0, 0"
         END
     END
     BLOCK "VarFileInfo"

二進制
EncryptDecrypt.lib


+ 1 - 1
Options.cpp

@@ -1704,7 +1704,7 @@ CString CGetSetOptions::GetPath(long lPathID)
 
 		csDir += "Addins\\";
 
-		csDir = _T("C:\\Documents and Settings\\Brogdens\\Desktop\\ditto\\Addins\\OutlookExpress\\Debug\\");
+		//csDir = _T("C:\\Documents and Settings\\Brogdens\\Desktop\\ditto\\Addins\\OutlookExpress\\Debug\\");
 
 		break;
 	}

二進制
Release/focus.dll


二進制
Release/focus.lib


二進制
UEncryptDecrypt.lib


二進制
UEncryptDecryptD.lib


二進制
focusdll/Release/focus.dll


二進制
focusdll/Release/focus.lib