Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|Forum|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    05.09.2010
Home»EAN8 barcode»SDK
Find out more how to use BestView...
A sample of use

An example of use

Below is the part of the WM_PAINT (OnDraw) event handler:

		
	#include "ean8.h"
	
	void OnDraw(HDC dc)
	    {
	    // =========================================================== 
	    // =              Start barcode drawing                      = 
	    // =========================================================== 
	    // An instance of the class 
	    EAN8::EAN8 Ean8;
	    // The horizontal resolution of the output device
	    int xres=::GetDeviceCaps(dc,LOGPIXELSX); 
	    // The vertical resolution of the output device
	    int yres=::GetDeviceCaps(dc,LOGPIXELSY);
	
	    // The initialization of the instance of the class
	    Ean8.SetXResolution(xres);  
	    Ean8.SetYResolution(yres);
	    
	    // Our barcode will contain the number 54490109
	     
	    Ean8.SetNumber(_T("54490109"));
	    
	    // Now we are ready to draw the barcode
	    // Draw the barcode!
	    Ean8.Draw(dc,100,200); 
	    // That is all! 
	    // =========================================================== 
	    // =                End barcode drawing                      = 
	    // =========================================================== 
	    }
		
Valid HTML 4.01 Transitional© PVL team, 2004-2010, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.