#include "BIDIB.h"
HBITMAP CALLBACK LoadASCIIFile( LPTSTR lpszFileName,
BOOL bAnsi)
Description
Reads an ASCII file into a device dependent bitmap. If bAnsi is set to FALSE, the characters will be converted to ANSI. format.
Parameters
|
LPTSTR |
lpszFileName |
File to read. |
|
BOOL |
bAnsi |
Convert characters to ANSI format. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
A HBITMAP handle if successful; NULL on failure.
Programming notes
The file must not be longer than 7FFFEh bytes in length. The number of lines (text separated with Carriage Return) can not exceed 65535. This is the limitation of Microsoft Windows bitmap height. Also, longest line without CR. can not exceed 65535 characters.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
#include "BiDIB.h"
switch(nFormatID) {
...
case ASCII_FORMAT:
hCurrentBitmap = LoadASCIIFile(szFileName, TRUE);