Click here to Skip to main content
Licence 
First Posted 30 May 2003
Views 42,414
Bookmarked 25 times

MsgMapper

By | 30 May 2003 | Article
A tool that might make your WTL coding work a little easier

General information

This is my first article here.

After several months' getting along with the people here, I noticed some of them find it inconvenient to write those MSG_XXXXX extended message map macros. So I hurried 3 days in front of my computer and wrote this program, which is used to generate these message maps and corresponding functions. Your can copy them to the clipboard and paste them into your code. I hope it will reduce some trouble for you before the official class wizard support for WTL.

Usage

There are four buttons named Copy1 to Copy4. Before starting, your should fill in the class edit box with your class name if you are using CPP files. Then select a macro name from the combo box, code generated will appear in the edit box as below. The functions of the four buttons are listed below:

  • Copy1 : copies the macros like MSG_XXXXX(OnXXXXX).
  • Copy1 : copies the definition used in header files when using CPP files.
  • Copy3 : copies the implementation used in CPP files.
  • Copy4 : copies the code for header files when not using CPP files.

Something I have to say

When you're going to use it, please make sure the crack.dat is in the current path. You can edit it to add new maps or fix bugs. However, as this is the first version of the app, you should keep a strict grammar as following:

OnDefaultFunctionName      //Must begin with "On"
MSG_XXXXXXX(func)          //Must be defined in crack.h
(functype)func( some variables ) 
   //by now it can only process HRESULT and void,
   //if it's a void one you can also use func(....)
.  //You can use any string that doesn't begin with "On" as a 

separator
next ones...

Any last word?

Yes, of course. Please inform me about bugs via E-mail. And, please be aware of bugs and SARS. Take care of yourself!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

alexatnt



China China

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionContact email? PinmemberAaron Hudon13:20 21 Mar '04  
AnswerMessage Removed PinmemberShengqian Ji18:31 12 Nov '04  
JokeRe: Contact email? Pinmembercode_discuss20:31 13 Apr '07  
GeneralThank you Pinmemberajh16:46 29 Sep '03  
GeneralRe: Thank you PinmemberM.Khadem0:36 16 Nov '03  
GeneralNice PinmemberJames Brown5:27 31 May '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 31 May 2003
Article Copyright 2003 by alexatnt
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid