The TLB is already in MsgPlusLive.dll as a resource (resource type TYPELIB\1). You just need to extract it. You can extract type libraries resources (TLB files) in various ways.
You can use
rundll32.exe for example to extract it (although it is not straitforward; also, instead of the keyword '
TypeLib' you could use '
GenerateTypeLib')
Or from Microsoft: The
OLE/COM Object Viewer can extract the IDL (decompiled Type Library).
(File > View TypeLib > select MsgPlusLive.dll)
More tools from Microsoft:
http://msdn.microsoft.com/en-us/library/ms680581(VS.85).aspx
Or you can use tools like
Resource Hacker or (even better, but not free)
PE Explorer to extract the compiled type library.
Then there are Type Library viewers like
TypeLib Viewer from iTripoli.
Note that
RegAsm.exe isn't going to work here.
-------------------------------------------------
I recommend using Resource Hacker (free) or PE Explorer (can be used for 30 days for free). Using PE explorer is the easiest way to extract a TLB imho.
In Resource Hacker:
- Open MsgPlusLive.dll
- Select the TYPELIB\1\0 resource
- From the Action menu, choose 'Save Resource as a binary file' or 'Save Resource as a *.res file'
- Rename the saved file to "MPLiveScriptingLib.tlb"
In PE Explorer:
- Open MsgPlusLive.dll
- Go to the resource viewer
- Right click on the TYPELIB\1 resource
- Choose 'Save Resource as...' (or click CTRL+SHIFT+S)
- Enter the filename "MPLiveScriptingLib.tlb"