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