Search Results - VBForums

Search:

Type: Posts; User: Jonney

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds; generated 34 minute(s) ago.

  1. Replies
    4
    Views
    209

    Re: VB's &HFFFF vs C#'s 0xFFFF

    Thanks.
    20+ years old VB6 still has secret I never knew.
  2. Replies
    4
    Views
    209

    [RESOLVED] VB's &HFFFF vs C#'s 0xFFFF

    In C#,

    int latch = 327710;
    int Result = latch & 0xFFFF;

    The computation gives 30.

    But why in VB6:

    Dim latch as Long
  3. Replies
    14
    Views
    314

    Re: VB6 bigger number (BigInteger)

    I am on final decision using string type of BigInteger instead of Double/Currency data type due to Maximum 45 digits computing on Numeric mode of pdf417.
  4. Replies
    14
    Views
    314

    Re: VB6 bigger number (BigInteger)

    I hit the wall by using LeftShift function which limits for Long type.

    Your code is OK.

    Thank you,Sir.
  5. Replies
    14
    Views
    314

    Re: VB6 bigger number (BigInteger)

    After trying PSC CodeID=62738, Look like BigInteger works:




    Dim i As Long
    Dim t As String

    Dim CodeWords(4) As String
    Dim bytes(5) As Byte
  6. Replies
    14
    Views
    314

    Re: VB6 bigger number (BigInteger)

    Private Sub Form_Load()

    Dim i As Long
    Dim t As Long

    Dim CodeWords(4) As Long
    Dim bytes(5) As Byte


    bytes(0) = 1
  7. Replies
    14
    Views
    314

    [RESOLVED] VB6 bigger number (BigInteger)

    On pdf417 specification, The binary compaction use an algorithm to compact 6 bytes into 5 bytes:

    for example:
    the 6 bytes: &H1, &H2, &H3, &H4, &H5, &H6
    algorithm : 1 * 256^5 + 2*256^4 +...
  8. Replies
    16
    Views
    1,682

    Re: vb6 MultiThreading ?

    stable Multi-threading in VB6? It is impossible for most cases. Don't waste time,my friend.
  9. Re: VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

    Your eyes are so sharp.

    Thank you,sir.
  10. Re: VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

    In my computer with lcid=2052,strconv and WideCharToMultiByte returns different result:




    Private Function ToShiftJIS(ByVal Wide As String) As Byte()
    Dim lngResult As Long
    Dim...
  11. Replies
    8
    Views
    281

    Re: UDT array in private Class

    I will go for option 1. It is easy.

    Thank you,sir.
  12. [RESOLVED] VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

    C# code:

    protected byte[] EncodeContent(string content)
    {
    byte[] contentBytes;
    try
    {
    contentBytes =...
  13. Replies
    8
    Views
    281

    Re: UDT array in private Class

    I don't have knowledge on COM, but I agree with you as Dilettante also said. My concern is that if project has so many UDTs, I have to add the same amount of Classes, the project look mess. And, UDTs...
  14. Replies
    8
    Views
    281

    Re: UDT array in private Class

    yes. You are right.





    OK,sir.
  15. Replies
    7
    Views
    222

    Re: Disable wireless connection

    put below text into disablewireless.bat and Run As Administrator.

    netsh interface set interface "Wireless Network Connection 3" Disable
  16. Replies
    8
    Views
    281

    [RESOLVED] UDT array in private Class

    Actually, the error is very famous.



    This error occurs when I access UDT array from another private class in standard exe project.



    'in Class cECISet
  17. Re: Algorithm : Zooming+ two dimensional array

    I comes up with those codes:



    Private Sub Form_Load()

    Dim m_lmoduleCount As Long
    Dim m_lMagnification As Long

    Dim incrementL As Long
  18. [RESOLVED] Algorithm : Zooming+ two dimensional array

    I need to put Magnification=2 (or some else >=1) to re-size two dimensional array and also the contents. Something likes zoom the DIB bits.

    Let me give an example:

    The original two dimensional...
  19. Replies
    30
    Views
    23,500

    Re: Floor() & Power() Function Not In VB 6.0

    The thread haven't yet colsed:D that means the problem haven't yet resolved.

    Just kidding. I put my comment in case someone come across this thread by searching.
  20. Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

    Thanks. It helps!
  21. Replies
    30
    Views
    23,500

    Re: Floor() & Power() Function Not In VB 6.0

    Javascript Math.Floor is exactly same with VB6 Int.
  22. Re: VB - Quick Sort algorithm (very fast sorting algorithm)

    good catch!
  23. Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

    14 should be 00001110

    MS says -14 is 11110010 in two's complement binary. I don't know exactly what is the meaning of complement.
  24. Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

    http://d-project.googlecode.com/svn/trunk/misc/qrcode/index.html

    you download by yourself.
  25. Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

    Thank you very much. Look like those codes works. I will make some tests.
    VBAccelerator has similar codes but it works as Unsigned Right Shift Operator (like javascript operator >>>) .

    The link...
  26. Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

    I am converting some Javascript codes to vb6. The codes used lot of bitshifting operator.




    I don't know why -14 is 11110010 in two's complement binary. VB6 has this data type?
    refer to...
  27. [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

    What is the equivalent code to replace JAVAScript Bitwise Right/Left Shift Operator (>> and <<) in VB6?


    for example:

    -14 >> 2 = - 4
    14 >> 2 = 3

    -14 << 2 = - 56
    14 << 2 =...
  28. Replies
    2
    Views
    363

    Re: Reed Solomon Error Correction

    https://code.google.com/p/rsc/source/browse/gf256/gf256.go#120

    this site got source, but it is not VB6.

    Edited: QR Code use Reed-Solomon.
  29. Replies
    8
    Views
    271

    Re: Val(True) = 0. Why?

    you can use -cInt(True)
  30. Replies
    5
    Views
    335

    Re: Barcode Code 128 Auto Mode

    Thanks. I understand better.
  31. Replies
    5
    Views
    335

    Re: Barcode Code 128 Auto Mode

    What is the mean 1a. If the data consists of two digits, use Start Character C. ???
    Is the data contains 2 digits or the first two digits? For string 12ABc231, there're 5 digits in total and the...
  32. Replies
    5
    Views
    335

    Re: Barcode Code 128 Auto Mode

    Found the GS1-128 specifications regarding the rules even though they are complicated, but look like not all barcode software observed the rules.



    According to the encoding instruction of GS1,...
  33. Replies
    5
    Views
    335

    [RESOLVED] Barcode Code 128 Auto Mode

    I can't find the accurate specification for the priorities of START A / START B/ Start C and Code A/Code B/Code C on Code 128 Auto mode.

    For example:

    String "12ABc231"

    Code 128 Auto...
  34. Replies
    10
    Views
    1,972

    Re: [VB6] Tabulator, Crosstab Class

    The Tabulator class is good to hold tabulated data. I think you can expand functionality to insert/delete/swap rows and insert/delete/swap/sort cols.
  35. Re: Is there a control to replace Acro PDF viewer?

    gibra, your website got register problem long time ago. The mail server failed to send email to gmail.
  36. Re: StrConv(fileData, vbFromUnicode) causes different Results :/

    For proper reading a text file, you should check BOM at first. I leave this part to you for BOM checking.

    Just copy pieces of my old code for your reference.


    Case UEF_UTF16LE
    On...
  37. Re: Textout API issue with few pixels gap

    You also great as well. I love VBForums community which always helps me a lot.
  38. Re: Textout API issue with few pixels gap

    I draw Text with specific Font in picturebox. That's why I use SelectObject.

    In my WIN32 API manual there is no such function as GETTEXTEXTENT. There is GETTEXTEXTENTEXPOINT, and...
  39. Re: GetTextExtentPoint32 and DrawText API issue

    ActiveVB.de has a very good code using GetGlyphOutline by Stefan Maag.

    I test it. The metr.gmBlackBoxY returns right Character's height. Since I don't understand the code, is metr.gmBlackBoxY...
  40. [RESOLVED] GetTextExtentPoint32 and DrawText API issue

    I am mad with the GetTextExtentPoint32 and DrawText API. They both return wrong TextHeight.

    How to get the actual TextHeight?

    Refer to Demo:
    114679



    Screenshot:
Results 1 to 40 of 358
Page 1 of 9 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.