Programming Tools:prgtools

Creating a header file Foundation

A header file is created from a COM/ActiveX component by simply executing Tlb2Ch.exe. The tool takes one or more ProgIDs as parameter and by default the output is dumped to stdout:

Tlb2Ch.exe "Word.Application" > word.ch 

The output looks as follows:

01:   ////////////////////////////////////////////////////////////////////// 
02:   // 
03:   // Automatically generated Header file. 
04:   // 
05:   // Program ID:     word.application 
06:   // 
07:   // Creation date:  24.12.2004 
08:   // 
09:   // Creation Tool:  Tlb2Ch.exe 
10:   //                 Copyright (c) Alaska Software. All rights reserved. 
11:   // 
12:   ////////////////////////////////////////////////////////////////////// 
13: 
14:   #ifndef WORD_APPLICATION_HAEDER_DAEMON 
15:   #define WORD_APPLICATION_HAEDER_DAEMON 
16:   //WdMailSystem 
17:   #DEFINE wdNoMailSystem                                               0 
18:   #DEFINE wdMAPI                                                       1 
19: 
20:                ... 
21: 
22:   //WdTCSCConverterDirection 
23:   #DEFINE wdTCSCConverterDirectionSCTC                                 0 
25:   #DEFINE wdTCSCConverterDirectionTCSC                                 1 
26:   #DEFINE wdTCSCConverterDirectionAuto                                 2 
27:   #endif //WORD_APPLICATION_HAEDER_DAEMON 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.