Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:dotnet:develop_a_noah_fitting_module_using_.net [2011/07/06 15:59]
smayr [Noah Fitting Module Logo (assembly Noah3.FitMod.Logo.dll)]
swdev:dotnet:develop_a_noah_fitting_module_using_.net [2017/01/20 11:56] (current)
smayr [Noah Fitting Module Logo (assembly Noah3.FitMod.Logo.dll)]
Line 248: Line 248:
 HKEY_CLASSES_ROOT\CLSID\{241255F6-0B94-4EBE-993A-030A8A4968FE}\InprocHandler32 = ole32.dll HKEY_CLASSES_ROOT\CLSID\{241255F6-0B94-4EBE-993A-030A8A4968FE}\InprocHandler32 = ole32.dll
 </code> </code>
 +
 +
 === GUI Wrapper (assembly Noah3.FitMod.GUI.dll) === === GUI Wrapper (assembly Noah3.FitMod.GUI.dll) ===
   * Create a C# WinForms project.   * Create a C# WinForms project.
Line 300: Line 302:
 </code> </code>
   * Structure code to deal with resources correctly when WPF is hosted in WinForms control (see [[http://drwpf.com/blog/2007/10/05/managing-application-resources-when-wpf-is-hosted/|Dr WPF: Managing Application Resources When WPF is Hosted]]).   * Structure code to deal with resources correctly when WPF is hosted in WinForms control (see [[http://drwpf.com/blog/2007/10/05/managing-application-resources-when-wpf-is-hosted/|Dr WPF: Managing Application Resources When WPF is Hosted]]).
 +
 +
 === GUI === === GUI ===
   * Create a C# WPF project.   * Create a C# WPF project.
Line 386: Line 390:
 === Noah Fitting Module Logo (assembly Noah3.FitMod.Logo.dll) === === Noah Fitting Module Logo (assembly Noah3.FitMod.Logo.dll) ===
   * Create Class (assembly) project.   * Create Class (assembly) project.
-  * Add subfolder ''images''+  * Create ''LogoRes.rc'' resource file (for more details: [[swdev:howto:develop_a_noah_fitting_module#fitting_module_icon_logodll|Logo Format]]).  NOTE: Do not ''#define'' the ''LOGO001'' and ''LOGO002'' resources.  Create file as follows: <code>
-  * Add resource files: +
-    * ''LogoRes.rc'' (Build Action = None, Copy to Output = Do not copy) +
-    * ''LogoRes.res'' (Build Action = None, Copy to Output = Do not copy) +
-    * ''images/logo16.bmp'' (Build Action = Resource, Copy to Output = Do not copy), which contains logo in 16 colors. +
-    * ''images/logo256.bmp'' (Build Action = Resource, Copy to Output = Do not copy), which contains logo in 256 colors. +
-  * ''LogoRes.rc'' file format: <code>+
 LOGO001      BITMAP "images/logo16.bmp" LOGO001      BITMAP "images/logo16.bmp"
 LOGO002      BITMAP "images/logo256.bmp" LOGO002      BITMAP "images/logo256.bmp"
Line 400: Line 398:
 } }
 </code> </code>
-  * Compile resource file ''LogoRes.rc'' into ''LogoRes.res'' Using the Visual Studio Command Prompt (Start > All Applications > Microsoft Visual Studio 2010 > Visual Studio Tools > Visual Studio Command Prompt (2010)): <code dos>C:\> rc C:\MyApp\LogoRes.rc </code>+  * Compile resource file ''LogoRes.rc'' into ''LogoRes.res'' Using the Visual Studio Command Prompt (VS2015: Start > All Applications > Visual Studio 2015 > Visual Studio Tools > Developer Command Prompt for VS2015): <code dos>C:\> rc C:\MyApp\LogoRes.rc </code> 
 +  * Alternatively, use GoRC Resource Compiler ([[http://www.godevtool.com]]) from any command prompt: <code dos>C:\> GoRC.exe C:\MyApp\LogoRes.rc</code>
   * Add res file to assembly.  Project > Properties > Application (tab) > Resource File, and select ''LogoRes.res''.   * Add res file to assembly.  Project > Properties > Application (tab) > Resource File, and select ''LogoRes.res''.
   * Build assembly.   * Build assembly.