Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
swdev:dotnet:develop_a_noah_fitting_module_using_.net [2017/01/13 10:15] smayr |
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)] |
=== 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. |
* Create ''LogoRes.rc'' resource file (for more details: [[swdev:howto:develop_a_noah_fitting_module#fitting_module_icon_logodll|Logo Format]]): <code> | * 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" | LOGO001 BITMAP "images/logo16.bmp" |
LOGO002 BITMAP "images/logo256.bmp" | LOGO002 BITMAP "images/logo256.bmp" |
} | } |
</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. |