Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 14.56 seconds.

  1. Replies
    6
    Views
    218

    Re: Why did this trigger Defender?

    Most probably imperfect signatures combined with flawed heuristics. It's impossible to know if a piece of code is malicious. They try to use AI for guessing and fail spectacularly sometimes.
    ...
  2. Replies
    6
    Views
    218

    Re: Why did this trigger Defender?

    We have a large applications split into several DLLs/OCXs which are 5-20MB in size. Although we use a lot of thunking and other virus-like techniques these never get flagged by any AV on VirusTotal....
  3. Re: how can i get the GDI+ declaration functions\types?

    You can add 4th point but most probably it will be ignored. The text explicitly states that the API can draw parallelograms which are uniquely defined by only 3 points. The API might ignore the extra...
  4. Re: how can i get the GDI+ declaration functions\types?

    https://github.com/Planet-Source-Code/avery-use-gdi-aka-gdiplus-with-vb6-and-win98__1-37541/blob/master/GDIPlus%20API.bas
  5. Replies
    7
    Views
    424

    Re: Winsock LocalIP is not the correct IP

    The problem is the link to the ZIP in your OP is very hard to notice! I'm posting a link to the original Planet Source Code submission you are having troubles with for the rest of the members to...
  6. Replies
    21
    Views
    413

    Re: Read background color of a bitmap

    You can try the AlphaBlendImage control: https://github.com/wqweto/AlphaBlendImage/blob/master/src/AlphaBlendImage.ctl

    It has Gdip/WicLoadPictureArray functions that can load PNG byte-array from...
  7. Replies
    21
    Views
    664

    Re: Problems with IDE and W10

    Probably time to bite the bullet and reinstall both VB6 and SP6.

    cheers,
    </wqw>
  8. Replies
    8
    Views
    303

    Re: Connection string for Integrated Security

    Use backslash for SQL instance name, e.g. SAGE\SQLEXPRESS

    cheers,
    </wqw>
  9. Replies
    0
    Views
    116

    [VB6] DirectX 11 Desktop Duplication

    This is a work in progress of a remote control utility. This is the screen capturing part using DirectX 11 (DXGI).


    Option Explicit
    DefObj A-Z

    '--- DIB Section constants
    Private Const...
  10. Replies
    21
    Views
    664

    Re: Problems with IDE and W10

    Do you have Service Pack 6 of VB6 installed? (See in Help->About)

    cheers,
    </wqw>
  11. Re: After text colorize in RTB, it returns to black after form minimize

    Form_Activate event is raised when a different form is focused within our application only. If the current active form of our application is focused from external application then Form_Activate is...
  12. Replies
    13
    Views
    649

    Re: VB6 and FontAwesome

    Try this completely new snippet then


    Option Explicit

    Private Declare Function SelectObject Lib "gdi32" (ByVal hDC As Long, ByVal hObject As Long) As Long
    Private Declare Function DrawTextW...
  13. Replies
    21
    Views
    664

    Re: Problems with IDE and W10

    Is this the first API call executed in the IDE that is trashing it? Could it be that OS decided to shim the vb6.exe when it misbehaved for itís own compatibility reasons? Other might chime in how to...
  14. Replies
    7
    Views
    335

    Re: WebSocket Secure (wss) Server in vb6.

    This is a TLS handshake, the ClientHello message. First byte 0x16 means TLS_CONTENT_TYPE_HANDSHAKE, second and third bytes 0x0301 mean the protocol version which is TLS 1.0, etc. So you need a TLS...
  15. Replies
    13
    Views
    649

    Re: VB6 and FontAwesome

    Set AutoRedraw = True on the test form at design-time.

    Should have set it in code to be explicit, sorry about that. . .

    cheers,
    </wqw>
  16. Replies
    13
    Views
    649

    Re: VB6 and FontAwesome

    You don't need LOGFONT to create hFont from StdFont instance. Just acquire its IFont interface and use IFont::hFont property like this


    Option Explicit

    Private Declare Function SelectObject...
  17. Re: Finding a subfolder with the highest number that matches a pattern

    Finding the highest value (maximum) of a sequence can be done with a single temporary variable, no need to sort the whole sequence.

    Something like this


    Dim vElem As Variant
    Dim...
  18. Replies
    7
    Views
    335

    Re: WebSocket Secure (wss) Server in vb6.

    A few pointers:

    1. Search for "vb6 for secure websocket https" in google
    2. In top 5 results there is this github project: VbAsyncSocket

    cheers,
    </wqw>
  19. Re: [RESOLVED] Sqlite how to check if a field is empty?

    Nullable columns are implemented by most RDBMs with a bit which indicates if the column is null or it has actual value.

    If all possible non-null values of a column have business meaning then a...
  20. Re: [VB6/VBA] A clipboard management class (currently have issues in x64)

    OP does use Win64 in stdClipboard.cls so they must be aware of VBA7 vs Win64 preprocessor constants.

    Btw, the error handling with CriticalRaise call is error prone itself. For instance in...
  21. Replies
    36
    Views
    2,371

    Re: Simulate TLS 1.3

    Upload a working sample that I can test against openssl-dev server and will try to debug what's wrong with bulk secrets post handshake.

    cheers,
    </wqw>
  22. Re: [VB6/VBA] A clipboard management class (currently have issues in x64)

    Btw, now you have GlobalFree(hClipMemory) commented out but you *do* need to call it if SetClipboardData fails for some reason.

    This is a common pattern when handles are transfered to the system...
  23. Replies
    43
    Views
    1,068

    Re: Vb6: Winsock data arrival multiple packets

    browse it = download pages

    You do need http protocol downloader.

    What you need is a standard Winsock control based http downloader with the ability to submit custom headers (incl. cookies) so...
  24. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    This is about the only use-case when DoEvents makes sense with a couple of prerequisites:

    1. The form with the Cancel button has to be modal i.e. no other form can get focus

    2. The Cancel...
  25. Replies
    43
    Views
    1,068

    Re: Vb6: Winsock data arrival multiple packets

    Here is a generic downloader that implements the state machine for the http protocol:


    Private Enum UcsStateEnum
    ucsIdle
    ucsWaitRecvHeaders
    ucsWaitRecvBody
    ucsWaitSendBody
    ...
  26. Replies
    36
    Views
    2,371

    Re: Simulate TLS 1.3

    Do you use openssl-dev from above? Do its local IV/Key dumps match remote secrets you come up at your side of the communication?

    I reached the same point and this is *exactly* why I had to...
  27. Replies
    24
    Views
    683

    Re: Catalyst SocketWrench

    Wow, it works with SocketWrench -- each Read call receives *only* the datagram the Read event is in response of.

    The "coalescing" in my impl was entirely self-inflicted. Winsock reported on...
  28. Replies
    24
    Views
    683

    Re: Catalyst SocketWrench

    I'll test it with SocketWrench.

    What happens with WSAAsyncSelect (so called hwnd message-based notifications) is something like this:
    1. Datagram received by LAN card
    2. Receive event fired on...
  29. Replies
    43
    Views
    1,068

    Re: Vb6: Winsock data arrival multiple packets

    I have it switched on here on my 2004 and SSPI/Schannel is not working against TLS 1.3 only servers at all.


    Connecting to tls13.1d.pw
    Error: The message received was unexpected or badly...
  30. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    https://en.wikipedia.org/wiki/Heisenbug -- ". . . a heisenbug is a software bug that seems to disappear or alter its behavior when one attempts to study it."

    About app being "suspended" you can...
  31. Re: [RESOLVED] Sqlite how to check if a field is empty?

    With the risk of going way off-topic most languages are backing off on Null/Nothing nowadays.

    Most prefered way of dealing with errors and unknown values is by using sum types so called Maybe...
  32. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    What actually might help is if you remove *all* DoEvents from your code :-)) Not joking about it!

    Heisenbugs are very hard to debug. You'll need to instrument a lot of logging. Logging that can be...
  33. Replies
    24
    Views
    683

    Re: Catalyst SocketWrench

    Btw, while porting this I decided to broadcast on *all* subnets as returned by GetAdaptersInfo, not only the default LocalAddress as returned by winsock and uncovered another problem with the current...
  34. Re: [RESOLVED] Sqlite how to check if a field is empty?

    This is the problem -- you don't execute WHERE x = NULL, why do you expect x to be null? Why is there IS operator in SQL in first place?

    The whole notion of NULL in SQL is plain wrong. It has...
  35. Replies
    43
    Views
    1,068

    Re: Vb6: Winsock data arrival multiple packets

    Btw, there is no TLS 1.3 client built-in on latest Win10 and there is no TLS 1.2 client built-in on XP (and 2000/NT) which is why I would have to use a custom impl if need be.

    cheers,
    </wqw>
  36. Replies
    43
    Views
    1,068

    Re: Vb6: Winsock data arrival multiple packets

    This line


    txtResponse.Text = txtResponse.Text & strResponse

    . . . already appends to your buffer.

    > how can i get data to textbox in one part?

    So you want a single txtResponse.Text =...
  37. Replies
    36
    Views
    2,371

    Re: Simulate TLS 1.3

    Oops, my bad. I just realized the sequence number is post-incremented in my impl too. I don't care to use a 64-bit counter here but just treat the simple 32-bit VB native Long as unsigned value for...
  38. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    Sure!

    __vbaForEachCollVar obviously does the heavy-lifting of calling DISPID_NEWENUM on the IDispatch to return the IEnumVARIANT. No one asked it to call Next too on this interface though (but...
  39. Replies
    36
    Views
    2,371

    Re: Simulate TLS 1.3

    > Without decrypting the record, we do not know the record type. Without knowing what kind of record it is, it is difficult to ignore.

    I mean ignoring it *after* decrypting it. (No need to...
  40. Re: How to call IEnumVARIANT::Next() with DispCallFunc() - Without external TLBs

    Wow, this is too good not to mix both like this


    Option Explicit

    Private Declare Function vbaNextEachCollVar Lib "msvbvm60" Alias "__vbaNextEachCollVar" ( _
    ByRef...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width