Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    31
    Views
    2,071

    Re: [VB6/VBA] QR Code generator library

    Just fixed the obvious issues with WinWord and MS Paint in commit 640be96 but there is still some "halo" effect in office applications due to the anti-aliasing these perform with (probably) a custom...
  2. Re: SQL Server Query - count if any rows have a certain value

    Could be but don't count on it :-)))

    cheers,
    </wqw>
  3. Re: SQL Server Query - count if any rows have a certain value

    This


    (SELECT SONumber, COUNT(disposition) AS CountS FROM tbl_mock WHERE disposition='S') AS M2
    . . . is missing a GROUP BY SONumber

    This


    LEFT JOIN tbl_mock AS M3
  4. Re: [RESOLVED] Painless Panels Perk Pepper Poodles (Cairo Panels)

    Try IO.My_IO.Show , Form1 without vbModal.

    cheers,
    </wqw>
  5. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    You can use the IDE debugger to trace the code.

    First trace the sample code and notice the control flow -- first Show vbModal, then Activate event which rises Start event.

    Then trace your...
  6. Replies
    31
    Views
    2,071

    Re: [VB6/VBA] QR Code generator library

    10x, Iíll research this compatibility issue.
  7. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    LOL, I just used DoEvents *and* OERN in a single procedure above :-))

    Btw, Dir (and GetAttr) bomb out when file/path does not exist so if one wishes to adhere to the one true Break on All Errors...
  8. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    I don't remember attacking you personally but my point against DoEvents is in principle -- there are very few cases where one *can* use it.

    It's not if one wishes to use it but whether one *can*...
  9. Replies
    31
    Views
    2,071

    Re: [VB6/VBA] QR Code generator library

    It's a single standard module library. There is no external dependency as the original C code is completely translated to VB6.

    With standard BAS modules you can only use whichever procedures you...
  10. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    You can laugh all that you want but my stand on DoEvents usage remains unchanged -- it is very rarely needed, for newbies almost never.

    This is like most beginners try to fix their SQL queries by...
  11. Replies
    31
    Views
    2,071

    Re: [VB6/VBA] QR Code generator library

    Take a look at Form1.frm source code, there is no need to use byte-arrays in VB6 because you can just use Set Image1.Picture = QRCodegenBarcode("Sample Text") to directly display the vector image.
    ...
  12. Re: [RESOLVED] Painless Panels Perk Pepper Poodles (Cairo Panels)

    10x

    Missed that and forgot to register RC6Widgets.dll from RC6 redist ZIP.

    cheers,
    </wqw>
  13. Re: [RESOLVED] Painless Panels Perk Pepper Poodles (Cairo Panels)

    It says "Zip-Download-> of the current master-branch (incl. the latest vbWidgets.dll-Binary, ~ 237KB)" but this one references RC5 i.e. uses types from RC5 on its public interfaces.

    cheers,
    </wqw>
  14. Re: [RESOLVED] Painless Panels Perk Pepper Poodles (Cairo Panels)

    Where did you get RC6 Widgets binary from?

    cheers,
    </wqw>
  15. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    @Eduardo: This is a case impl. all safe conditions to call DoEvents i.e. when there is a modal form in this case with a single Cancel button the end-user must interact with.

    In this particular...
  16. Replies
    2
    Views
    153

    Re: hInstance?

    Check out if GetModuleHandle(NULL) matches App.hInstance in Excel and use it instead in other VBA hosts.

    cheers,
    </wqw>
  17. Replies
    6
    Views
    292

    Re: LOOPING dir and sub dir

    Here is a simple EnumRecursiveFiles function which returns a Collection of matching files in a folder incl. all its subfolders.


    Option Explicit

    Private Sub Form_Load()
    Dim vFile As...
  18. Re: convert .png image to gif or .jpg, via vb6 code?

    Try using this class: https://www.vbforums.com/showthread.php?808301-VB6-PicSave-Simple-SavePicture-as-GIF-PNG-JPEG

    cheers,
    </wqw>
  19. Replies
    31
    Views
    2,071

    Re: [VB6/VBA] QR Code generator library

    In latest update QR codes generated are with fancy rounded modules by default (inspired by Telegram activation codes)

    https://www.vbforums.com/images/ieimages/2022/11/7.png

    Surprisingly such...
  20. Replies
    17
    Views
    481

    Re: Form show vbmodal and the rest of the sub

    Try these two sample forms to implement modal progress indication with cancellation


    '--- Form1
    Option Explicit

    Private WithEvents m_oProgress As Form2

    Private Sub Form_Click()
    Set...
  21. Re: Check if a drive letter is a HDD/SSD or a CD/DVD/Card reader

    Not always. Sometimes it just returns DRIVE_FIXED

    cheers,
    </wqw>
  22. Re: Check if a drive letter is a HDD/SSD or a CD/DVD/Card reader

    Yes, the simple GetDriveType API call correctly returns DRIVE_CDROM for optical drives.

    Apparently the IsVolRemovable above tries to recognize USB thumb drives too. I have no other explanation why...
  23. Re: RC6 Sqlite Whether to enable full-text search engine version 5

    RC6 cannot possibly load x64 extensions. Check you extension DLL bitness.

    cheers,
    </wqw>
  24. Replies
    6
    Views
    316

    Re: Error Vb6 in W10

    You are not being more specific, on the contrary.

    Do you use setup.exe or do you copy/paste your "installation" to end-user machines?

    What prevents you from just right click your setup.exe and...
  25. Replies
    10
    Views
    4,958

    Re: VB6 - Ink Editor

    @iwsteph: You don't register anything on Win11 (and Win10) because there is already MS shipped Inked.dll in C:\Windows\SysWOW64

    You are not allowed to replace system DLLs with your own copies for...
  26. Re: Check if a drive letter is a HDD/SSD or a CD/DVD/Card reader

    Check out this IsVolRemovable function:


    Option Explicit

    Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileW" (ByVal lpFileName As Long, ByVal dwDesiredAccess As Long, ByVal...
  27. Re: Base64 decoded string is different with different regional settings!

    Funny fact: it's possible two different B64-String-Input to produce the same ByteArray-Content.

    That's why Base64 input cannot be treated as canonical encoding esp. if produced by malicious party....
  28. Re: How do I address C variables that use an typedef array in an array?

    In VB6 it's the natural x,y while in C/C++ you have to be able to get a pointer to y-th row with MyVar[y] so it's reversed to MyVar[y][x]

    You can check which dimension is which in VB's layout like...
  29. Re: How do I address C variables that use an typedef array in an array?

    In VB6 dimensions are reversed i.e. y have to be the second one in order to keep the memory layout like in C/C++
  30. Replies
    3
    Views
    322

    Re: [VB6] How to use GPU from VB6 using opencl

    Next is to use opencl to calculate FFT on the GPU for instance :-))

    cheers,
    </wqw>
  31. Thread: resize jpg

    by wqweto
    Replies
    5
    Views
    312

    Re: resize jpg

    The funny thing is that OP probably does not need resize at all but a simple crop.

    The width does not change from 103 px and he probably does not want to change the aspect ratio of the image so...
  32. Replies
    8
    Views
    462

    Re: Simple FFT module

    Is Data2 the output and Data1 the input? Can you name these accordingly? Are +1 and -1 only valid values for Sign? Can you make it a boolean (named Negative or Positive) so that incorrect values are...
  33. Replies
    3
    Views
    322

    [VB6] How to use GPU from VB6 using opencl

    Here is a direct translation of this tutorial which uses opencl to populate a buffer with consecutive numbers.


    Option Explicit

    Private Const CL_FALSE As Long = 0...
  34. Replies
    2
    Views
    246

    Re: Solve equation from textbox [VB6]

    This is a sample how to evaluate complex formulas with JScript9 engine using built-in Active Scripting as provided by Windows.

    https://github.com/wqweto/VBTixyLand

    The idea is that with...
  35. [VB6/VBA] Argon2 KDF implementation for password hashing

    This mdArgon2.bas module implements Argon2 memory-hard function for password hashing. Argon2 depends on BLAKE2b so you'll need to include mdBlake2b.bas module before using current Argon2 module.
    ...
  36. Re: Getting the ball rolling. Which VB6 projects are you working on?

    I hope this abomination and single procedure view in the editor never get implemented by Wayne or at least to be part of only Advanced Mega Compatibility Pack for Dummies Edition with tripled the...
  37. Replies
    5
    Views
    256

    The Story of Mel, a Real Programmer

    https://www.cs.utah.edu/~elb/folklore/mel.html


    LOL,
    </wqw>
  38. Re: [VB6/VBA] BLAKE2 and BLAKE3 hash functions and MAC

    (continued)

    This mdBlake3.bas module implements BLAKE3 multi-purpose hasher which can be used as an ordinary hash, MAC and KDF.

    For keyed hash (MAC) provide Key parameter to CryptoBlake3Init,...
  39. Re: [RESOLVED] Read a UDT return value from dll (stdCall), using late binding for dll

    There is no returning of an UDT of more than 8 bytes in stdcall ABI. It's a lie by the C/C++ compilers which you have demystified.

    cheers,
    </wqw>
  40. Re: [vb6] Getting AddressOf for VB Class/Object Modules

    @Elroy: I though that you already had this implemented much better here: https://www.vbforums.com/showthread.php?898112-Success!-I-ve-Done-It!-Callbacks-all-within-an-object

    It has to be...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width