Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: How do you capture the ouput of a cast aes decrypt from MySQL in vb6? field name?

    1. You can name/rename columns in SQL like this: SELECT myuser AS OtherName, case(...) AS SecondColumn FROM ...

    2. In ADODB.Recordset you can access Fields by key or by *ordinal* like this:...
  2. Replies
    2
    Views
    156

    Re: VB6/Exiftool command line problem

    Shell command will not be enough in your case.

    Check out this previous thread on how to batch requests to exiftool:...
  3. Re: Ask: The correct way to create an ActiveX DLL

    With ActiveX DLL in VB6 you *don't* have to do any hacks as there is no "entry point problem" at all. You just add classes to your project and put GetFileText, GetFileBinary, GetFileBinaryB as...
  4. Re: Ask: The correct way to create an ActiveX DLL

    Are you creating Standard DLL?

    ActiveX DLL is the "regular" type of DLL that VB6 can create without any of the troubles you have gone through.

    Edit: Btw, what does "Ask" prefix in the title...
  5. Re: [RESOLVED] problem with line input on a file, it never sees line by line, loads e

    > For some reason today, the speed of the subroutine is now just 15 seconds, on this old desktop, for 7300 records, go figure.

    You do realize how ridiculously slow this is? 7300 records are how...
  6. Re: Parsing a String to Obtain a Discontinuous Print Range

    Try this

    Private Sub Form_Load()
    Const PageRange = "1-b"
    Dim vElem As Variant
    Dim oPages As Collection
    Dim sError As String

    Set oPages =...
  7. Re: Parsing a String to Obtain a Discontinuous Print Range

    Btw, after calling TokenizePages when having Error output parameter populated it's up to you to discard any results of the procedure and show this error message or show a warning with "Do you want to...
  8. Re: Parsing a String to Obtain a Discontinuous Print Range

    This is not worth it. Handling wrong input requires extra code. Just treat "1to3:9~7" as pages "1 3 9 7" the way it currently does and leave users be creative with input. Is it any inconvenient?
    ...
  9. Replies
    11
    Views
    1,241

    Re: thinBasic as embedded script language

    Needs registration on their forum.
  10. Re: [VB6/VBA/twinBASIC] The quickest way to the real Windows version: KUSER_SHARED_DA

    Been there, done that, should've used If dwMajor > 10 Or (dwMajor = 10 And dwBuild >= 17763) Then

    cheers,
    </wqw>
  11. Replies
    60
    Views
    1,808

    Re: Adding a huge number of records to a MariaDB

    DuckDB as the New jq

    And it even understands pretty complex/modern SQL, probably Postgres syntax compatible. . .


    c:> duckdb -c "SELECT LEFT(rootDOmain, 1) AS Prefix, COUNT(*) As NumDomains,...
  12. Re: Problem VB6 connecting to a webservice with TLS 1.2

    Yes, your SOAP request is wrong and the endpoint URL is wrong too (cannot possibly be https://testitd.firstdata.com/ITDService?singlewsdl).

    Just use Soap UI to dump its request details -- endpoint...
  13. Re: Problem VB6 connecting to a webservice with TLS 1.2

    Your SOAP request is wrong.

    This problem has nothing to do with TLS.

    Post here how you make the request, post your code which calls methods on cHttpRequest. Don't post random responses from...
  14. Replies
    2
    Views
    240

    Re: Http Request Replacement Ax-DLL project

    It says "Unauthorized Request Blocked" which means that you have to supply username + password of some kind OR access token for the service. This error has little to do with TLS and/or Http Request...
  15. Re: [VB6/VBA/twinBASIC] The quickest way to the real Windows version: KUSER_SHARED_DA

    I'm interested in build 20348 for Windows Server 2022 too, which has the earliest Schannel version with functional TLS 1.3 support :-))

    Well, the prefix remains from when I copy/paste my company...
  16. Re: Challenge: Which Device Used for Entry | VB6

    Did you try the linked UsbBarcodeScanner project above? It works here every time with cheap 10$ RFID readers.

    It works like a charm with barcode scanners too, we've been using this in our LOB...
  17. Re: [VB6/VBA/twinBASIC] The quickest way to the real Windows version: KUSER_SHARED_DA

    Wicked! Here is a single API call impl


    Dim aBuffer(0 To 4) As Long
    Call CopyMemory(aBuffer(0), ByVal &H7FFE0260, 20)
    Debug.Print aBuffer(3) & "." & aBuffer(4) & "." & aBuffer(0)
    ...
  18. Re: [VB6/VBA/twinBASIC] The quickest way to the real Windows version: KUSER_SHARED_DA

    Didn't test it but the fixed address is halfway through address space and looks weird for LAA process.

    cheers,
    </wqw>
  19. Replies
    9
    Views
    6,535

    Re: Final Grade Calculator

    You do realize that Case 80 to 89.999 after Case 90 to 100 is unnecessary complication with all the digits after the floating point which OP introduced out of pure cluelessness.

    Just use Case 80...
  20. Re: SSTab and a Picturebox, it makes me crazy !!!

    I used to use Frames but nowadays prefer PictureBox with TabStop=False -- it seems more "standard" control.

    @Couin: I've been wrestling with SSTab misbehaviors a lot and the easiest, most...
  21. Re: App works fine in the IDE, closes unexpectly in runtime mode

    Error handlers (EH) in subs/functions do not prevent app from closing, do not prevent runtime showing standard error message and terminating the process.

    It is EH in *event handlers* which are...
  22. Re: [VB6/VBA/twinBASIC] The quickest way to the real Windows version: KUSER_SHARED_DA

    Did you check LARGEADDRESSAWARE processes?

    cheers,
    </wqw>
  23. Replies
    5
    Views
    421

    Re: UserControl Issues

    First you have to realize that when you have Dim oCtl As MyControl or MyProcedure(oCtl As MyControl) the MyControl type is not your user-control but a frankenstein of an amalgamation from your...
  24. Re: App works fine in the IDE, closes unexpectly in runtime mode

    No, that would be dangerous. I would prefer to implement error handling on all event handlers in the app and not rely on runtime error dialog for anything. It's mind boggling to let your app close in...
  25. Re: App works fine in the IDE, closes unexpectly in runtime mode

    When you don't have an error handler in event handlers of a form the runtime shows a standard error message and terminates the process. Unfortunately on showing this modal dialog it fires Resize...
  26. Re: Winsock - Connection is forcefully rejected (10061)

    Add both controls, don't set any property at design-time and try this echo server i.e. just repeats what is sent to it


    Option Explicit

    Private Sub Form_Load()
    With wskServer
    ...
  27. Re: Winsock - Connection is forcefully rejected (10061)

    No problem. Just use two Winsock controls for your server -- wskServer and wskAccepted -- and do this


    Private Sub wskServer_ConnectionRequest(ByVal requestID As Long)

    If...
  28. Replies
    69
    Views
    19,981

    Re: [VB6/VBA] QR Code generator library

    The QR barcode image is generated to a vector picture.

    Try using C:\Share\1.emf or 1.wmf for target filename.
  29. Re: Winsock: "Connection is forcefully rejected" error

    The server implementation in this thread is bonkers. You don’t accept incomming connections on the listening socket they do.

    Better start a new thread titled “How to write simple TCP server using...
  30. Re: [RESOLVED] Trying to make an app portable using SxS but ending up with an entry i

    Yes, this is result of aggresive manifest caching by the OS. You have to modify/recompile the EXE to invalidate the cache or use touch.exe utility to just change its last modified timestamp to...
  31. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    He never fiddles with colors (or bitmaps) but activates and deactivates particular themes using these APIs:


    Private Declare Function SetWindowTheme Lib "uxtheme" (ByVal hWnd As Long, ByVal...
  32. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    That's because you need comInterfaceExternalProxyStub entries for mutli-threading only, more precisely for cross-appartment marshalling support, so no need to bloat the manifest if not needed. (Btw,...
  33. Re: Question: How to pack files xml with the format TAR in Visual Basic 6??

    Try If .Extract(App.Path & "\Unpacked") Then MsgBox "Success"

    The same for If .CompressArchive("d:\temp\test.tar.gz") Then ...

    cheers,
    </wqw>
  34. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    > As an additional precaution, would it be worth the trouble to change their file extension as well?

    Yes, if in source .frm file the OCX is referenced/known as MSFLXGRD.OCX then it's COM server...
  35. Re: Trying to make an app portable using SxS but ending up with an entry in the Regis

    It's common knowledge that Std-EXE auto-registers OCXes (but not DLLs) if their registration is not found in HKLM on Form_Load but binary files are present in EXE folder on startup.

    This is the...
  36. Re: How can I have unsigned Integers and Longs in VB6?

    Unfortunately not the fastest implementations. Check out single-line expressions for LShift32 and RShift32 in my recent Wheeler & Needham’s Tiny Encryption Algorithm.

    Using the same idea here are...
  37. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    There is no single color UXTheme "uses when a mouse is over a button or when a button is pressed". It just stretches and paints several pre-rendered bitmaps it has stored in theme's data for BUTTON...
  38. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    MagnumDB is very nice.

    I'm using an old HRPlus utility which is handy but less complete.

    cheers,
    </wqw>
  39. [VB6/VBA] Wheeler & Needham’s Tiny Encryption Algorithm

    This mdTea.bas is implementation of latest XXTEA variant of the Wheeler & Needham’s Tiny Encryption Algorithm. While the C code in the linked Wikipedia article is short and elegant the VBx variant...
  40. Re: Getting the ball rolling. Which VB6 projects are you working on?

    New prices?

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



Click Here to Expand Forum to Full Width