Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    26
    Views
    661

    Re: Some unreasonable restrictions in VB6

    Only own class private members i.e. a method (private or not) in a class is able to access private members of the same class through a reference (of the same class).

    This is the reason why...
  2. Replies
    26
    Views
    661

    Re: Some unreasonable restrictions in VB6

    It's pretty much the same. It's just that the namespaces in VB6 coincide with projects i.e. in a project you have only one namespace which is named exactly like your project.

    You cannot have...
  3. Replies
    27
    Views
    627

    Re: Thunk for a CopyMemory replacement?

    There a numerous "optimized" memcpy version floating around but Linus deliberately left their memcpy based on MOVSx, rumor says to force Intel/AMD to make MOVSx fastest in their new CPUs and not...
  4. Replies
    1
    Views
    161

    Re: WINTUN can somebody take look at this

    This is a cool piece of technology you have here.

    Btw, it will need admin privileges to install a new network adapter in Window so this cannot be done by a regular user "on a wish".

    Installing...
  5. Replies
    26
    Views
    661

    Re: Some unreasonable restrictions in VB6

    Both shortcomings of the compiler (that TB will probably fix as these are low-hanging fruits).

    Friend variables on a class is a clear omission.

    For the public constants it's more complicated as...
  6. Replies
    27
    Views
    627

    Re: Thunk for a CopyMemory replacement?

    MOVSD is like MOVSB but works on dwords. Both "move" data from ESI to EDI -- there are no registers involved except ECX which is decremented by one i.e. for MOVSD the initial ECX is number of...
  7. Replies
    27
    Views
    627

    Re: Thunk for a CopyMemory replacement?

    Besides MOVSB there are MOSVW (16-bit word transfers) and MOSVD (32-bit dword transfers) but yet faster would be to use MOVDQA i.e. SSE instruction to load 128-bit registers which can be done in...
  8. Re: Microsoft hardening DCOM, forcing packet integrity on March 14, 2023

    One of the most weird ADO connection string I've seen recently. SQLNCLI is SQL Server Native Client 9.0 OLEDB provider for MSSQL 2005 and here are some sample strings i.e. very logically using...
  9. Re: Executable compiled on Vista loads faster than compiled on XP

    Btw, it's a one time edit in your .vbp file. (You don't have to "remember" about it once it's edited.)

    cheers,
    </wqw>
  10. Re: Executable compiled on Vista loads faster than compiled on XP

    You don't need an add-in for this if you are willing to one time manually edit your .vbp file and copy/paste these two lines of undocumented LinkSwitches.

    cheers,
    </wqw>
  11. [VB6/VBA] Pure VB6 implementation of SHA-224, SHA-256, HMAC-SHA224 and HMAC-SHA256

    Deliberately does not use any API calls so is not the sharpest tool in the shed


    '--- mdSHA2.bas
    Option Explicit
    DefObj A-Z

    Private PowerOf2(0 To 31) As Long

    Private Function...
  12. Re: PNG with alpha channel into standard VB6 image control

    Works on WinXP

    cheers,
    </wqw>
  13. Replies
    7
    Views
    258

    Re: How to calculate checksum of hash string.

    Btw, here is a byte-arrays pure VB6 implementation based on your class but reduced to about 175 LOC by removing mostly unnecessary cruft:


    '--- mdSHA256.bas
    '--- Based on clsSHA256 by Phil...
  14. Replies
    7
    Views
    258

    Re: How to calculate checksum of hash string.

    Well, you can use .NET implementation of SHA-2 like this


    Private Sub Form_Click()
    Dim baInput() As Byte
    Dim baHash() As Byte

    baInput =...
  15. Replies
    7
    Views
    258

    Re: How to calculate checksum of hash string.

    For instance try putting these helper functions in a module


    '--- Module1.bas
    Option Explicit

    Private Declare Function CryptAcquireContext Lib "advapi32" Alias "CryptAcquireContextW" (phProv...
  16. Replies
    7
    Views
    258

    Re: How to calculate checksum of hash string.

    First, you have to learn how to work with byte-arrays in crypto. Your "238dbd3bd53ee4c53c505ca2b56e1756e622aa0c" is a *string* literal -- so called hex dump of a byte-array. You need helper functions...
  17. Re: Executable compiled on Vista loads faster than compiled on XP

    So you executes both .exes on the same XP machine?

    This looks like something is going on with the .exe certificate check or anti-virus check or .exe reputation check or .exe 'Zone.Id' alternative...
  18. Replies
    31
    Views
    835

    Re: Error Trapping in an Executable

    It was a certain Win 10 update which *revealed* the problem.

    I mean the dormant issue must have been there all along but did not cause any issues with previous OS versions.

    cheers,
    </wqw>
  19. Re: Create an object array with a length of zero (or UBound = -1)

    Usually it's when you append to an dynamic array you just check size and resize if needed and then assign last element If lSize > UBound(arr) Then ReDim Preserve arr(0 To lSize * 2) End If :...
  20. Re: Create an object array with a length of zero (or UBound = -1)

    Try to follow this with


    ReDim Preserve u(0 To 10) As MyUdt
    u(0).i = 42

    Second line assignment fails with resized UDT arrays but works ok with arrays of scalar (primitive) types.

    cheers,...
  21. Re: Create an object array with a length of zero (or UBound = -1)

    Tweak the SafeArrayAllocDescriptor API declare and can be used without wrapping the SA pointer into a Variant like this


    Option Explicit

    Private Declare Function SafeArrayAllocDescriptor Lib...
  22. Replies
    19
    Views
    579

    Re: Scaling Issue Somewhere

    This looks bad and metafiles stink.

    (Keeping an eye on the thread.)

    cheers,
    </wqw>
  23. Re: FYI: Scrollbar Theme Fade-in-out (breath light) feature on Win11

    Here is a direct link to PSC submission: ucScrollbar 1.0 (rv 4) by Carles P.V.

    > VBForums has a newer version

    You can post a link to it too.

    cheers,
    </wqw>
  24. Re: How do i download 5 zip at a time rather than my entire list

    When you are downloading 100 files in order to add a progress indicator (% complete) of the overall download operation you have to know file sizes of each of these downloads so that you can compute...
  25. Re: How do i download 5 zip at a time rather than my entire list

    Here is a cDownloader class which wraps WinHttpRequest object and can download asynchronously to a local file. Needs a project reference to Microsoft WinHTTP Services, version 5.1 to compile.

    ...
  26. Replies
    31
    Views
    835

    Re: Error Trapping in an Executable

    Mostly yes, unless you have RaiseEvent Click() in a routine in which case any error in the event handler(s) for your class/control Click event does not trap in your current error handler but the...
  27. Replies
    31
    Views
    835

    Re: Error Trapping in an Executable

    Do what every professional piece of code happens to do eventually -- instrument logging error handlers in each and every routine in each and every module of your application.

    In production you...
  28. Replies
    7
    Views
    247

    Re: [RESOLVED] match string and if not

    I have couple of unasked advices for you:

    1. Learn to separate data (so called model) from your UI (so called view)

    In your case you have various lists control (List1, List4, etc.) which are...
  29. Re: VB6-alike IDE - Has anyone ever created any IDE similar?

    You got him triggered now and how dare you not be interested in VFB -- the best chinese copycat of VB6 ever -- so the cannonade of illegible posts is going to thunder here a couple of days at least...
  30. Replies
    15
    Views
    27,966

    Re: Send Mail from VB6 No Controls - using Gmail

    I can only advise you to start a new thread outside of CodeBank forum with a simplified version your failing send mail under Win7.

    Post a full working code which has trouble with CDO under Win7 in...
  31. Replies
    7
    Views
    254

    Re: GDI+ image to EMF (both with alpha)

    Wait. . . Is EMF+ compatible with GDI and/or IPicture?

    I though that EMR_ALPHABLEND is just the macro/playback record for AlphaBlend API function call as recorded by the capturing DC.

    So it...
  32. Re: Good Programming Practice: About "ByVal MyObject"

    Now that would be hilarious. . . Really?!

    cheers,
    </wqw>
  33. Replies
    15
    Views
    27,966

    Re: Send Mail from VB6 No Controls - using Gmail

    On the machine you have troubles start Internet Explorer (not Edge) and navigate to https://www.howsmyssl.com/ and notice info under Version section.

    It says TLS 1.2 here but I have Service Pack 1...
  34. Replies
    15
    Views
    27,966

    Re: Send Mail from VB6 No Controls - using Gmail

    CDO and IE use Schannel library for TLS and you can configure default Schannel protocols/ciphers through registry so an app using default settings can be forced to use or not to use TLS 1.2 for...
  35. Re: transfer user-defined data types between apps

    It says "Standard EXE project" pretending to be an ActiveX EXE by sharing instances through OBJREF monikers i.e. without registering class factories in registry and ROT like an Ax-EXE does.
    ...
  36. Replies
    24
    Views
    568

    Re: [RESOLVED] Last Class to Go

    > not sure why people are not using it

    This is a million $ question -- why in these forums only baka uses Direct2D and everyone else runs for GDI+ when loading PNGs or anything remotely graphical...
  37. Re: Good Programming Practice: About "ByVal MyObject"

    ByVal vs ByRef for reference types (As Object) has a completely different semantics than ByVal vs ByRef for value types (Long, Double, *String*, UDT, etc.) For reference types (a.k.a. pointers) the...
  38. Replies
    15
    Views
    27,966

    Re: Send Mail from VB6 No Controls - using Gmail

    This is probably configuration problem with TLS version being supported by Schannel. Try to configure Win7 to support TLS 1.2 by default.

    Note that you have to have Service Pack 1 for Win7...
  39. Re: Len vs LenB for specifying API structure lengths, and internal vs end padding

    > And lets be real here, do we really want to start manually padding our structures just to get Len to work?

    Been there done that. Now I realize that this was only to *force* Len to return correct...
  40. Replies
    24
    Views
    568

    Re: [RESOLVED] Last Class to Go

    You probably saw what AlphaBlendImage does.

    I'm begging every VB6 dev doing GDI+ please initialize GDI+ on demand but don't try to shut it down at all. Please!

    It's 2022 and there is no need to...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width