Article ID: 150447 - Last Review: August 18, 2005 - Revision: 4.3 FILE: How to Create a BIFF5 File
This article was previously published under Q150447 On This PageSUMMARY
BIFF is a file in the Microsoft Download Center that demonstrates how to
create a file using the Microsoft Excel Binary Interchange File Format
(BIFF) version 5.
MORE INFORMATIONThe following file is available for download from the Microsoft Download Center: Biff.exe
(http://download.microsoft.com/download/excel50win/sample/1/w95/en-us/biff.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
The BIFF sample is a console application that prompts the user to input a path and file name. Once the user inputs this information, it writes a BIFF5 file to the name and location specified. The BIFF5 file that is created is simply an empty spreadsheet. It contains the minimum records necessary for this task. NOTE: You must provide a unique name for the file. BIFF does not overwrite an existing file. Also, the directory location specified must exist in advance: BIFF will not create it. BIFF5 files are Compound Files, which means that the OLE Structured Storage interfaces must be used to write the file. The necessary steps to do this are explicitly documented in the main() function comments in BIFF.CPP. Additionally, because we are using OLE, the following issues exist:
Files
BIFF.CPP / .H Contains the console application entry point and
support functions, as well as the functions to
create the BIFF file.
HEX2BYTE.CPP / .H Contains the functions to convert a hexadecimal
formatted string to binary data.
BIFF.MAK Makefile for the project.
To BuildThis project must be built as a 32-bit application. You can build for either Unicode or ANSI. You can use NMAKE with the attached makefile to build this project.APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






















Back to the top