Search:

Type: Posts; User: Schmidt

Page 1 of 13 1 2 3 4

Search: Search took 0.33 seconds.

  1. Thread: TwinBasic

    by Schmidt
    Replies
    124
    Views
    9,050

    Re: TwinBasic

    I actually use even VBs current IIF() kinda like that with objects
    (often when filtering into "two different baskets" like the code below shows):



    Private Sub Form_Load()
    Dim Num, Evn As...
  2. Re: VB6: NEWS - TwinBasic VB6's Second Potential Replacement

    If it comes with the compiler itself (and then "sits there" in a wellknown location),
    then there's not even a registry-entry needed on the target-machine, to work with that COM-lib in the...
  3. Re: Vb6 problem with odbc for postgresql and columns calculated in query

    Yep, as it stands there (D6=8) - it looks quite funny...

    Cannot test it - but according to this docu-page here:
    https://odbc.postgresql.org/docs/config-opt.html

    ...instead of the...
  4. Replies
    3
    Views
    180

    Re: The size of the radius of a circle

    I think, on the Form where it works, he has a userdefined Scalemode of (0,0)-(1,1).

    Here is an example, how to ensure the User-Scalemode explicitely (by hand) -
    so this should work on "any Form...
  5. Replies
    3
    Views
    201

    Re: Transparent text

    If you select your own Font into the PicBox-hDC, then you will have to use SetBkMode:
    https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-setbkmode

    Olaf
  6. Re: Vb6 problem with odbc for postgresql and columns calculated in query

    Or perhaps (alternatively) try it with proper casting of the result-field
    since Numeric(18,4) is apparently transported correctly over ODBC...

    ..., Cast( ccosto * (1 - cdescuento01 / 100) * (1 -...
  7. Re: Vb6 problem with odbc for postgresql and columns calculated in query

    Have you tried:


    select ...(ccosto * (1.0-cdescuento01/100.0) * (1.0-cdescuento02/100.0))...


    Olaf
  8. Thread: TwinBasic

    by Schmidt
    Replies
    124
    Views
    9,050

    Re: TwinBasic

    I'd appreciate, when at least that will work in the future.
    And as for "back-syncing" into the twinbasic-projectfile... (from the dynamically created workspace-file).

    If it succeeds, all is well...
  9. Re: VB6: NEWS - TwinBasic VB6's Second Potential Replacement

    RC6 is primarily a "free available COM-lib" (an ActiveX-Dll)... just another "Project-reference" you can check-in if needed.

    We do these "reference-check-ins" in our daily work with MS-FlexGrid,...
  10. Re: VB6 SQL-queryable Resources, based on ZipContainer-Files

    The output in the upper half of my ScreenShot in #1, is based on:
    - Select * From Res ... ( AppDB.GetTable("Res") under the covers resolves to that "Full-Table-Select" SQL-string)
    So the returned...
  11. VB6 SQL-queryable Resources, based on ZipContainer-Files

    This Demo has a dependency to RC6 (but would work with RC5 as well).

    The framework-dependency was included, to be able to conveniently "Select" resource-data via SQL -
    (from the ZipFile -...
  12. Thread: TwinBasic

    by Schmidt
    Replies
    124
    Views
    9,050

    Re: TwinBasic

    The "single file concept" can later be quite handy, when it comes to the "publishing" of small or midsized Demos...
    (only one file to upload to GitHub or Bitbucket, or to "drag into an Email").
    ...
  13. Replies
    15
    Views
    648

    Re: Stitching pictures

    For those interested - here's how the RC6-cairo-wrapper can handle that reflection-task:



    Option Explicit

    Private CC As cCairoContext '<- CC is the Context of the Form-covering...
  14. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    But it isn't.
    What you still recommend is, that Image-Resources have to be stored in an age-old platform-specific container:
    - a Dll in "MS-PE-format"

    Nobody out there is storing resources in...
  15. Replies
    9
    Views
    506

    Re: Use TypeScript in VB6

    Ok, but I still cannot see, what advantages VB6 will offer in this endeavour...

    If you want to work with (or better understand) typescript, then either use the existing online-tools -
    or install...
  16. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    Being able to "derive" hIcons directly from a ByteArray is quite handy.
    (e.g. when you store these Ico-Resources in a DB-Table BlobField, or when they come in via a Download)

    Olaf
  17. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    Just to make sure, there's no confusion ... the above is wrong and will mislead others...

    Here again a fully working example (Form-Code which should work on any machine) -
    which does make use of...
  18. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    What I mean is, that you have to leave the ByteArray intact in its entirety (exactly as it sits in the *.ico-file).

    The reason it didn't work in your last posted code (with a Proper "DesiredSize"...
  19. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    The second Argument of this function wants your "Desired" (or "Prefered") IconSize (not the Ubound of the ByteArray).

    And that DesiredSize should be in the typical range for IconSizes between 16...
  20. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    It's based on "hardwired Byte-Offsets", to loop through the "Icon-FileHeader-parts"
    (without applying RtlMoveMemory, to copy the current Byte-Contents into "more speaking UDTs").
    ...
  21. Replies
    9
    Views
    506

    Re: Use TypeScript in VB6

    Let me repeat my question:

    Let's assume, everything works out in that regard (and you can use the TypeScript-compiler in VB6 with proper bindings)...

    What would you do next, once that goal is...
  22. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    Just change it back to what it was before (there was nothing wrong with it).

    Olaf
  23. Replies
    29
    Views
    720

    Re: CreateIconFromResourceEx not working

    An "Icon-file" has a different format, compared to what is stored in an "Icon-resource".

    So you have to "pre-parse" this Icofile-ByteArray, to retrieve the proper Offsets to the resource-stream.
    ...
  24. Replies
    9
    Views
    506

    Re: Use TypeScript in VB6

    Generally spoken - when a native compiling language allows *also* the execution of some "scripted parts" -
    this enhances its flexibility in certain scenarios...

    E.g. you don't need to recompile...
  25. Re: how to Draw rounded rectangle by vb6 GDI++?Draw a triangle

    All of your above points (and more) are accumulated (and hardened over the last decades) in the RC6-framework.

    You've just started with "modern UI stuff, including your first steps with...
  26. Replies
    49
    Views
    2,575

    Re: [RESOLVED] Dashed line

    This can be accomplished by the Cairo-COM-wrapper (behind RC6.dll, freely available at vbRichClient.com).

    I've posted an appropriate line-example for that Vector-graphics-lib in #10...

    And...
  27. Replies
    36
    Views
    812

    Re: .txt files

    As for the "expected input-size" (since I've so far posted an InMemory-approach):

    I've just played that through with 1Mio Lines of CSV-Text (in the 4-Column-Format of the OP)...


    Private Sub...
  28. Replies
    36
    Views
    812

    Re: .txt files

    The code above (in post #19) needs a project-reference to "RC6".

    Before you see this ActiveX-Dll-reference, you will have to download the RC6BaseDlls.zip from vbRichClient.com
    (unzipping into an...
  29. Replies
    36
    Views
    812

    Re: .txt files

    Since your Text-Data seems to adhere to "normal CSV-files" (comma-delimited, Text in DoubleQuotes -
    according to the standard, defined here: https://www.ietf.org/rfc/rfc4180.txt)...

    The least...
  30. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    I don't know what you mean exactly.

    A cCairoSurface-Object (of type Image), is comparable to a DIBSection in 32BitPerPixel (without using any GDI-Handles).

    And if you want to paint something on...
  31. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    That depends on, whether your BG-Picture is UC-specific (exists once for your UC) -
    or if you mean "an inherited Parent-Background".

    Generally spoken - any Image you use, is a resource.
    And the...
  32. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    With RC6 (not RC5) the following works:


    With Cairo.ImageList.AddImage("", "c:\temp\dancer.svg")
    Debug.Print .Width, .Height
    '.WriteContentToPngByteArray SomeByteArray
    End...
  33. Replies
    7
    Views
    276

    Re: MOD operator problems

    Thanks for the indirect hint ...
    (regarding the fmod-function I've posted in #6, which fails to return a zero with that negative Divisor-input).

    Here's a correction:


    Public Function...
  34. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    Before you resort to a GDI-call (which is the case with your above Srf.DrawToDC someHDC),
    you will have to ensure the BackGround on a given Surface yourself...

    So, instead of Me.Cls (which...
  35. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    The WebKit-Browser-addon above is BTW "the smallest Browser-Control" (not "Miniblink") -
    and it is thought as a "local use only Control, don't go online with it" - for the RC5
    (the RC6 has its...
  36. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    First of all - as soon as you start using the RC6, there is no need anymore for any GDI- or GDIPlus-routines.
    (cairo contains "everything GDIPlus offers and more" - and GDI only comes into play,...
  37. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    There is no sawtooth (the antialiasing works).

    Instead the problem is the same as with all your other "micro-benchmarks" and "comparisons"...
    Your knowledge is in the most cases not sufficient,...
  38. Replies
    7
    Views
    276

    Re: MOD operator problems

    Yep, a floatingpoint-mod-function needs to take these "small epsilons" into account:



    Private Sub Form_Load()
    Dim a#: a = 58333.31
    Dim b#: b = 8333.33

    Debug.Print a - b * Fix(a /...
  39. Replies
    35
    Views
    940

    Re: how to show svg by vb6?

    I have no clue, what you mean...
    (cairo can be used with several "degrees" of AntiAliasing, but it is normally not set to "CAIRO_ANTIALIAS_NONE" by default).

    Please show the complete code you've...
  40. Replies
    44
    Views
    2,569

    Re: Can't Find SQL Server-REVIVED

    Have seen similar symptoms before... a likely reason could be an "identical IP on a different device"
    (in our case it was the similar Server-IP in a Test-VM we occasionally started, which then threw...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width