I Would Like to Have a Memory Zone, Containing the Whole Pixel Map of the Barcode
Instead of drawing directly to a bitmap or printer DC you can build your own data structure (Pixel map) using TBarCode's Callback functionality. You can pass a custom pointer (your pixel map) to the Callback function and add the current pixel pattern to your structure (in a format as desired).
First set the pointer to your structure or memory block with this function:
BCSetCBData(t_BarCode* pBarCode, LPVOID customData)
This pointer is handled to you in the Callback function:
ERRCODE CALLBACK CustomDrawRow (VOID* customData, t_BarCode* barcode,
HDC drawDC, HDC targetDC, DOUBLE x, DOUBLE y, DOUBLE width, DOUBLE height);
Now you can store the pattern info (row by row) into your own structure or memory block. After drawing has been finished you have it all in your structure.