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