Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    52
    Views
    1,237

    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...
  2. Replies
    52
    Views
    1,237

    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.
    ...
  3. Replies
    52
    Views
    1,237

    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...
  4. Replies
    15
    Views
    457

    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...
  5. Replies
    11
    Views
    332

    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...
  6. 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...
  7. 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...
  8. Replies
    80
    Views
    18,172

    Re: Planet Source Code Jumbo Resource CDs

    I would be interested in the link too.

    TIA,
    </wqw>
  9. Replies
    4
    Views
    160

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

    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...
  11. 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...
  12. Replies
    6
    Views
    358

    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"...
  13. 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>
  14. 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...
  15. Replies
    9
    Views
    622

    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>
  16. 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...
  17. 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>
  18. 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?
  19. Replies
    4
    Views
    322

    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>
  20. 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
    ...
  21. 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.
  22. Replies
    6
    Views
    398

    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”...
  23. Re: What does err.lastdllerror 87 mean after OpenProcess(PROCESS_QUERY_LIMITED_INFORM

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

    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"?...
  25. 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.
    ...
  26. Replies
    45
    Views
    1,541

    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>
  27. Replies
    45
    Views
    1,541

    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...
  28. Replies
    45
    Views
    1,541

    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)...
  29. Replies
    45
    Views
    1,541

    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...
  30. 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...
  31. 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>
  32. Re: Compiling a .vbp program to an .exe application

    OP can start by searching sources for "Unexplained error" string for instance.

    cheers,
    </wqw>
  33. Re: Write to Console handling >OutputFile

    The secret it to check if GetStdHandle(STD_OUTPUT_HANDLE) returns a true file handle i.e. if the output is redirected.

    Only if the output is *not* redirected then...
  34. Re: Write to Console handling >OutputFile

    No, it's impossible to make it work as intended reliably. It looks like it's working but it does completely different thing than a pure console application.

    Last time I tried to do what you want...
  35. Replies
    12
    Views
    629

    Re: Early Binding vs. Late Binding

    Check this out


    'Early Binding!
    Dim ct1 As ADOX.Catalog
    Set ct1 = New ADOX.Catalog

    Dim ct2 As ADOX.Catalog
    Set ct2 = CreateObject("ADOX.Catalog")
  36. Re: I need help with turning an If statement to a select case statement

    VB's Rnd is not very good PRNG, it's more on the side of the worse ones. The PRNG repeats after 65536 generations (or was it 32768?) not billions, so the generally the algorithm is weak and dated but...
  37. Thread: pcode internals

    by wqweto
    Replies
    27
    Views
    2,977

    Re: pcode internals

    Cannot hide how *glad* I am this does not work!

    You don't expect me to debug it for your next ransomware, do you?

    cheers,
    </wqw>
  38. Re: RC6.Collection And RC6.HashD (Simuate C# Dictionary)

    Using New_c.Dictionary(vbLong, vbLong) instead of New_c.Dictionary<Long, Long> has many performance disadvantages. What you can do is called manual specialization i.e. manually implement...
  39. Replies
    30
    Views
    1,192

    Re: VB6 and Access Database

    In Help->About search for some graphics that say "SP6" in plain text

    cheers,
    </wqw>
  40. Replies
    28
    Views
    1,284

    Re: [RESOLVED] Select case with >

    +100
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width