Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    1
    Views
    107

    VS 2015 Re: Selecting cyphers for TLS 1.2

    You have to configure Schannel client supported ciphers in the registry.

    cheers,
    </wqw>
  2. Re: Is there a source code for VB6 resource tools?

    You can ask in some chinese forums.

    cheers,
    </wqw>
  3. Replies
    106
    Views
    12,219

    Re: Simulate TLS 1.3

    For sending or while receiving data?

    RFC 8446: "The TLS record protocol takes messages to be transmitted, fragments the data into manageable blocks, protects the records, and transmits the...
  4. Replies
    18
    Views
    449

    Re: Very Nice,Transparent user control by vb6

    Nice math!

    And it's nice you keep such non-sense to your threads only and don't skill/spam it over to other useful ones.

    cheers,
    </wqw>
  5. Replies
    3
    Views
    404

    Re: [RESOLVED] clsCrypt.cls

    Sorry for the late reply but found this in an unclosed IDE and will post this for posterity.


    Option Explicit

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination...
  6. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    You'll keep on using VBA.Split? :-)) Well, I have *never* experienced performance troubles with Split and/or Join and usually these come handy for speed improvement as implemented by stock runtime.
    ...
  7. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    No, they don't. . . have you tried using memory mapped files at all? It's not aimed at speed but at convenience for C/C++ developers. Using mmap from VB6 it's neither convenient nor faster *and* has...
  8. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    No, you cannot do this in VB6. A String variable is always allocated from the string heap with SysAllocXxx function and deallocated with SysFreeString function. Only string literals can do this trick...
  9. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    Nothing is "directly bound" and string splitting still happens, I'm 132% positive. You don't see it but the file is split into multiple BSTRs by the runtime anyway.

    cheers,
    </wqw>
  10. Re: vb6 Fast ReadLine,QuickSplit(Like streamReader.ReadLine)

    Which year is this? 1968?

    https://www.vbforums.com/images/ieimages/2021/04/18.png

    JFYI, with NVMe storage you get *GB* per second!

    cheers,
    </wqw>
  11. Replies
    18
    Views
    704

    Re: Is vb6 really native ?

    It defaults to Native with Optimize for Fast Code option and no Advanced Optimizations.

    cheers,
    </wqw>
  12. Replies
    18
    Views
    704

    Re: Is vb6 really native ?

    “Form_Load” literal is probably used by error handling. Bet you would find “main” in C/C++ binary or any function with some kind of error handling which uses __FUNCTION__ built-in constant. Whatever...
  13. Re: run js on Webbrowser1 by vb6,webBrowser1.Document.InvokeScript

    Try


    Dim a As Object
    Set a = ...

    Edit: CodeBank section is for sample code not for questions. You've been posting questions (and other non-sense) to CodeBank section since couple of months....
  14. Replies
    9
    Views
    352

    Re: Vb6 List folder and icons into a listbox

    Btw, Windows 1.0 listbox does not have icons because it's hard to do it with a listbox control.

    You might need a listview control (notice the difference box vs view) to use icons in the list.
    ...
  15. Replies
    18
    Views
    704

    Re: Is vb6 really native ?

    No, it's the same in C/C++

    When you compile something like printf("%s\n", "IT IS CLEAR VISIBLE"); you can find the string literal with hex editor in the compiled executable just the same.

    Why...
  16. Replies
    12
    Views
    417

    Re: GetFileSize - What is the best code?

    Just don't *ever* use this UniCodePtr function implementation. This is a disaster waiting to happen.

    cheers,
    </wqw>
  17. Thread: Vb6 - hkdf

    by wqweto
    Replies
    8
    Views
    3,035

    Re: Vb6 - hkdf

    No, this has nothing to do with HKDF.

    Start a new thread with a proper subject (not in CodeBank) and I'll show you how to decrypt AES-GCM in VB6.

    cheers,
    </wqw>
  18. Re: imitate windows 1.0 graphical interface with VB6

    Try the normal ListBox control, it has Columns property.

    You'll have to populate it with files and folders and implement navigation though.

    cheers,
    </wqw>
  19. Replies
    25
    Views
    13,729

    Re: StreamReader in VB6?

    How about this one


    Option Explicit

    Private Declare Function SHCreateStreamOnFile Lib "shlwapi" Alias "SHCreateStreamOnFileW" (ByVal pszFile As Long, ByVal grfMode As Long, ppstm As...
  20. Replies
    17
    Views
    797

    Re: How much memory is taken up by an array?

    There is no strict definition of "memory used by a process" but the closes is so called WorkingSet size (or private bytes in Task Manager) which can be retrieved like this


    Option Explicit
    ...
  21. Re: [VB6] Simple VNC Server using DXGI Desktop Duplication

    Something like this?

    cheers,
    </wqw>
  22. Re: Using registry to determine Window's OS name, any downside?

    Try this


    Option Explicit

    Private Declare Function RtlGetVersion Lib "ntdll" (lpVersionInformation As Any) As Long

    Private Sub Form_Load()
    If RealOsVersion = 1000 Then
    MsgBox...
  23. Replies
    4
    Views
    232

    Re: declaring variables and not using them

    It will surely not affect final executable in any way (will be optimized away) but allowing code rot early in the project lifetime will be the root to more problems further in time.
    ...
  24. Re: VB6 Office ribbon Activex Control,ribbon Ocx

    Yes, and OP says this in "Download Game PC indonesia *RIP*" it seems.

    He either is searching for a download link or is lamenting the dead of the site.

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

    Re: VB6 Call Web Api Winhtt 5.1

    You can try the request from command line like this


    C:\Users\wqw>curl -I...
  26. Replies
    4
    Views
    305

    Re: updating DatabaseGris from vb6

    What do you mean by "DatabaseGris"?

    cheers,
    </wqw>
  27. Thread: Format a Number

    by wqweto
    Replies
    21
    Views
    633

    Re: Format a Number

    Nice!

    TryCDbl is a good name too.

    In some project one might put a rudimentary expression parser in such TryCDbl too so that power users would get really suprised when entering "2+3+4" and it...
  28. Thread: Format a Number

    by wqweto
    Replies
    21
    Views
    633

    Re: Format a Number

    Also note that CDbl and most other conversions will fail with trappable error is someone enters "goat" in first textbox.

    cheers,
    </wqw>
  29. Replies
    46
    Views
    2,958

    Re: This forum is why VB6 is still usable today

    Allocation being involved explains very much the slowdown.

    Meanwhile the whole if (__vbaGosub() != 0) { /* return goes here */ } shenanigans look like someone with experience in setjmp() and...
  30. Replies
    7
    Views
    528

    Re: [RESOLVED] User Control byte array problem

    Is bSend a parameter or a local variable?

    Try mClient.bOutBuffer = CVar(bSend)

    cheers,
    </wqw>
  31. Replies
    15
    Views
    654

    Re: loading VB6 onto Win10

    It's an Add-In so just disable "Source Code Control" to get rid of it.

    cheers,
    </wqw>
  32. Replies
    46
    Views
    2,958

    Re: This forum is why VB6 is still usable today

    It looks like __vbaGosub would need to implement a local calling stack (parallel to system stack) which is scoped on current procedure only so the book-keeping has quite a bit of overhead in native....
  33. Replies
    17
    Views
    797

    Re: How much memory is taken up by an array?

    The heap fragmentation discussed here is per process so restarting the process usually "levels the field".

    On startup each process is granted a 4GB flat virtual address space which has some parts...
  34. Replies
    46
    Views
    2,958

    Re: This forum is why VB6 is still usable today

    Removing GoSub probably means twinBasic has some clever ideas to borrow from Pascal/Delphi about nested procedures, who knows. . . :-))

    cheers,
    </wqw>
  35. Replies
    9
    Views
    411

    Re: Access VB6 object from another class

    Put the Public Basket As New CBasket declaration in Module1 (a standard .bas module, not a class). This is called a global variable. Now your Basket is available in every class, form or module in...
  36. Thread: Format a Number

    by wqweto
    Replies
    21
    Views
    633

    Re: Format a Number

    Nice!

    Count of # past floating point *do* have meaning i.e. "#,0.00##" always formats two digits past floating point and optionally two more if non-zero i.e. # and 0 after floating point act more...
  37. Replies
    15
    Views
    654

    Re: loading VB6 onto Win10

    Troubleshooting VB6 installation problems in these forums here is like when some relatives ask you to fix their printer -- never fun and always vexing devs to no end :-))

    Yes, you might need to...
  38. Re: [VB6] Simple VNC Server using DXGI Desktop Duplication

    https://github.com/wqweto/VbVncServer/releases

    All features complete!

    cheers,
    </wqw>
  39. Re: Allow users to build WHERE clauses

    sp_executesql is all lower-case. Don’t get bitten by case-sensitive MSSQL instances because of wrong system names casing (like sysname data-type is all lower-case too).
  40. Replies
    4
    Views
    334

    Re: [RESOLVED] CallByName in modules

    You need a Collection of AddressOf pfns keyed on procedure name as string and DispCallFunc which might be more expensive than a giant Select Case statement in the end.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width