BCOUNT DLL
BCOUNT.DLL outputs the counter image. This counter is a change of
WWW Homepage Access Counter of the Mr. Muhammad A Muquit making to DLL of a thread-safe .
The Counter method of BASP21 DLL uses this API. It is possible to use from VC++ and Visual Basic.
Last Update August 22,1999
Binary Down Load!
Source Down Load!VC++ 6.0 Build format(Please defrost the file with the directory in the lha x command. )
Feature
- The setup is easy
The image file is built into this DLL by eight kinds (dd=a - h) and the resources
- Thread-Safe
Can be a call with the MultiThreading according to the same process
- Value of counter
The value of the counter is passed by the parameter
- Counter option
The counter option is the same as Count Relesae 2.3.
Function used from C++
- int Counter(LPCSTR p,long value,BYTE *vbuf);
This returns the counter image by the buffer
Use example :
extern "C"
int Counter(LPCSTR p,long value,BYTE *vbuf);
BYTE data[9999];
char szPara[] = "dd=f,ft=18,frgb=255;255;255";
int len = Counter((LPCSTR)szPara,123,data);
// len = Length of image
// data = image data
Function used from Visual Basic
- CounterV
The counter image is returned by byte array
Private Declare Function CounterV Lib "bcount" _
(szp As String, ctr As Long) As Variant
Use example :
Dim para As String, v As Variant
para = "dd=f,ft=18,frgb=255;255;255"
ctr = ctr + 1
v = CounterV(para, ctr)
- CounterFile
The counter image is written in the file
Private Declare Function CounterFile Lib "bcount" _
(szp As String, ctr As Long) As String
Use example :
The following example displays the counter which does the count improvement in the form.
Private Sub Timer1_Timer()
Dim para As String, infile As String
para = "dd=f,ft=18,frgb=255;255;255"
Static ctr As Long
ctr = ctr + 1
infile = CounterFile(para, ctr) ' The file is made for a temporary directory.
Image1.Picture = LoadPicture(infile)
Kill infile
End Sub
Counter Option
To customize the display image of the counter, the counter option is specified.
These parameters are combined and used when actually using.
The delimitation of the parameter uses the comma.
Please do not include blanking before and behind the parameter and between.
The main option is introduced here.
character style
Use "dd=x" . The English small letter is set from a to h in x.
If nothing is specified, dd=a is selected.
Parameter | Image |
---|
dd=a |  |
dd=b |  |
dd=c |  |
dd=d |  |
dd=e |  |
dd=f |  |
dd=g |  |
dd=h |  |
Thickness of frame
Use "ft=". The unit is a pixel value. "0" can be set by minimum value, and, in this case, the frame is not displayed. If nothing is specified, it is six.
Parameter | Image |
---|
ft=0 |  |
ft=18 |  |
Number of display digits
Use "md=". between from 5 to 10. If nothing is specified, it is six.
Parameter | Image |
---|
dd=f,ft=18,md=10 |  |
Left Padding with 0s
Use "pad=0|1" . Padding is done by 0.
Parameter | Image |
---|
dd=g,ft=8,pad=0 |  |
Display comma after every 3rd digits
Use "comma=1". It is possible to use only with dd=a and dd=b.
Parameter | Image |
---|
dd=a,comma=1 |  |
dd=b,comma=1 |  |
Change a color image
Use "srgb=rrggbb" and "prgb=rrggbb" and "chcolor=y".
Parameter | Image |
---|
srgb=0;255;0,prgb=255;0;0,chcolor=y |  |
srgb=0;255;0,prgb=255;255;255,chcolor=y |  |
Frame Color
Use "frgb=rrggbb".
Parameter | Image |
---|
frgb=0;255;255,ft=14,dd=f |  |
frgb=255;0;255,ft=14,dd=f |  |
Transparency On/Off
use "tr=t".
Parameter | Image |
---|
tr=t,ft=8,dd=h |  |
Rotate X degree
Use "degrees=n". n specifies either of 90,180,270,360 in the angle.
Parameter | Image |
---|
degrees=90 |  |
Date
Use "display=date". It is possible to use only with dd=a and dd=b.
Parameter | Image |
---|
display=date,dd=b |  |
Clock
Use "display=clock". It is possible to use only with dd=a and dd=b.
Parameter | Image |
---|
display=clock,dd=a |  |
WWW Homepage Access Counter Copyright
Copyright 1995-1999 by Muhammad A Muquit. Permission to use, copy, modify and distribute this program is hereby granted without fee, provided that this copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. If the source code of the program is modified or enhanced, the source code must be made public and it must be clearly mentioned in the documentation what was modified.
THIS PROGRAM IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR Muhammad A. Muquit BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Important Note of BABAQ Free Soft
- You must use this program at own responsibility, and we won't take any responsibility
for any incident caused by this program.
- You may use this program absolutely free, even to re-distribute with the application you
developed.
- This program never guarantee the accomplished fulfillment.
- This program will operate on Intel x86 based Windows NT 4.0 and Windows 95/98.
Home
Copyright 1999 Tatsuo Baba All rights reserved.