Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    Well, try debugging this project while the form is subclassed with this half-baked approach for instance.

    cheers,
    </wqw>
  2. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    That would be sad indeed provided that SetWindowSubclass API allows trivially passing ObjPtr(Me) so that module based SubclassProc can be reduced to a calling back trampoline.

    I'm wondering isn't...
  3. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    What accessible ways?

    Provided that you are tightly coupling the subclassing module and the form, yet again you might have multiple instances of Form1 and how do you deal with this? Present code...
  4. Replies
    10
    Views
    275

    Re: Internet Distribution Site For VB6 Project

    https://pages.github.com/ is an option too.

    cheers,
    </wqw>
  5. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    Are you using this exact same code?

    You *could* keep WndProc/SubclassProc in a standard bas module and map "instance data" by hWnd from a giant collection but this would be mighty uncomfortable...
  6. Replies
    7
    Views
    429

    Re: Simulate TLS 1.3

    The only type of records that can be protected (encrypted) are RT_APPLICATION_DATA so encrypted handshake, alerts and actual data can pass through hardware middle-boxes designed for TLS 1.2 without...
  7. Replies
    10
    Views
    776

    Re: help about create this theme

    It's a bug in the compiler and it makes the IDE (interpreter) runtime unstable so should never be used is production (or any other) code.

    Just use ArrPtr alias to VarPtr to get pointer to the...
  8. Replies
    7
    Views
    429

    Re: Simulate TLS 1.3

    > I vaguely remember something about the Session Hash being reset after the Handshake is established, but I could not find any information to verify that. If anyone can point me towards such...
  9. Re: VBRichClient5 cCollection ItemExists Question

    Which version of RC5 do you test this on?

    cheers,
    </wqw>
  10. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    https://docs.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-nmcustomdraw


    Your code


    Case CDDS_ITEMPREPAINT
    LVWndProc = CDRF_NOTIFYSUBITEMDRAW Or CDRF_NEWFONT Or...
  11. Replies
    28
    Views
    731

    Re: Custom Drawing of the ListView

    This is bad beyond repair. You cannot randomly access Form1 from a WndProc in a module.

    You could but its useless for anything that might be used in production code.
  12. Replies
    1
    Views
    145

    Re: Zip Files/Folderwith VB6

    https://github.com/wqweto/ZipArchive
  13. Re: [VB6] Simple AES 256-bit password protected encryption

    This is hardly going to match Java implementation. It is currently matching 1-to-1 the WinZip AES encryption scheme where the module was actually extracted from. Unfortunately it deviates a bit from...
  14. Replies
    14
    Views
    719

    Re: [RESOLVED] AES_128_GCM question

    I think they had trouble with middleboxes when they tried masquarading as older TLS 1.2 protocol when the application data records were too short so they specified TLS 1.2 compatibility mode in which...
  15. VS 2017 Re: Disposing variables and objects that contains sensitive data

    For sensitive data your only choice is to use


    Array.Clear(data, 0, data.Length);

    . . . where byte[] data is a simple array as a continuous blob of data.

    When you wrap/insert such blob in...
  16. Replies
    14
    Views
    719

    Re: [RESOLVED] AES_128_GCM question

    It's explained in section 5.4. Record Padding



    They basically append the record type at the end of plaintext as a non-zero delimiter after which zero-filled padding may or may not be added.
    ...
  17. Re: How good is my source coding or what, then???

    @Dragokas: "Do you wish to do unpaid work for ThEiMp???"

    (I would be nuts not to check out OP's signature first:-))

    cheers,
    </wqw>
  18. Replies
    35
    Views
    1,489

    Re: codesign + dragdrop/IDropTarget + UAC

    Btw, the OP is about the rare use-case of UIAccess=True attribute set.

    There are some additional (obscure) conditions mentioned for this to work, namely executable being code-signed and located...
  19. Replies
    14
    Views
    584

    Re: windows 10 is blocking this site

    Can try clearing browser cookies for [www.]vbforums.com site only.

    I've had some sites concatenate random junk to its cookies (due to mostly bugs) reaching *excessive* lengths so that at some...
  20. VS 2017 Re: How to run a program on all wildcards in all subfolders?

    In C# it would be something like this


    foreach (string file in Directory.EnumerateFiles(@"C:\Path\To", "*.cc", SearchOption.AllDirectories))
    {
    Process.Start("program.exe",...
  21. Re: SSLStream - "The handshake failed due to an unexpected packet format"

    I just tried the sample *client* code w/ VS2017 (using .Net Framework 4.6.1) connecting to random servers on the internet and to a custom local server -- seems to be working fine.

    Your server...
  22. Thread: Modern C# to VB

    by wqweto
    Replies
    9
    Views
    485

    Re: Modern C# to VB

    JS had semicolons optional since day one so the same language "feature" goes to .jsx or .tsx if using typescript -- both can live without semicolons.

    Funny thing is SQL Server had it all backwards...
  23. Replies
    14
    Views
    584

    Re: windows 10 is blocking this site

    Exactly! That would be impossible, so probably your iPhone is not working too. It just *seems* to be working over the same Wi-Fi accessing the site from the same IP. . .

    Your hypothesis is equally...
  24. Re: SSLStream - "The handshake failed due to an unexpected packet format"

    Did you tweak ValidateServerCertificate on the client to always allow sever certificates (always return true)? Curently the server is defaulting to a self-signed certificate which is rejected if not...
  25. Replies
    14
    Views
    584

    Re: windows 10 is blocking this site

    Your iPhone is falling back to 3G (mobile connection) when wifi/router connection to forum IP is failing so it looks your IP is not blocked on the phone. Remove SIM card and try accessing it if you...
  26. Re: SSLStream - "The handshake failed due to an unexpected packet format"

    Could be TLS version mismatch. The web hosting .Net Core is probably using linux server pre-installed openssl library for the TLS channel and defaults to version 1.3

    The client code on a Windows...
  27. Replies
    14
    Views
    584

    Re: windows 10 is blocking this site

    I used to be blocked by IP for half an year at least. It resolved on its own when they tweaked the forum software last time.

    On the Windows 10 machine you can navigate to...
  28. Re: how can fix vb6 editor format>font (arabic script)?

    I'm merging this subst.reg for cyrillic support when using Tahoma in the IDE (I'm actually using font Input but this is a separate topic)


    REGEDIT4
    ...
  29. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    Yes, in TLS 1.3 data to be encrypted never ends w/ zero as they append a single byte w/ record type at the end (which is never zero) and then the server is allowed to pad with zeros as much as it...
  30. Replies
    7
    Views
    460

    Re: Good programming practices for VB6

    Good and modern design patterns are usually invented along newer or more widespread languages. Your best bet would be to read a book on design patterns with VB.Net and translate the underlying...
  31. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    Try this in clsCrypt


    Private Sub Class_Initialize()
    Const LNG_AESGCM_TAGSZ As Long = 16
    Dim baKey() As Byte
    Dim baNonce() As Byte
    Dim...
  32. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    baAad is literally an acronym for "byte-array Additional authenticated data". This is an optional data that is hashed in addition to input data when producing the AuthTag in AEAD ciphers. In AES-GCM...
  33. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    I just pushed commit 5109051 to a new BCrypt branch of the repo with AES-GCM encryption impl w/ BCrypt API that is tested and working w/ both TLS 1.3 and TLS 1.2

    Here is the code extracted in...
  34. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    Not with AEAD ciphers like AES-GCM and ChaCha20-Poly1305 as MAC's authetication verification reason for existence is built inside the AEAD encryption scheme in the so called "authentication tag".
    ...
  35. Replies
    14
    Views
    719

    Re: AES_128_GCM question

    AES-GCM is an AEAD cipher (authenticated encryption with associated data) and it does not need separate MAC as the verification phase is "built-in" into the cipher and this additional verification...
  36. Replies
    32
    Views
    924

    Re: [RESOLVED] MonitorEnumProc issues

    Try


    c:> copy /b app.exe +,,

    instead. It's a weird looking syntax but gets the job done.

    cheers,
    </wqw>
  37. Replies
    7
    Views
    3,140

    Re: [VB6] Blur effect on GDI+ bitmaps

    Yes, there is a non-obvious precondition for partial blur to work -- the dimensions of the dblBuffer array has to match the dimensions of the rectangle you are passing for processing to...
  38. Replies
    32
    Views
    924

    Re: MonitorEnumProc issues

    For the new app.manifest to be recognized use C:> touch app.exe -- i.e. change last modified date/time on the *executable*.

    Or restart the PC.

    cheers,
    </wqw>
  39. Replies
    12
    Views
    506

    Re: Make Patch Installer for Client's Computer

    https://github.com/google/omaha -- this is what chrome browser uses.

    cheers,
    </wqw>
  40. Thread: Little Help

    by wqweto
    Replies
    7
    Views
    444

    Re: Little Help

    Just use objMatches.Item(0).Value to search in the text of first capture you explicitly used in your regexp with ([\s\S]*?) w/ the brackets and the lazy star, instead of all the strFileContents like...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width