On Thu, 28 Jan 2010 00:53:57 +0100 Alexander Prinsier <aphe...@mailhaven.com> wrote:
> Hello, > Hallo all, > I added the Outlouk plugin into contrib/OutloukAddin. > > I dropped some stuff, that appeared to be output of the compile process > to me. I hope I didn't remove too much ;) > > If anyone could try it out, and check it out that would be great. > I just took the time to build the addin using the original sources. Have not checked if the commited stuff in GIT HEAD works. Looks like the addin was written with VS8 and I have over here a newer version of VS. Anyway... this is the result I get when building the debug version: ------------------------ ------ Build started: Project: Engine, Configuration: Debug Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:C:\WINDOWS\assembly\GAC\Office\11.0.0.0__71e9bce111e9429c\Office.dll /reference:C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll /reference:obj\Debug\Interop.MAPIPROPLib.dll /debug+ /debug:full /optimize- /out:obj\Debug\Engine.dll /resource:obj\Debug\Engine.GUI.AktionForm.resources /resource:obj\Debug\Engine.GUI.MainForm.resources /resource:obj\Debug\Engine.GUI.TrainingForm.resources /resource:obj\Debug\Engine.Properties.Resources.resources /resource:en-US.xml,Engine.en-US.xml /target:library GUI\AktionForm.cs GUI\AktionForm.Designer.cs GUI\MainForm.cs GUI\MainForm.Designer.cs GUI\TrainingForm.cs GUI\TrainingForm.Designer.cs Konfiguration.cs Language.cs Logger.cs Parser\KonfigurationParser.cs Parser\LanguageParser.cs Parser\MailParser.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Worker.cs c:\LOCAL\work\dspam\DSpamAddin\Engine\Parser\KonfigurationParser.cs(59,30): warning CS0168: The variable 'ex' is declared but never used c:\LOCAL\work\dspam\DSpamAddin\Engine\Worker.cs(411,31): warning CS0467: Ambiguity between method 'Microsoft.Office.Interop.Outlook._MailItem.Forward()' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Forward'. Using method group. c:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll: (Related file) c:\LOCAL\work\dspam\DSpamAddin\Engine\Worker.cs(414,17): warning CS0467: Ambiguity between method 'Microsoft.Office.Interop.Outlook._MailItem.Send()' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Send'. Using method group. c:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll: (Related file) c:\LOCAL\work\dspam\DSpamAddin\Engine\Logger.cs(38,34): warning CS0168: The variable 'ex' is declared but never used Compile complete -- 0 errors, 4 warnings Engine -> c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Debug\Engine.dll ------ Build started: Project: OutlookInterface, Configuration: Debug Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /warn:4 /define:DEBUG;TRACE /reference:c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Debug\Engine.dll /reference:"C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\Extensibility.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.Install.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll /reference:C:\WINDOWS\assembly\GAC\Office\11.0.0.0__71e9bce111e9429c\Office.dll /reference:C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll /debug+ /optimize- /out:obj\Debug\OutlookInterface.dll /target:library AssemblyInfo.cs Connect.cs c:\LOCAL\work\dspam\DSpamAddin\OutlookInterface\Connect.cs(49,30): warning CS0168: The variable 'ex' is declared but never used Compile complete -- 0 errors, 1 warnings OutlookInterface -> c:\LOCAL\work\dspam\DSpamAddin\OutlookInterface\bin\Debug\OutlookInterface.dll ------ Build started: Project: simpleConsole, Configuration: Debug Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Debug\Engine.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /optimize- /out:obj\Debug\simpleConsole.exe /target:exe Program.cs Properties\AssemblyInfo.cs Compile complete -- 0 errors, 0 warnings simpleConsole -> c:\LOCAL\work\dspam\DSpamAddin\simpleConsole\bin\Debug\simpleConsole.exe ------ Skipped Build: Project: OutlookInterfaceSetup, Configuration: Debug ------ Project not selected to build for this solution configuration ========== Build: 3 succeeded or up-to-date, 0 failed, 1 skipped ========== ------------------------ And this is the result when building a release version: ------------------------ ------ Build started: Project: Engine, Configuration: Release Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:C:\WINDOWS\assembly\GAC\Office\11.0.0.0__71e9bce111e9429c\Office.dll /reference:C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll /reference:obj\Release\Interop.MAPIPROPLib.dll /debug:pdbonly /optimize+ /out:obj\Release\Engine.dll /resource:obj\Release\Engine.GUI.AktionForm.resources /resource:obj\Release\Engine.GUI.MainForm.resources /resource:obj\Release\Engine.GUI.TrainingForm.resources /resource:obj\Release\Engine.Properties.Resources.resources /resource:en-US.xml,Engine.en-US.xml /target:library GUI\AktionForm.cs GUI\AktionForm.Designer.cs GUI\MainForm.cs GUI\MainForm.Designer.cs GUI\TrainingForm.cs GUI\TrainingForm.Designer.cs Konfiguration.cs Language.cs Logger.cs Parser\KonfigurationParser.cs Parser\LanguageParser.cs Parser\MailParser.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Worker.cs c:\LOCAL\work\dspam\DSpamAddin\Engine\Parser\KonfigurationParser.cs(59,30): warning CS0168: The variable 'ex' is declared but never used c:\LOCAL\work\dspam\DSpamAddin\Engine\Worker.cs(411,31): warning CS0467: Ambiguity between method 'Microsoft.Office.Interop.Outlook._MailItem.Forward()' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Forward'. Using method group. c:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll: (Related file) c:\LOCAL\work\dspam\DSpamAddin\Engine\Worker.cs(414,17): warning CS0467: Ambiguity between method 'Microsoft.Office.Interop.Outlook._MailItem.Send()' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Send'. Using method group. c:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll: (Related file) c:\LOCAL\work\dspam\DSpamAddin\Engine\Logger.cs(38,34): warning CS0168: The variable 'ex' is declared but never used Compile complete -- 0 errors, 4 warnings Engine -> c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Release\Engine.dll ------ Build started: Project: OutlookInterface, Configuration: Release Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /warn:4 /define:TRACE /reference:c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Release\Engine.dll /reference:"C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\Extensibility.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.Install.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll /reference:C:\WINDOWS\assembly\GAC\Office\11.0.0.0__71e9bce111e9429c\Office.dll /reference:C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll /debug- /optimize+ /out:obj\Release\OutlookInterface.dll /target:library AssemblyInfo.cs Connect.cs c:\LOCAL\work\dspam\DSpamAddin\OutlookInterface\Connect.cs(49,30): warning CS0168: The variable 'ex' is declared but never used Compile complete -- 0 errors, 1 warnings OutlookInterface -> c:\LOCAL\work\dspam\DSpamAddin\OutlookInterface\bin\Release\OutlookInterface.dll ------ Build started: Project: simpleConsole, Configuration: Release Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /reference:c:\LOCAL\work\dspam\DSpamAddin\Engine\bin\Release\Engine.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug:pdbonly /optimize+ /out:obj\Release\simpleConsole.exe /target:exe Program.cs Properties\AssemblyInfo.cs Compile complete -- 0 errors, 0 warnings simpleConsole -> c:\LOCAL\work\dspam\DSpamAddin\simpleConsole\bin\Release\simpleConsole.exe ------ Skipped Build: Project: OutlookInterfaceSetup, Configuration: Release ------ Project not selected to build for this solution configuration ========== Build: 3 succeeded or up-to-date, 0 failed, 1 skipped ========== ------------------------ So building the stuff works out of the box (beside a hand full of warnings). I had only to register that MAPIPROP library in order to be able to use it from within VS. That's all. The console application does not work since I have obviously not configured the plugin (I anyway don't use Outlook): ------------------------ Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. c:\LOCAL\work\dspam\DSpamAddin\simpleConsole\bin\Release>simpleConsole.exe Could not find file 'c:\dspam_config.xml'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at Engine.Parser.KonfigurationParser.Load() in c:\LOCAL\work\dspam\DSpamAddin\Engine\Parser\KonfigurationParser.cs:line 48 at simpleConsole.Program.Main(String[] args) in c:\LOCAL\work\dspam\DSpamAddin\simpleConsole\Program.cs:line 21 c:\LOCAL\work\dspam\DSpamAddin\simpleConsole\bin\Release> ------------------------ I have no clue what goes into that 'c:\dspam_config.xml' file. Probably I need to download the binary package from the authors web page and read the documentation found in the binary page. Has any one that addin running on his system and knows where to get documentation for the addin? Would be easier if I could just read some documentation instead of crawling over source code figuring out what needs to be inside that XML file. > Alexander > -- Kind Regards from Switzerland, Stevan Bajić ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel