LoadASCIIIntoBitmap

#include "BIDIB.h"

 

HBITMAP CALLBACK LoadASCIIIntoBitmap(HANDLE hMemASCII)

Description

Loads ASCII text in memory into a device dependent bitmap.

Parameters

HANDLE

hMemASCII

Memory handle of the previously loaded text file.

Return values

A valid bitmap handle on success, or NULL in case of any error.

Programming notes

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"

...

                GlobalUnlock(hMemASCII);

                hCurrentBitmap = LoadASCIIIntoBitmap(hMemASCII);

                if (!hCurrentBitmap) {

                                // failed

                                return NULL;       }