Search:

Type: Posts; User: Schmidt

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Simple and fast, lightweight HashList-Class (no APIs)

    There's an additional zip-file download (with integrated Remove) in post #30:
    https://www.vbforums.com/attachment.php?attachmentid=177177&d=1590156833

    Olaf
  2. Re: Cairo Wiget / Form setout question

    Sorry, had it on my "to-reply-soon"-stack - but then missed to come back to it...

    Will try to finish the RC6 (into its "final, bin-compatible form") soon -
    but there's still a few "opened up and...
  3. Re: Cairo Wiget / Form setout question

    No, the areas on the UI-OverlayForm which are 100% transparent, are "fully click-through"
    (thus nothing needs to be changed on the existing Game-MainForm regarding MouseEvents).

    The only thing...
  4. Re: Cairo Wiget / Form setout question

    The most performant way to ensure a (widget-based) UI in a Game is,
    to host the UI in a separate TopLevel-"Overlay-Form", which is fully transparent ...
    (on Top of the MainForm, which shall only be...
  5. Re: Cairo Wiget / Form setout question

    The Minimal-Code to ensure a Panel (with a BG-Image) on a normal VB6-Form is this:


    Option Explicit

    Private WithEvents Panel As cWidgetForm

    Private Sub Form_Load()
    ...
  6. Replies
    10
    Views
    575

    Re: why vb6 build very slow on win10 ?

    Did you try my second suggestion, doing your compile with a fresh FileCopy of VB6.exe?
    (e.g. named VB6_compile.exe).

    If that does not change anything with performance, then there remains only the...
  7. Re: Too many controls using subclassing

    Not when you do it right...
    (and BTW... IIRC, the WinAPI-SubClassing for MouseHover is using a timer under the covers as well).

    One can even make it extremely resource-friendly
    (the...
  8. Re: VB6 RC6 Cam-Streaming (with local QRCode-Decoding)

    If you're using VB.NET, then the RC6-libs are probably not ideal for you...
    (RC6.dll is a 32Bit-COM-Dll - which will limit you to VB.NET with 32Bit compilation-targets)

    Olaf
  9. Replies
    10
    Views
    575

    Re: why vb6 build very slow on win10 ?

    Just deactivate all "compatible to XP" or "compatible to Win7" shims... (on VB6.exe)...
    or (if you run the compiler from a batch-file) - point your batch to a copy (e.g. VB6_compile.exe),
    which you...
  10. Re: What features in the subclass cannot be replaced by other technologies?

    That crash might be related to bugs in the old VB6-UserControl-engine (not really the SubClassing)...

    So, just avoid the UserControl-engine...

    E.g. when I just put the whole source of McMahons...
  11. Thread: Hello Olaf

    by Schmidt
    Replies
    11
    Views
    473

    Re: Hello Olaf

    The DB-Path this serverside Dll-Class opens the DB on finally,
    is clearly determined in the last Function:


    Private Function EnsureConnectionFor(DBName As String)
    If Cnn Is Nothing Or...
  12. Re: VB6 PDFium-Binding (Viewing + Text- and ImageExports)

    No, but the cPDFium-Class (which contains the API-Declares) can be enhanced quite easily...

    E.g. currently you will find:
    ...
    Private Declare Function FPDFText_LoadPage Lib "PDFium" Alias...
  13. Replies
    17
    Views
    919

    Re: Music Visualizer

    Which line do you mean... this one?
    ACC.InitOn CapDev, 44100

    Olaf
  14. Replies
    17
    Views
    919

    Re: Music Visualizer

    According to the Image he posted in #7, he wants "all three":
    1) Peaks
    2) FFT-Bars
    3) RawAudio for Oscilloscope-Output

    Only 1) is obtainable with a "cheap" method (2 and 3 requiring...
  15. Replies
    17
    Views
    919

    Re: Music Visualizer

    If you use RC5 or RC6, then you can use its built-in CoreAudio-support -
    and also its Cairo-Wrapper for "fancy visualizations" of the Audio-Data you get from its Audio-Events.

    The example here,...
  16. Replies
    45
    Views
    1,616

    Re: Faster ByteArray search/loop

    No reason to be wary - and odd sizes blend quite nicely:


    Private Sub Form_Load()
    'create a byte-array of lenght 3
    Dim B1() As Byte: B1 = StrConv("abc", vbFromUnicode)
    Debug.Print...
  17. Re: Make a simple and efficient typelib generation tool

    My point was, you do not have to use a TypeLib for Public UDT-Defs.
    Just a normal VB6-AxDll-Project will do... e.g.:
    - Start a new AxDll-Project
    - Rename the Project1-DefaultName to: MyUDTs
    -...
  18. Re: Make a simple and efficient typelib generation tool

    The point is, once you managed to (easily or not) generate a TypeLib for your UDT-Defs,
    you will have to ship and register this *.tlb at the end-users machine.

    So, why not just do it the easy...
  19. Replies
    45
    Views
    1,616

    Re: Faster ByteArray search/loop

    IMO, faster should be a direct expression (avoiding the call-overhead to your Private Function):
    If CStr(baFirst) = CStr(baSecond) Then ...

    instead of:
    If pvArrayEqual(baFirst, baSecond) Then...
  20. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    Hmm, your "correct right border" for the last interval-case:
    Case "18:00" To "23:59": Result = "Evening-hours"

    ...will show the exact same behaviour (computation-wise), as:
    Case "18:00" To...
  21. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    What I'm trying to point out the whole time is,
    that the last "evening"-case in your #10-example, will always resolve to False -
    (because the LHS-literal of the interval-expression is larger than...
  22. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    Sure, just wanted to make it clear, that there's nothing wrong with my
    "full day covering intervals" ... the function as shown will work as intended.

    It's (in the end) String-Comparisons we make...
  23. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    Sure, but this *is* a VB-Forum, last time I've checked.

    I'm fully aware, that there is a "one minute-overlap" in the interval-definitions.

    If you want to be formally correct, then change all...
  24. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    the first of course ... [xxx To yyy] defines a "closed interval" (>= ... <=)



    In my understanding it is "the exact same thing" <shrug>...
    and for all intents and purposes, even beginners will...
  25. Re: RC6 cWebView2 document events and object question!!

    Just tested your link in the "full Browser-executables": MS-Edge and Google-Chrome...
    ...and the Images (in the dynamically expanded "Main-Content-List", when scrolled down),
    remain forever in ...
  26. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    Living in europe, I've always found the #...# Date-Literals annoying to type and less clear when reading.

    Here's your example, wrapped in a function (along with my suggestion, for comparison):

    ...
  27. Re: VB6 ImageCaching and -Animation (using a single Resource-File for storage)

    Yes, the approach is quite similar to the cWebArchive-based resource-handling.
    FWIW, here is another (RC6-based) one, which follows the same basic principle:...
  28. Replies
    30
    Views
    1,242

    Re: VB6 and Access Database

    When I use ADO against MS-SQLServer, I usually go with 2.6 (but 2.5 works fine also).

    I hope you're aware that using the AccDB-OleDriver requires installation on Win10...

    So, is there a...
  29. Replies
    25
    Views
    1,497

    Re: Animation png load image

    Well, I'd suggest a *.gc File... ;)

    Just uploaded a new CodeBank-entry, which makes use of cGDIPlusCache -
    (enhanced about two new Methods, which are related to the *.gc-File)

    Here is the new...
  30. VB6 ImageCaching and -Animation (using a single Resource-File for storage)

    Just a Demo which applies the cGDIPlusCache-Class (as intended, as a Drop-In-Module).

    The original CodeBank-entry for cGDIPlusCache is here:...
  31. Replies
    28
    Views
    1,340

    Re: [RESOLVED] Select case with >

    As Arnout pointed out already - intervals are expressed using: xxx To yyy ...
    So this is better written like in the example below (avoiding function-calls in the case-resolutions):


    Private Sub...
  32. Re: Sending data from Flexgrid to Sqlite Database takes about 2 seconds.

    I don't know how many times I've explained it to you over the last years already,
    but the cRecordset of the SQLite-wrapper is nearly 100% compatible with an ADO-Rs...
    (is it the age, which makes...
  33. Replies
    30
    Views
    1,027

    Re: to undestand array dictionarary, collection

    FWIW, a further optimized variant of cHashD is contained in RC6
    (performing in this scenario about factor 3-3.5 better in both modes, binary and textcompare):



    Option Explicit

    Private Sub...
  34. Replies
    30
    Views
    1,027

    Re: to undestand array dictionarary, collection

    Yep, this one performs even better than the "bare-bones, first implementation".
    (despite supporting "all kind of Key-Types" via Variant-Key-Params).

    Also, the CompareMode didn't match in Arnouts...
  35. Replies
    30
    Views
    1,027

    Re: to undestand array dictionarary, collection

    Not necessarily.

    When you have (as mentioned by the OP) about 120,000 entries -
    then a binary-search (on a sorted Array) will need about 16-17 "full string-coparisons" (with the searchstring).
    ...
  36. Replies
    25
    Views
    1,497

    Re: Animation png load image

    Here's another example, which makes it more clear - that all you needed,
    was some basic understanding of the PaintPicture-Method: ;)



    Private Anim1 As StdPicture, WithEvents tmrAnim1 As Timer...
  37. Re: safely get array count in a variant

    Yep, when one has full control over, where an array "originates",
    then pre-initializing with "no elements" is easy enough to do.

    FWIW, here's a short ArrLen-function which works on such "no...
  38. Re: Seek advice: Array Or VBA.Collection?

    Then why the hesitation?
    A simple internal LongArray is still way less expensive than a VBA.Collection (in your 1Mio LineObjects-scenario).

    With just 4 external Props/Methods:
    - CutOffsCount (as...
  39. Replies
    9
    Views
    722

    Re: Another complicated query

    Nothing wrong with using the cSelectCommand or cCommand classes instead (with that "vertical Param-assignment").

    The ExecCmd and GetRs-methods (on a cConnection) reduce a bit of typing,... they...
  40. Replies
    181
    Views
    238,123

    Re: Program Testers

    You should probably ask about this problem in the main-VB6-forum -
    (this one here is much less frequented).

    Olaf
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width