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:34]
smayr [Fitting Module Application (FitMod.exe)]
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 384: Line 388:
     * ''GetCurrentAction()'': Get current action information.     * ''GetCurrentAction()'': Get current action information.
  
 +=== Noah Fitting Module Logo (assembly Noah3.FitMod.Logo.dll) === 
 +  * Create Class (assembly) project. 
 +  * 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> 
 +LOGO001      BITMAP "images/logo16.bmp" 
 +LOGO002      BITMAP "images/logo256.bmp" 
 +STRINGTABLE 
 +
 +  1001, "Acme" 
 +
 +</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''
 +  * Build assembly.