An example of use
Below is the part of the WM_PAINT (OnDraw)
event handler:
#include "ean13.h"
void OnDraw(HDC dc)
{
EAN13::EAN13 Ean13;
int xres=::GetDeviceCaps(dc,LOGPIXELSX);
int yres=::GetDeviceCaps(dc,LOGPIXELSY);
Ean13.SetXResolution(xres);
Ean13.SetYResolution(yres);
Ean13.SetNumber(_T("501234568790"),_T("21826"));
Ean13.Draw(dc,100,200);
}