Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    191

    Re: IPicture interface methods

    All StdPictures in VB6 (and in ole32) are created with OleCreatePictureIndirect API function call or with a OleLoadPictureEx API function call.

    Consider the PICTDESC struct which is wrapped by...
  2. Re: vb6: how use an user type parameter on a class function\sub?

    Shortcoming of the the compiler. You cannot have a *public* UDT on a private class with same project scope the way public UDTs are implemented in a standard .bas module.

    The compiler allows UDTs...
  3. Re: vb6: how use an user type parameter on a class function\sub?

    Move struct POINTL definition to a standard module (.bas file) and make it Public.

    On a side node: This way DrawImage can even be a method of *public* class in an ActiveX DLL. It's ok as long as...
  4. Replies
    38
    Views
    2,626

    Re: Simulate TLS 1.3

    > . . . the server MUST send the change_cipher_spec

    To be compatible with TLS 1.2 middleboxes. This is when a TLS 1.3 client is running in compatibility (stealth) mode and the server must play the...
  5. Re: VB6: GDIPLUS - how change pixels colors on a faster way

    Between “I don’t know these hex values” and “Need to rotate an image fast” there is a chasm of hard mental work unfortunately.
  6. Replies
    214
    Views
    14,048

    Re: Re PlanetSourceCode

    I'll gladly add collaborators to PSC organization on github so that anyone can upload new submissions.

    Just DM me your username you use there.

    Anyone that would like upload access to PSC...
  7. Replies
    214
    Views
    14,048

    Re: Re PlanetSourceCode

    https://github.com/Planet-Source-Code -- this contains all PSC submissions from all CDs too.

    Do you find github interface intimidating?

    There are a couple of benefits not found in any other...
  8. Replies
    13
    Views
    388

    Re: Synchronous processing?

    These have troubles when run by non-admin users on Win10. Test yourself if working ok once registered on the machine by an admin.

    cheers,
    </wqw>
  9. Replies
    4
    Views
    142

    Re: Correct use CreateDirectory API

    If the user can copy the portable exe to C:\Windows\System32 then his security context must allow him to create directories there so you application will be able to as well.

    If the CreateDirectory...
  10. Re: I opened chrome using shell, how can I close all instances of open Chrome using V

    Malware kills :-))
  11. Replies
    13
    Views
    388

    Re: Synchronous processing?

    I would go with multi-process *Standard* EXE the way chrome or AnyDesk are implemented.

    For instance AnyDesk spawn multiple processes of the single portable application with parameters like...
  12. Replies
    1
    Views
    161

    Re: Call a service ("GET") via .vbs

    Find curl version with openssl support for TLS 1.2 + 1.3 that works on XP and then use shellexec to call it and access the web service.
  13. Replies
    24
    Views
    493

    Re: Different Boggle Question

    Nothing like Building a computer in Conway's game of life. . . This is mind-boggling!

    cheers,
    </wqw>
  14. Re: Flashing a warning on the taskbar REVISITED

    . . . with all internal links totally broken rendering docs next to unusable. Not suprising as most articles are last modified like in 1999.

    cheers,
    </wqw>
  15. Replies
    8
    Views
    346

    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.
    ...
  16. Replies
    8
    Views
    346

    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....
  17. 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...
  18. 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
  19. Replies
    7
    Views
    479

    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...
  20. Replies
    21
    Views
    498

    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...
  21. Replies
    21
    Views
    807

    Re: Problems with IDE and W10

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

    cheers,
    </wqw>
  22. Replies
    8
    Views
    337

    Re: Connection string for Integrated Security

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

    cheers,
    </wqw>
  23. Replies
    0
    Views
    160

    [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

    #Const SHOW_DELTA = False
    #Const...
  24. Replies
    21
    Views
    807

    Re: Problems with IDE and W10

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

    cheers,
    </wqw>
  25. 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...
  26. Replies
    13
    Views
    717

    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...
  27. Replies
    21
    Views
    807

    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...
  28. Replies
    9
    Views
    495

    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...
  29. Replies
    13
    Views
    717

    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>
  30. Replies
    13
    Views
    717

    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...
  31. 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...
  32. Replies
    9
    Views
    495

    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>
  33. 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...
  34. 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...
  35. Replies
    38
    Views
    2,626

    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>
  36. 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...
  37. Replies
    43
    Views
    1,194

    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...
  38. 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...
  39. Replies
    43
    Views
    1,194

    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
    ...
  40. Replies
    38
    Views
    2,626

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width