I wonder if anyone can explain this:-
Create a form with a multi line text box and 2 buttons.
Put the following code under the buttons:-
Private Sub Cmd_Count_Click()
MsgBox Len(Text1.Text) & " characters.", vbOKOnly
End Sub
Private Sub Cmd_Fill_Click()
Dim X As Long
Dim sTemp As String
For...
Here is the code to calculate the CRC16-CCITT checksum
which uses the x^16,x^12,x^5,x^1 polynomial.
It uses a lookup table for speed.
DataByte() is the byte array which the checksum is calculated for.
In the example the array is loaded from a hex string in
Text1.Text.
The initial value is loaded...
Can anybody please tell me an API function which will return the current cursor style. I specifically want to know when the cursor changes to one of the resize identifiers:-
IDC_SIZENESW
IDC_SIZENS
IDC_SIZENWSE
IDC_SIZEWE
Many thanks.
I have a frame containing an array of graghical command buttons. Each button has a small bitmap image and 3 chrs of text. When working in the IDE the buttons randomly loose
their image. The image can be replaced using the buttons properties but at some future time, when the project is reloaded...
I searched for ages trying to find a way to set the PC
serial port to 10400 baud (the standard for IS0 9141
vehicle diagnostics) so I could monitor bus activity.
It's easy but you need inpout32.dll (get this from the web).
Basically what it's doing is setting the UART clock divisor manually. To...
I receive 4 seperate bytes from the comm port.
I need to create an IEEE754 single float out of them.
Presently I have 2 ways of doing this, non are very elegant.
1) Split all 4 bytes into a binary string (0s and 1s),
add them together, split them up using the IEEEE 754
rules, convert them...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.