Class Win32::MC
In: lib/win32/mc.rb
Parent: Object

Methods

Classes and Modules

Class Win32::MC::Error

Constants

VERSION = '0.1.3'

Attributes

dll_file  [RW] 
mc_file  [RW] 
res_file  [RW] 

Public Class methods

Accepts three file names as arguments and returns an MC object. The mc_file is the name of the .mc file to be used to ultimately generate the .dll file.

If res_file or dll_file are not specified, then the basename of mc_file is used to generate their names, with .res and .dll extensions, respectively.

Public Instance methods

Delete .h, .rc and .res files created from the corresponding .mc file (but not the .dll file). This also deletes all MSG*.bin files in the current directory.

Creates the .dll file from the .res file generated by the MC#create_res_file method. Raises an MC::Error if the .res file is not found.

Uses the message compiler (mc) program to generate the .h and .rc files based on the .mc (message category) file. This method must be called before MC#create_res_file or MC#create_dll_file.

Creates the .res (resource) file from the .rc file generated by the MC#create_header method. Raises an MC::Error if the .rc file is not found.

[Validate]