FILE: B2C.exe Converts Visual Basic Automation Code to Visual C++ID: Q216388
|
B2CSE.exe is a self-extracting executable file containing a stand-alone utility file (B2C.exe) that converts Visual Basic Automation code into Visual C++ code. You can paste the code generated from B2C.exe directly into your Visual C++ application to get the same functionality. Additionally, B2C.exe comes with some Visual Basic Automation examples you can use.
The following file is available for download from the Microsoft
Software Library:
B2CSE.exeRelease Date: Mar-10-1999
Q119591 How to Obtain Microsoft Support Files from Online ServicesYou have royalty-free right to use, modify, reproduce, and distribute any code generated by the B2C Converter, or any modified version of the B2C Converter, in any way you find useful provided that you agree that Microsoft has no warranty, obligations, or liability for the generated code.
FileName Size
-------------------------
B2C.exe 220KB
Readme.txt 4KB
B2C Limitations MyObj.MyMethod z:=5
MyObj.MyMethod a,b,c,,,,g
MyObj.MyMethod (a+b)/2, a*b, a+1
' Start Excel.
dim app as object
set app = createobject("Excel.Application")
' Make it visible.
app.visible = true
' Add a new workbook.
app.workbooks.add
' Declare an array.
dim arr(1 to 15, 1 to 15) as long
' Fill array with values.
dim i as long
dim j as long
for i = 1 to 15
for j = 1 to 15
arr(i,j) = i
next j
doevents
next i
' Set all values in one shot!
app.activesheet.range("A1:O15").value = arr
msgbox "All done."
The user interface for B2C.exe is very simple. It includes three edit boxes, three buttons, and a combo-box where you can select some examples. You type in or paste your Visual Basic code in the edit box on the left, and when you click Convert & Copy, B2C.exe populates the other two edit boxes with your generated Visual C++ code, as well as copying it to the clipboard for quick use.© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Joe Crump, Microsoft Corporation
Additional query words: converter conversion javafy coledispatchdriver import _com_ptr_t idispatch automate invoke getidsofnames
Keywords : kbfile kbAutomation kbGrpDSO
Version :
Platform :
Issue type : kbinfo
Last Reviewed: June 1, 1999