Search:

Type: Posts; User: Schmidt

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: [RESOLVED] Best/Fastest Way to Generate Checkboard Background

    In the end, it all boils down to blitting a pre-created tile-bitmap
    (which was constructed under the constraint of a "repeatable pattern").

    The Blit-Loop is then quite simple...


    Private Sub...
  2. Replies
    26
    Views
    664

    Re: Some unreasonable restrictions in VB6

    No, it's a Property.



    No, ...

    Public L As Long, S As String, D As Date

    ...is defining 3 full Get/Let Class-Properties (as Method-Calls, not "Field-Variables").
  3. Re: Microsoft hardening DCOM, forcing packet integrity on March 14, 2023

    This thread should be moved to the main-VB-forum IMO...

    Though - when MS states, that only COM+ interactions are affected -
    (x-process/x-machine exchanges between COM-Objects) ...
    I cannot see...
  4. Replies
    17
    Views
    427

    Re: Create CSV File for European Number Format

    Please try it out at least ...
    And no, there is no ADO-Projectreference to set (if you have a DAO-one currently)...

    The ADO.Stream-Object is not really related to "any DataBase" - it is only...
  5. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    Yep, you got it...

    The 4 "text-colored red or blue"-arguments are just two points,
    which describe a "gradient-direction-vector".

    Below is a Form_Click replacement, which shows:
    - (in red)...
  6. Replies
    17
    Views
    427

    Re: Create CSV File for European Number Format

    No problem... feel free to ask, in case you cannot make sense of certain Lines...

    The few things which pop into my mind, which might be "alien" to you...:

    - the "re-naming" of certain...
  7. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    I'd make a commonly usable (generic) routine out of the little example first -
    and what's then left, is only the correct "parametrizing" of such a sub-routine
    (which now works with any...
  8. Replies
    17
    Views
    427

    Re: Create CSV File for European Number Format

    First of all, I'd avoid VBs built-in FileRoutines and use something that's capable to write UTF8-text.

    Secondly, why not invest your CSV-coding-efforts into something that works generically
    (with...
  9. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    Ah, well... seems you misunderstood what I meant with "unpack" (aka "unzip" or "extract") -
    and instead tried to call the register-in-place-script directly on the "zip-File itself" (which acts as a...
  10. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    The Cairo-wrapper makes up a larger part o the RC6, yes...



    Select the Download.htm on the left-hand-side tree-control...
    - then download the RC6BaseDlls.zip
    - and unpack it into a new folder...
  11. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    Same thread as before - post #21:
    https://www.vbforums.com/showthread.php?896683-RESOLVED-Line-Methof-for-a-gradient-in-a-Triangle&p=5571226&viewfull=1#post5571226

    If you find these instructions...
  12. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    Well, the code in post #12 here: https://www.vbforums.com/showthread.php?896683-RESOLVED-Line-Methof-for-a-gradient-in-a-Triangle&p=5571108&viewfull=1#post5571108
    ... was using only VB6-Line-calls...
  13. Replies
    16
    Views
    473

    Re: Diagional Color Gradient

    The routine, which produced Gradients in any Angle was in post #12.

    And yes, it was doing that within "the confines" of an "outer triangle"...
    (but it should be relatively easy to adapt - to your...
  14. Re: RC5 Sqlite Like Adodb.Connection/Adodb.RecordSet(WithOut Reg Com Dll)

    As already explained in another thread - using the age-old dhRichClient3 will only save you:
    - about 2MB on disk (compared to the vbRichClient5-package)
    - about 3MB on disk (compared to the...
  15. Replies
    19
    Views
    581

    Re: Scaling Issue Somewhere

    Here's a (shortened but complete) version of your Form-Code, which does that:


    Option Explicit

    '*** GDIPlus-stuff
    Private mlGdipToken As Long
    Private Type GdiplusStartupInput
    ...
  16. Re: Create an object array with a length of zero (or UBound = -1)

    Your "Redim PreserveAndSetValue-Test" fails also with primitive typed Arrays
    (have just corrected my code in #10 appropriately to):



    Option Explicit

    Private Declare Sub Assign Lib...
  17. Re: Create an object array with a length of zero (or UBound = -1)

    In case this request is only, because you want the initialization to UBound=-1 more generically
    (working with any simple type as Object(), SomeClass(), String(), Long(), etc.) -
    then the following...
  18. Replies
    5
    Views
    250

    Re: Create DC of our specification

    I wouldn't introduce a "scalable vector-format" for Bitmap-Handling without need.
    (that's prone to produce all kinds of surprises, regarding "DPI-awareness").


    Ahh - see, there we go...

    ...
  19. Replies
    5
    Views
    250

    Re: Create DC of our specification

    Since you want to do operations on *Images* (DIBs, Surfaces, 2D-PixelAllocations if you want):
    - then think about DCs as Drawing-Contexts
    - (instead of "Device-Contexts")

    Drawing-Contexts are...
  20. Re: RC5 Sqlite Like Adodb.Connection/Adodb.RecordSet(WithOut Reg Com Dll)

    I strongly suggest, to use the "officially recommended version" of regfree loading with RC-Dlls,
    which is the following (to be placed in a true "drop-in *.bas module):


    Option Explicit
    ...
  21. Re: Interogating names of Cairo Imagelist Entires?

    Ummh, what about: Msgbox Cairo.ImageList.KeyByIndex(23) ...?

    Longer answer:
    The App-globally available Cairo.ImageList is based on a cCollection (which stores Key/Item-Pairs)...
    ... with the...
  22. Re: Make hGdipImage, hGraphics, and other GDI+ "objects" into true VB6 COM objects

    Hear, hear... :)

    FWIW, here's "Elroys-Task" which triggered all these threads,
    solved via the COM-Objects of the VB6-Cairo-wrapper:

    The task being (as I understood it):
    1) load a PNG (or any...
  23. Replies
    31
    Views
    745

    Re: High DPI & Scaling Causing Image Issues

    I think in the above size-manipulation lies the reason for the "weird behaviour"...
    ... and that "dynamic-image-content" (added in StdPicture-Format from the outside),
    should not be manipulated at...
  24. Re: [RESOLVED] Line Methof for a gradient in a Triangle

    RC6.dll is a "free COM-lib" (an ActiveX-library, produced with VB6 for the VB6-community),
    which you have to check-in via the References-Dialog (before "RC6-based Code" will work in your IDE).
    ...
  25. Re: [RESOLVED] Line Methof for a gradient in a Triangle

    Do you mean something (roughly) similar to this?

    GreenGradient-BG with inversed Green-Gradient on the triangle:
    185124

    RedGradient-BG with inversed Red-Gradient on the triangle:
    185125
    ...
  26. Re: [RESOLVED] Line Methof for a gradient in a Triangle

    Well, so far you did not manage that in the routines you've posted
    (e.g. your "D"own case did not work in my tests)...

    See, the Down-case is just a "special case of a 180 rotation" -
    ...hence...
  27. Re: regsvr32 RC5 err in win7,ABOUT RichClient1.0,RichClient3.0

    That's because dhRichClient3.dll (as well as dhSQLite36_engine.dll) are both UPX-compressed
    (UPX is a PE-Loader which unpacks directly into memory... and I don't use it anymore for newer versions)....
  28. Replies
    9
    Views
    463

    Re: "With", with several controls

    Dim Sldr
    For Each Sldr In Array(Tempo, Samplerate, Pitch)
    Sldr.min = 0
    Sldr.max = 100
    Next


    HTH

    Olaf
  29. Re: [RESOLVED] Line Methof for a gradient in a Triangle

    Here's my take regarding a gradient-triangle routine (allowing free rotation):


    Sub GradientTriangle(PB As PictureBox, ColorAt_xy, ColorAt_ab, ByVal x As Double, ByVal y As Double, _
    ...
  30. Replies
    13
    Views
    665

    Re: Implements (light weight object)

    FWIW, here's a new approach to all that (just uploaded into the CodeBank):
    https://www.vbforums.com/showthread.php?896682-VB6-A-simple-approach-to-Lighweight-Classes

    Maybe it will behave better...
  31. VB6 A simple approach to Lighweight-Classes

    As the title says already - another approach to LW-COM -
    hopefully simple(r) to understand, because:
    - it doesn't require to implement "all the Methods in the *.bas-Module"
    - instead,...
  32. Replies
    27
    Views
    705

    Re: How should I rewrite this to not use GoTo?

    For "small stuffs" like that, the built-in Filter-Function could be applied as well:


    Option Explicit

    Private Sub Form_Load()
    Dim Arr: Arr = Split("US|UK|JP|CN", "|") 'init the Src-Arr
    ...
  33. Replies
    1
    Views
    852

    Re: Nasty Set Stuff

    I'd say: Move your "Widgets" into a Table - and use SQL...

    SQL (as a language) is specialized in dealing with Set-Ops, (syntax- and performance-wise).

    Do all your Filtering on that...
  34. Replies
    3,415
    Views
    1,323,048

    Re: VBCCR not work anymore after upgrading to 1.7.38

    @Krool...

    I think you should look into that (since it would break also the "regfree-mode" via manifests)...

    IMO, somewhere you're probably exposing a type from msdatsrc.tlb on the OCX'es Public...
  35. Replies
    169
    Views
    40,182

    Re: VB6 WebView2-Binding (Edge-Chromium)

    With the WebView2 you should get more familiar with its JS-interface ...
    (doing all of the more complex stuff, by adding js-Functions beforehand - and then calling these from VB)

    For example, if...
  36. Re: Simple and fast, lightweight HashList-Class (no APIs)

    Thanks, I see what you mean now...

    Easy Fixes (for the faster cHashD-Zip, linked in Post #30):

    1) Replace the "NoEntry"-Const-line with this line:
    Private Const NoEntry As Variant = Empty
    ...
  37. Replies
    13
    Views
    665

    Re: Implements (light weight object)

    Of course...
    You shouldn't do that with a lightweight Object -
    (because these Methods require properly implemented "Extra-Interfaces" -
    you delegate to in QueryInterface, and also a basic...
  38. Re: Simple and fast, lightweight HashList-Class (no APIs)

    A "complete example" would be nice (which demonstrates the issue).
    From a your short snippet (as it is), I can only recommend:
    - to store the resut of the Values-method in its own (TmpValsArr)...
  39. Replies
    13
    Views
    665

    Re: Implements (light weight object)

    You've forgot the TypeSpecifier for CB in your Assign-Declaration above:
    (it's currently Variant - and should be Long)


    Declare PtrSafe Sub Assign Lib "kernel32" Alias "RtlMoveMemory" _
    ...
  40. Re: VB6 LightWeight COM and vbFriendly-BaseInterfaces

    This is a duplicate of the question, which was answered in the main-VB6-forum here:
    https://www.vbforums.com/showthread.php?896638-Implements-(light-weight-object)&p=5570399&viewfull=1#post5570399 ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width