Posted: Tue Jun 20, 2006 2:57 pm Post subject: Problem in defining Userdefined Exception Catalog.
Novice
Joined: 04 May 2006 Posts: 19
Hi All,
I am using MB5.0 and i am trying refer a message catlog for userdefined exceptions. The i followed the bellow steps given in the IBM site
------------------------------------------------------------------
1.Create a message compiler input (.mc) file with the source for your event messages. Refer to the Microsoft website, http://msdn.microsoft.com, and search on .mc file for details on the format of this input file.
Compile this message file, to create a resource compiler input file, by issuing the command:
mc -v -w -s -h c:\mymessages -r c:\mymessages mymsg.mc
Where c:\mymessages is the path and directory for the output files and mymsg.mc is the name of the input file.
The message compiler produces an output header (.h) file which contains symbolic #defines that map to each message number coded in the input.mc file. This header file must be included when compiling a user-defined extension source file that uses the CciLog utility function to write an event message you have defined. The messageNumber argument to CciLog must use the appropriate value hash-defined in the output header file.
Compile the output file (.rc) from the message compiler to create a resource (.res) file by issuing the command:
RC /v <filename>.rc
Create a resource DLL using the .res file by issuing the command:
LINK /DLL /NOENTRY <filename>.res
To install the event source into the Windows Event Log Service:
Start the Windows Registry Editor by issuing the command:
regedit
Create a new registry subkey for your user-defined extension under the existing structure defined in:
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
EventLog
Application
Right-click on Application and select New->Key. The new key is created immediately under the Application key (not under the WebSphere Message Broker key). You must give the key the name that you specify on the messageSource parameter of the CciLog invocation.
You must create the following values for this entry:
The EventMessageFile String value must contain the fully qualified path for the .dll you have created to contain your messages. This is the message catalog used by CciLog.
The TypesSupported DWORD value must contain the value "7".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum