Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.44 seconds.

  1. Re: Connecting to MySQL with SSH Tunnel? Would this be a good/secure workaround?

    In sshd_config you have to use ForceCommand to disable shell for instance something like this


    Match Group sshusers
    ForceCommand /bin/false
    . . .
    . . . where sshusers above is a...
  2. Thread: pcode internals

    by wqweto
    Replies
    13
    Views
    945

    Re: pcode internals

    This is like assuming that VB's IR (Intermediate Representation) can be the same as some Pascal (or any other) compiler's IR. This might happen if both compilers are from the same vendor or both use...
  3. Thread: HTTP/3 c/w QUIC

    by wqweto
    Replies
    1
    Views
    101

    Re: HTTP/3 c/w QUIC

    I'm not sure they will have these ready before accepting the final drafts as RFCs. Note that QUIC works like TCP on transport level with built-in TLS.
    ...
  4. Replies
    52
    Views
    2,388

    Re: Introducing MixLangz a Visual IDE

    My Pascal is very poor :-))

    cheers,
    </wqw>
  5. Re: Instantiate internal class object with name in string

    Valuable but not actionable IMO.

    If you are going to produce a type library with so much intricate info at run-time then you might as well just fill a Collection with keys on procedure names and...
  6. Replies
    5
    Views
    222

    Re: Spin transparent image

    AlphaBlendImage control has Rotation propertiy (in degrees).

    The right-click handling you have to figure on your own though.

    cheers,
    </wqw>
  7. Replies
    52
    Views
    2,388

    Re: Introducing MixLangz a Visual IDE

    Just use http://mixlangz.com/downloads/MixLangz_Demo_Setup.exe

    Tell us what you think about it here, please. I'm not willing to install this even on a VM.

    Btw, this lousy strategy of...
  8. Replies
    6
    Views
    181

    Re: Out of space for uploads

    This would be wise thing to do for several reason, space limit is one of them.

    Are zip files/projects which are uploaded here sucessfully mirrored on web.archive.org for posterity or their crawler...
  9. Re: Asynchronous Beep by vb6(NtDeviceIoControlFile)

    Sleep API is not used in the original code and the declare can be safely removed as there is no need for any delay in the original code but this dead declare uses space in the output executable.
    ...
  10. Replies
    1
    Views
    114

    VS 2015 Re: Selecting cyphers for TLS 1.2

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

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

    You can ask in some chinese forums.

    cheers,
    </wqw>
  12. Replies
    106
    Views
    12,279

    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...
  13. Replies
    18
    Views
    476

    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>
  14. Replies
    3
    Views
    418

    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...
  15. 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.
    ...
  16. 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...
  17. 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...
  18. 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>
  19. 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>
  20. Replies
    18
    Views
    706

    Re: Is vb6 really native ?

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

    cheers,
    </wqw>
  21. Replies
    18
    Views
    706

    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...
  22. 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....
  23. Replies
    9
    Views
    359

    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.
    ...
  24. Replies
    18
    Views
    706

    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...
  25. Replies
    12
    Views
    421

    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>
  26. Thread: Vb6 - hkdf

    by wqweto
    Replies
    8
    Views
    3,053

    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>
  27. 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>
  28. Replies
    25
    Views
    13,748

    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...
  29. Replies
    17
    Views
    814

    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
    ...
  30. Re: [VB6] Simple VNC Server using DXGI Desktop Duplication

    Something like this?

    cheers,
    </wqw>
  31. 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...
  32. Replies
    4
    Views
    237

    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.
    ...
  33. 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>
  34. Replies
    2
    Views
    281

    Re: VB6 Call Web Api Winhtt 5.1

    You can try the request from command line like this


    C:\Users\wqw>curl -I...
  35. Replies
    4
    Views
    313

    Re: updating DatabaseGris from vb6

    What do you mean by "DatabaseGris"?

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

    by wqweto
    Replies
    21
    Views
    642

    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...
  37. Thread: Format a Number

    by wqweto
    Replies
    21
    Views
    642

    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>
  38. Replies
    46
    Views
    3,033

    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...
  39. Replies
    7
    Views
    535

    Re: [RESOLVED] User Control byte array problem

    Is bSend a parameter or a local variable?

    Try mClient.bOutBuffer = CVar(bSend)

    cheers,
    </wqw>
  40. Replies
    15
    Views
    660

    Re: loading VB6 onto Win10

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

    cheers,
    </wqw>
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width