| 发表于:2007-08-27 14:21:331楼 得分:0 |
1. create a new delphi activex control. 2. add one method that takes a byte parameter. for example: procedure passbyte(d:pchar); begin end; 3. build the control. 4. create a new mfc dialog based application. 5. add the visual basic control that was generated in step 3 using component gallery. do this by going to the project menu, select add components and controls, and then selecting registered activex controls. 6. after you select the delphi control and click ok, component gallery presents the confirm classes dialog. click ok on the confirm classes dialog box to generate the wrapper code. | | |
|