Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.20 seconds; generated 5 minute(s) ago.

  1. Re: Winsock: "Connection is forcefully rejected" error

    The server implementation in this thread is bonkers. You don’t accept incomming connections on the listening socket they do.

    Better start a new thread titled “How to write simple TCP server using...
  2. Re: [RESOLVED] Trying to make an app portable using SxS but ending up with an entry i

    Yes, this is result of aggresive manifest caching by the OS. You have to modify/recompile the EXE to invalidate the cache or use touch.exe utility to just change its last modified timestamp to...
  3. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    He never fiddles with colors (or bitmaps) but activates and deactivates particular themes using these APIs:


    Private Declare Function SetWindowTheme Lib "uxtheme" (ByVal hWnd As Long, ByVal...
  4. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    That's because you need comInterfaceExternalProxyStub entries for mutli-threading only, more precisely for cross-appartment marshalling support, so no need to bloat the manifest if not needed. (Btw,...
  5. Re: Question: How to pack files xml with the format TAR in Visual Basic 6??

    Try If .Extract(App.Path & "\Unpacked") Then MsgBox "Success"

    The same for If .CompressArchive("d:\temp\test.tar.gz") Then ...

    cheers,
    </wqw>
  6. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    > As an additional precaution, would it be worth the trouble to change their file extension as well?

    Yes, if in source .frm file the OCX is referenced/known as MSFLXGRD.OCX then it's COM server...
  7. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    It's common knowledge that Std-EXE auto-registers OCXes (but not DLLs) if their registration is not found in HKLM on Form_Load but binary files are present in EXE folder on startup.

    This is the...
  8. Re: How can I have unsigned Integers and Longs in VB6?

    Unfortunately not the fastest implementations. Check out single-line expressions for LShift32 and RShift32 in my recent Wheeler & Needham’s Tiny Encryption Algorithm.

    Using the same idea here are...
  9. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    There is no single color UXTheme "uses when a mouse is over a button or when a button is pressed". It just stretches and paints several pre-rendered bitmaps it has stored in theme's data for BUTTON...
  10. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    MagnumDB is very nice.

    I'm using an old HRPlus utility which is handy but less complete.

    cheers,
    </wqw>
  11. [VB6/VBA] Wheeler & Needham’s Tiny Encryption Algorithm

    This mdTea.bas is implementation of latest XXTEA variant of the Wheeler & Needham’s Tiny Encryption Algorithm. While the C code in the linked Wikipedia article is short and elegant the VBx variant...
  12. Re: Getting the ball rolling. Which VB6 projects are you working on?

    New prices?

    cheers,
    </wqw>
  13. Replies
    33
    Views
    1,030

    Re: Fast String Math Function - VB6

    It is what it is. By the looks of it (late-bound of not) obviously the approach is slower.

    Edit: Yes, order of magniture slower:


    Option Explicit

    Private Declare Function...
  14. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    0x80070490 is E_PROP_ID_UNSUPPORTED meaning there is no such theme color because there is a whole bitmap which is painted on hover i.e. you can instead request a RECT to be painted with button's...
  15. Replies
    33
    Views
    1,030

    Re: Fast String Math Function - VB6

    Yes, you can test it as it currently is.

    cheers,
    </wqw>
  16. Replies
    33
    Views
    1,030

    Re: Fast String Math Function - VB6

    Indeed!

    https://www.vbforums.com/images/ieimages/2024/03/3.gif

    cheers,
    </wqw>
  17. Replies
    59
    Views
    1,520

    Re: Adding a huge number of records to a MariaDB

    Researchers, please replace SQLite with DuckDB now

    DuckDB Installation on Win10+ is as simple as:


    c:> winget install DuckDB.cli

    cheers,
    </wqw>
  18. Replies
    33
    Views
    1,030

    Re: Fast String Math Function - VB6

    Try this one (using JET engine)


    Option Explicit

    Private Function Eval(sExpression As String) As Variant
    Static oConn As Object
    Dim sConnStr As String

    If...
  19. Re: Question: How to pack files xml with the format TAR in Visual Basic 6??

    This happens with version 9.22 of 7z.dll or with latest version you have installed on your PC?
  20. Re: Question: How to pack files xml with the format TAR in Visual Basic 6??

    There is no 7-zip.dll and it's not necessary to copy anything anywhere. Just use Init method with full path to 7z.dll as shown multiple times in the samples above.

    Try using 7z.dll from 32-bit...
  21. Re: Challenge: Which Device Used for Entry | VB6

    I'm thoroughly joking :-))

    Programming in VBx is problematic nowadays while Delphi still lives on in the hearts and minds of OG devs.

    cheers,
    </wqw>
  22. Re: Challenge: Which Device Used for Entry | VB6

    You'll need power bricks for the Raspberries while the RFID readers are powered by USB, you'll need plastic cases to put the barebones somewhere (so not 70-90$) and on top of it you'll need to...
  23. Re: How to compare the similarity of two words in VB?

    https://github.com/StefH/SimMetrics.Net -- some algorithms besides basic Levenstein.

    I've used this (similar library) to implement auto-correct on free-text search on a products catalog site.
    ...
  24. Re: Challenge: Which Device Used for Entry | VB6

    https://github.com/wqweto/UsbBarcodeScanner

    This works both for RFID readers and Barcode scanners or any other USB/HID device registered as a keyboard on the system.

    Some of the fancy (more...
  25. Replies
    10
    Views
    1,343

    Re: Excel VBA Clipboard error

    Btw, try pressing Win+V -- if it lists several past clipboard entries then clip history is not off.

    cheers,
    </wqw>
  26. Replies
    75
    Views
    19,703

    Re: RAD Basic vs TwinBasic, Which do you prefer?

    So you decided to reply to this one year old random message out of pure desire to clarify things to these young heads?

    https://dl.unicontsoft.com/upload/pix/angry-old-man-get-off-my-lawn.gif
    ...
  27. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    In MSSQL you have IGNORE_DUP_KEY option for unique indexes like this:


    CREATE UNIQUE [CLUSTERED] INDEX MyIndex ON MyTable(UniqueCol1, UniqueCol2, ...) WITH IGNORE_DUP_KEY

    It basicly does not...
  28. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    This is on another level — https://questdb.io/blog/1brc-merykittys-magic-swar/
  29. Re: Any one who sits with the sorce code behind IShellFolder and/or IShellItem interf

    You can search Wine's source code too. I suspect that most of the re-implementations there are from the original Microsoft employees which wrote the components in first place :-))

    For instance you...
  30. Re: The MSComm Control - A "Why" question about Input vs. Output

    You can make a wrapper procedure which does this and call it like baData = ReadCOM(5) to (synchronously) receive 5 bytes.

    In fact in Win32 API there already is such wrapper function and it's...
  31. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    FYI, the ZipAsync does not hit the disk i.e. all decompression is done in memory and output is asychnornously buffered until ReadChunk is called. I just updated the ZipAsync.zip archive above to...
  32. Replies
    2
    Views
    295

    Re: @Wqweto: Unzip a file "flatly"

    In latest commit if you don't want to sink any events then you can instead loop all the files and call Extract individually on each archive entry with proper target output filename like this

    ...
  33. Re: [RESOLVED] Converting ASCII Byte Array to Single or Double ... Fast

    Btw, you can unzip on a separate thread/process so that decompression and ingress happen in parallel. I've just cobbled a generic async approach to unzipping here: ZipAsync.zip

    In the test project...
  34. Replies
    16
    Views
    911

    Re: Subclassing made easy

    Btw, comctl subclassing API functions are available *by ordinal* since Win2000 and then later in WinXP they (some of them) were exposed by name as well.

    So directly manipulating GWL_WNDPROC is...
  35. Thread: RFID reader

    by wqweto
    Replies
    8
    Views
    703

    Re: RFID reader

    You need to use RegisterRawInputDevices API to get raw keyboard input to be able to distinguish input from both readers (which are actually registered as system keyboards).

    Look at this project...
  36. Replies
    60
    Views
    67,349

    Re: VB6 - Huge (>2GB) File I/O Class

    Btw, it's possible to just use Shell32 provided file streams from VB6 as COM based IUnknown references so that on pressing End button/statement the reference is Release'd by the IDE and the file...
  37. Re: Weird "bug" with Dim? Does everyone know that Dim ignores logic?

    Original C is much like VB6 i.e. automatic vars are stack allocated at function prolog no matter in which sub-scope these are declared.

    In C++ things get more complicated as there are constructors...
  38. Re: Weird "bug" with Dim? Does everyone know that Dim ignores logic?

    You can use Static daB(9) As String to prevent it from *clearing* the array on each procedure invocation. It's not the allocation that is slow but instead setting each member to an empty value which...
  39. Replies
    16
    Views
    911

    Re: Subclassing made easy

    My point exactly on "Simplest Subclassing" -- it's just not very useful to *not* call back into the form where any data *and* logic pertaining to the form belongs.

    Keeping wndproc logic outside...
  40. Replies
    48
    Views
    1,415

    Re: Subclassing At Its Simplest

    CTrickSubclass.zip -- put breakpoint on Private Sub m_pSubclass_WndProc in ctxTrackMouse, run project and immediately press Stop

    cheers,
    </wqw>
Results 1 to 40 of 496
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width