Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. 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...
  2. 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>
  3. 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>
  4. [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...
  5. Re: PNG with alpha channel into standard VB6 image control

    Works on WinXP

    cheers,
    </wqw>
  6. Replies
    7
    Views
    225

    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...
  7. Replies
    7
    Views
    225

    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 =...
  8. Replies
    7
    Views
    225

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

    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...
  10. 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...
  11. Replies
    30
    Views
    734

    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>
  12. 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 :...
  13. 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,...
  14. 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...
  15. Replies
    19
    Views
    548

    Re: Scaling Issue Somewhere

    This looks bad and metafiles stink.

    (Keeping an eye on the thread.)

    cheers,
    </wqw>
  16. 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>
  17. 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...
  18. 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.

    ...
  19. Replies
    30
    Views
    734

    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...
  20. Replies
    30
    Views
    734

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

    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...
  22. 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...
  23. Replies
    15
    Views
    27,913

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

    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...
  25. Re: Good Programming Practice: About "ByVal MyObject"

    Now that would be hilarious. . . Really?!

    cheers,
    </wqw>
  26. Replies
    15
    Views
    27,913

    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...
  27. Replies
    15
    Views
    27,913

    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...
  28. 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.
    ...
  29. Replies
    24
    Views
    543

    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...
  30. 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...
  31. Replies
    15
    Views
    27,913

    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...
  32. 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...
  33. Replies
    24
    Views
    543

    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...
  34. Replies
    4
    Views
    163

    Re: match crc in zip with xml dat

    No, I'm not working on any assignments by request in these forums.

    Here is a direct link to the raw version of the source file:...
  35. Replies
    4
    Views
    163

    Re: match crc in zip with xml dat

    I just added cZipArchive.cls and pasted this code in Form1


    Option Explicit

    Private Sub Form_Click()
    Const IDX_NAME As Long = 0
    Const IDX_CRC32 As Long = 2
    Dim lIdx ...
  36. Re: Len vs LenB for specifying API structure lengths, and internal vs end padding

    > But take care of something: use even character counts, not uneven.

    Why is that? What's the problem with odd count and Len? Wrong padding?

    Nevertheless it seems Len was evil back in olden...
  37. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    Dilletanteís understanding corresponds to reality. Using pixels with controls/forms/images/icons positions and/or sizes shrinks the app interface when forms are repositioned to a high resolution...
  38. Re: Len vs LenB for specifying API structure lengths, and internal vs end padding

    Itís official: Len is the evil twin (not LenB)
  39. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    For Per Monitor DPI awareness you'll have to use SetProcessDpiAwareness instead which is a Win8.1+ API so might need OERN.

    This will most probably fix the single-pixel line getting blurry but will...
  40. Re: Len vs LenB for specifying API structure lengths, and internal vs end padding

    Frankly Iím sick and tired of both. Cannot remember but I think LenB was the evil twin esp. with byte-arrays.

    With byte-arrays in UDT passing ByVal VarPtr(uData) prevents ANSI transcoding which...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width