Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: SJA
  • Content: Threads
  • Order by date
  1. SJA

    Text box length wrong if text set at design time

    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...
  2. SJA

    How to calculate fast CRC16-CCITT checksum in VB

    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...
  3. SJA

    Get the cursor style

    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.
  4. SJA

    Graphical buttons loose bitmap image

    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...
  5. SJA

    How to set your PC UART to a non standard baud rate

    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...
  6. SJA

    Conversion of 4 bytes to single

    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...

Part and Inventory Search

Back
Top