Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: [VBA]: Regular Expression Pattern: Replace & ignore line feeds

    Try adding \r\n inside [ ] to skip new lines (and carriage returns)
  2. Re: [RESOLVED] Sending a POST login request with WinHTTP

    Oh, I see what's going on.

    The login page you are accessing implements Post/Redirect/Get pattern and you need the *actual* 302 response body from the POST for some reason (should be empty but not...
  3. Re: Sending a POST login request with WinHTTP

    Doubt WinHttpRequest sends (or understands) HTTP/2 requests.

    Btw, option WinHttpRequestOption_EnableRedirects is True by default (no need to set it).

    There is option...
  4. Re: Code in Form vs code in Module ? Why one more the other ?

    It must be the same as the "The calling code when you call the Public function in an object module from a standard module" above.

    cheers,
    </wqw>
  5. Re: Sending a POST login request with WinHTTP

    Try enabling TLS 1.2 protocol (and TLS 1.1) with this


    httpReq.Option(WinHttpRequestOption_SecureProtocols) = SecureProtocol_ALL Or SecureProtocol_TLS1_1 Or SecureProtocol_TLS1_2
    Using...
  6. Replies
    6
    Views
    277

    Re: ntohs not working?

    What exact Declare do you use for ntohs API?

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

    Re: ntohs not working?

    The vbnet sample works ok on Win7 but is still buggy the same.

    The trouble with ntohs result data-type is that it's not As Long but it's not As Integer too because it's unsigned 16-bit value....
  8. Re: [RESOLVED] Simulate C# "private static" in VB6 (Organization of VB6 Sourc

    The world is moving forward from OOP "purist" design decisions like removing global functions and retrofitting these as static methods on a class.

    So now top-level statements in C# try to remedy...
  9. Re: Simulate C# "private static" in VB6 (Organization of VB6 Source Code)

    Removing a feature (namely standard modules) is a devolution IMO and Java was the first weirdo which lacked global functions and then C# blindly copied the design with no second thought being fancy...
  10. Replies
    52
    Views
    1,373

    Re: [RESOLVED] VB.Variant vs C#.Object

    I'm positive they do.

    There are subtle differences with intrinsics though e.g. you cannot do CLng(AddressOf MyProc) while VBA.CLng(AddressOf MyProc) compiles fine.

    Btw, in "normal" calling...
  11. Replies
    52
    Views
    1,373

    Re: [RESOLVED] VB.Variant vs C#.Object

    This is the point of the compiler "hijacking" certain functions -- it can codegen more optimal implementation based on parameters/expected result data-types so no Variant conversion happens at all.
    ...
  12. Replies
    52
    Views
    1,373

    Re: [RESOLVED] VB.Variant vs C#.Object

    Btw, this is the biggest lie the compiler makes you believe in. Int is an intrinsic and has nothing to with VBA.Int as its implemented as a direct call to runtime impl (one or several exports of...
  13. Replies
    15
    Views
    497

    Re: CreateIcon vs GDI Scaling

    Definitely looks like a bug in CreateIconIndirect.

    In manifested IDE "CreateIcon vs GDI Scaling" sample works fine while compiled the hIcon seems to be 2x zoomed although I'm using 125% system...
  14. Replies
    11
    Views
    367

    Re: sqlcmd command not found server ?

    This is not so simple to solve. Apparently there is something wrong with sqlcmd (probably a bug) which is exhibited sporadically. I'm currently unable to make it work on my machine for the life of...
  15. Re: Clarity on the method to secure "remember my password" feature similar to SQL Ser

    Then you might want to try to reverse SSMS (or Skype) authentication dialogs or work with some monitoring tools (regmon, etc.) to reverse behavior.

    Edit: Btw, here is a simple encryption impl...
  16. Re: Clarity on the method to secure "remember my password" feature similar to SQL Ser

    There is no "SQLServer's methodology". Your screenshot is from SSMS logon dialog. This is a client tool which currently is developed outside main SQL Server development. One is written in C# while...
  17. Replies
    80
    Views
    18,355

    Re: Planet Source Code Jumbo Resource CDs

    I would be interested in the link too.

    TIA,
    </wqw>
  18. Replies
    4
    Views
    179

    Re: Save Image to Database TSQL issue

    Btw, the name of the single column in OPENROWSET resultset is "BulkColumn" if you want to be explicit instead of using img.*

    cheers,
    </wqw>
  19. Replies
    11
    Views
    367

    Re: sqlcmd command not found server ?

    Try allowing inbound traffic (UDP and TCP) on C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe in firewall if not already enabled.

    SQL Server instance discovery happens with...
  20. Re: [VB6/VBA] Simple AES 256-bit password protected encryption

    Here you go


    '--- mdBinaryFile.bas
    Option Explicit

    #Const HasPtrSafe = (VBA7 <> 0) Or (TWINBASIC <> 0)

    #If HasPtrSafe Then
    Private Declare PtrSafe Function DeleteFile Lib "kernel32" Alias...
  21. Replies
    6
    Views
    394

    Re: [RESOLVED] Weird property assignment error

    I usually resort to underscore suffix with Line_ in cases like this, so things get ugly really fast with Close_, Open_ and Dim sTop_ As String because Stop is reserved keyword but I need some "top"...
  22. Re: NVMe SSD manufacturer serial number (not volume serial number) using VB6

    Completely forgot about Debug.Assert fix.

    Btw, the Not Not MyArray compiler hack is emulated in TB with exactly the same semantics (i.e. GetMem4 of ArrPtr of MyArray)

    cheers,
    </wqw>
  23. Re: NVMe SSD manufacturer serial number (not volume serial number) using VB6

    I thought that using Not Not MyArray hack (compiler allowing Not operator on arrays) leads to Expression too complex errors at some point during process lifetime.

    This issue might be resolved I'm...
  24. Replies
    9
    Views
    655

    Re: Method '~' of object '~' failed

    Try renaming C:\Program Files (x86)\Microsoft Visual Studio\VB98\DATAVIEW.DLL to something else.

    There is no other way to disable Data View add-in from loading on startup.

    cheers,
    </wqw>
  25. Re: [RESOLVED] Fast and proper way to get the file name and folder part from a full p

    Didn't know there are troubles with pointers arithmetic in other languages.

    Now on second thought obviously pointers (i.e. char *) should be incr/decr in unsigned fashion (or signed with silent...
  26. Re: NVMe SSD manufacturer serial number (not volume serial number) using VB6

    Btw, the Not Not bLocalData hack for ArrPtr impl seems dangerous.

    cheers,
    </wqw>
  27. Re: [RESOLVED] Fast and proper way to get the file name and folder part from a full p

    Curious if you found any problems with runtime operations while testing such AllocationPreference on a LAA flagged VB6 compiled process? Is the pain real?
  28. Replies
    4
    Views
    342

    Re: VB6 - Group Methods

    MZ-Tools has a decent linter under Review Source Code menu option which flags unused routines (esp. if scoped as private) and variables/constants/enums/API declares.

    cheers,
    </wqw>
  29. Re: How do I allow subclassing messages to occur during Do Loop without using DoEvent

    Should be possible with something similar to


    Dim c As Long

    Do
    c = c + 1
    If PeekMessage(uMsg, 0, WM_DRAWCLIPBOARD, WM_DRAWCLIPBOARD, PM_NOREMOVE) <> 0 Then
    ...
  30. Re: NVMe SSD manufacturer serial number (not volume serial number) using VB6

    The simple fact that this lists drive letters hints this probably is drive *volume* serial and has nothing to do with physical disk serial.
  31. Replies
    6
    Views
    409

    Re: Digital Certificates

    Yes, I’ve been through the same procedure to receive a PFX (or P12) file. PFX files are container files (like AVI) so you get your “leaf” certificate, intermediary certificates and your “leaf”...
  32. Re: What does err.lastdllerror 87 mean after OpenProcess(PROCESS_QUERY_LIMITED_INFORM

    Start Command Prompt and type “net helpmsg 87” without the quotes.
  33. Replies
    6
    Views
    409

    Re: Digital Certificates

    You just need openssl.exe to do everything with certificates on Linux and almost everything on Windows so no need for any sketchy tools IMO.

    What part of IE you use to "apply for new certificate"?...
  34. Re: [RESOLVED] Issue using Get to load in a large (142MB) file

    Btw, here is a mdStreamSupport.bas helper modile which supports byte-arrays based chunked I/O on files through IStream interface.

    Works with files above 2GB in size and with long filenames too.
    ...
  35. Replies
    45
    Views
    1,612

    Re: Faster ByteArray search/loop

    Of course we should obligatory mention Boyer–Moore string-search algorithm which has the potential to obliterate any naive loop approach be it in ASM or not.

    cheers,
    </wqw>
  36. Replies
    45
    Views
    1,612

    Re: Faster ByteArray search/loop

    I'm always wary of casting byte-arrays to strings after all those couttsj horror threads with byte-arrays-in-strings gone wrong :-))

    What if these byte-arrays being compared are odd sized? Will it...
  37. Replies
    45
    Views
    1,612

    Re: Faster ByteArray search/loop

    Yes, in practice the performance is not so abysmal. For instance I use InStrB for byte-arrays equality comparison like this


    Private Function pvArrayEqual(baFirst() As Byte, baSecond() As Byte)...
  38. Replies
    45
    Views
    1,612

    Re: Faster ByteArray search/loop

    InStr is an intrinsic and it does not compile to a call to VBA.InStr (unless you explicitly use VBA.InStr in your code). InStr calls __vbaInStr export of MSVBVM60.DLL directly.

    Here is some...
  39. Re: Get list of files and folders that changed after certain moment

    Btw, voidtool's Everything has an API (custom hWnd messages) which can be used to query it's index. There is also a command-line tool to perform queries.

    Another option is to implement an MFT...
  40. Re: Make a simple and efficient typelib generation tool

    And there is a mirror of the book's original site at http://powervb.mvps.org/

    Unfortunately EditTLB works on XP/Win2003 only as far as I can remember.

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



Click Here to Expand Forum to Full Width