Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Thread: Encrypt/Decrypt

    by wqweto
    Replies
    6
    Views
    111

    Re: Encrypt/Decrypt

    Try this simple RC4 implementation


    Option Explicit

    Private Sub Form_Load()
    Dim sSecret As String

    sSecret = ToHexDump(CryptRC4("a message here", "password"))
    Debug.Print...
  2. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    LOL and ouch!
  3. Re: PictueBox MouseDown/Up (Button Mutual Exclusivity)

    Do you want to prevent *left* button click while the right button is pressed too? You don't have to use the .Tag property if it's already employed in some logic. For instance I usually use it to keep...
  4. Re: How can I share a winsock socket ID across processes?

    In the Remarks section of WSADuplicateSocket it says


    DuplicateHandle works on hSockets in-process just fine but for out-of-proc duplication WSADuplicateSocket seems to be required indeed.
    ...
  5. Replies
    13
    Views
    446

    Re: IDE Question

    It usually helps in my projects to comment the const expression or a public enum somewhere in a standard module so that the IDE re-compiles bigger part of the project.

    cheers,
    </wqw>
  6. Replies
    18
    Views
    2,093

    Re: Question about WinHttpRequest object

    I meant "chunked" like in parts, not like in "Transfer-Encoding: chunked" header attribute.

    The comment about sending POST requests using "Transfer-Encoding: chunked" I'm not sure what the benefit...
  7. Re: Create xml file in vb6.0 like the following

    IMO these forums have way too little sample code on MSXML2.DOMDocument which uses basic createElement + appendChild with sporadic setAttribute calls to create 99.99% of the XML ever needed in the...
  8. Re: Remove dead COM entries in the registry.

    The UI is abhorent. You first have to Scan your current registry (into an MDB). Then you can filter typelibs/CLSIDs by C:\Work\MyProject folder (or project name) and delete these (with Invert +...
  9. Re: Question about GetSystemMetrics and VIRTUALSCREEN

    1 Left: -1920 Right: 2560
    1 Top: 0 Bottom: 1440
    2 Left: -1920 Right: 2560
    2 Top: 0 Bottom: 1440

    An HD monitor next to a QHD...
  10. Re: Create xml file in vb6.0 like the following

    This


    Option Explicit

    Private Sub Form_Load()
    Dim oDoc As Object

    Set oDoc = CreateObject("MSXML2.DOMDocument")
    With oDoc.appendChild(oDoc.createElement("alfa"))
  11. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    There is usually some risk involved with everyday activities so I'm always on the lookout for falling bricks when walking on the sidewalks but you can still never know for sure :-))

    cheers,
    </wqw>
  12. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    Wow! This works! :-))

    I'll keep my fake status until discovered by real mods. . .

    cheers,
    </wqw>
  13. Replies
    10
    Views
    364

    Re: WS_CHILD follow scrollable parent window ?

    Which API do you use to scroll tha parent window?

    Sending WM_MOUSEWHEEL messages to a hWnd does not scroll anything per se. It's each window's custom drawing routines responsability to adjust...
  14. Replies
    18
    Views
    2,093

    Re: Question about WinHttpRequest object

    I'm not sure Bonnie West will ever answer these questions but IMO you'll have yes on both of these.

    The only way WinHTTP might get cached results is by intermediate proxies so you have to set...
  15. Replies
    3
    Views
    261

    Re: Here's code to get any part of a URL.

    Btw, you can have "/" in user/pass and you can have ":" and "@" in password. You can have protocol-less URLs like in "//www.vbforums.com/showthread.php" or relative URLs like in...
  16. Re: SSPI/Schannel client for SSL/TLS channels in VB6

    Yes, you have a point and this looks like a bug. It's not present when using TLS socket because the underlying encrypting routines buffer the whole output so m_baSendBuffer never has outstanding...
  17. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    In the news: Rust entire moderation team resigns.

    vbforums.com one when? :-))

    cheers,
    </wqw>
  18. Replies
    5
    Views
    204

    Re: Trickish Situation With Data Range Search

    Seek method works only in JET and only when there is an index on the column being searched.

    This is the way DBF files are used, very educational if you are used to SQL with whatever predicate you...
  19. Re: Remove dead COM entries in the registry.

    Yes, this seems the way to go.

    Actually registry is stored in a JET database (several MDB files) but unfortunately you cannot reliably copy these while the database is in use (while the OS is...
  20. Re: Remove dead COM entries in the registry.

    The closest to actual backup/restore comes the built-in REG utility


    D:\TEMP>reg save /?

    REG SAVE KeyName FileName [/y] [/reg:32 | /reg:64]

    KeyName ROOTKEY\SubKey
    ROOTKEY [ HKLM...
  21. Re: Remove dead COM entries in the registry.

    Really?

    This took ages to export here into a 941MB file but how am I supposed to restore my registry with this?

    It will not *remove* bad entries at all and it does not collect permissions so...
  22. Replies
    29
    Views
    690

    Re: Reference a .NET DLL in VB5

    LOL

    Both you and the angel?

    cheers,
    </wqw>
  23. Re: Remove dead COM entries in the registry.

    Here is an internal tool we are using on our build servers. It's pretty shoddy but gets the job done.

    You can use it to review the junk in COM registrations after IDE crashes, double...
  24. Re: any way for protect video like as mp4 video larg size and play just in my progra

    How do you play your mp4/mkv video without protection as of now? Paste some code.

    cheers,
    </wqw>
  25. Replies
    2
    Views
    149

    Re: Looking for workflow-advice

    Is the ERP-Database the single source of truth?

    If so on "next step" no need for "I collect those scans/part-no in a file, database, wherever, DISCARDING part-no which are in the...
  26. Re: List/DB with WinAPI functions and supported Windows versions?

    https://www.vbforums.com/showthread.php?892488-WIP-Win32-API-functions-for-VB6

    There is Platform field in the JSON where minimum OS version is encoded. Not sure if these are correct though.
    ...
  27. Re: MY UDP Checksum method. How can I make it better.

    You can check out some previous art like Adler-32 checksum (the checksum used by zlib).

    Here is one with SSE3/AVX2 optimizations for .NET 5 on input above 16 bytes which will smoke anything you...
  28. Re: Add OleDrag and OleDrop to VB6 user control (OCX)

    Here is a recent topis which uses DragDetect on built-in ListBox control -- check if this will work out for you.

    Otherwise post a link to control's sources on github.com and I'll send you a PR...
  29. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    Could be regular users will be totally helpless in these forums without the comrade help by our chivalrous moderators but when I awoke from this dream the forum reassuringly chimed "brad jones has...
  30. Re: Is it possible to convert an .exe file to 64-bit?

    Btw, TwinBasic just released early alpha of their x64 compiler (with a nag screen for the free tier).

    Now I'll have to redo all my ASM thunks in x64 for the benefit of all VBA users that have been...
  31. Replies
    9
    Views
    12,050

    Re: [RESOLVED] WinHttpRequest - Certificate

    For the poor souls who search the interwebs for the correct syntax to SetCredentials it's


    .SetClientCertificate "CURRENT_USER\MY\Name of Cert Here"

    To access certificates Personal store you...
  32. Replies
    13
    Views
    559

    Re: calculate percentage

    To prevent division by zero in a / b you can use something like a / NULLIF(b, 0) so you get NULLs in the UI.

    You can even set a default value in the data-type of the calculation with something...
  33. Replies
    13
    Views
    559

    Re: calculate percentage

    If you have this


    a = 1 / 2

    . . . and this


    b = 1.0 / 2
  34. Replies
    63
    Views
    1,683

    Re: Ignoring moderators

    Actually no. My reasons above are just hypothetiocal, yet! But don't ask me how I found out this forum "feature", please :-))

    cheers,
    </wqw>
  35. Replies
    63
    Views
    1,683

    Ignoring moderators

    Is it possible to enable regular users to be able to ignore forum moderators? I don't understand the rationale for this feature being disabled provided that moderators or usualy prolific posters...
  36. Re: [RESOLVED] How to convert c language if (exp & 1) { ..... } to vb6

    The more correct reasoning is that the type of expression like (expr1 & expr2) depends on *both* left-side and right-side operand types simultaneously, not on the left-side only.

    Otherwise what...
  37. Replies
    22
    Views
    1,796

    Re: Screensaver on WinXP

    It might be that x84 hardware is not supported by VB6 so don't hold your breath.

    cheers,
    </wqw>
  38. Re: How to convert c language if (exp & 1) { ..... } to vb6

    No, I don't mean this. Where did I say this?

    Both & and && are different operators. There is no equivalent to && in VB6 while & (the bitwise AND) is equivalent to And operator in VB6.

    Note that...
  39. Re: How to convert c language if (exp & 1) { ..... } to vb6

    Try


    If (Value And 1) <> 0 Then . . .

    cheers,
    </wqw>
  40. Replies
    39
    Views
    909

    Re: Binary Search Not Finding Capitals

    If you are going to compare if key = Mid(aSortedArray(minIndex), 1, InStr(1, aSortedArray(minIndex), ",") - 1) in the final compare then you should also compare key < Mid(aSortedArray(midIndex), 1,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width