Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Thread: Excell With V.B

    by wqweto
    Replies
    6
    Views
    399

    Re: Excell With V.B

    Now this is what I call dedicated spammer :-))

    But I remember admins notified everyone old history will be cleaned up on last hosting upgrade, when account upload limits were raised too.
    ...
  2. Replies
    6
    Views
    168

    Re: NASM - Trying to write a TSR->

    INT 21h, AH=31h function number expects resident size in paragraphs in DX register but it's currently undefined (probably zeroed) after the previous INT 21h call.

    cheers,
    </wqw>
  3. Replies
    14
    Views
    234

    Re: Change Event of Textbox

    This is utterly unreliable because if tbID.Text is already "1" then assignment tbID.Text = "1" does *not* raise the Change event. Check out this snippet


    Option Explicit

    Private Sub...
  4. Replies
    6
    Views
    252

    Re: Print to specific PDF file name

    Yes, API hooking would the thermonuclear option here :-))

    cheers,
    </wqw>
  5. Replies
    6
    Views
    252

    Re: Print to specific PDF file name

    Btw, here a snippet that works with ActiveReports printer/canvas objects


    Option Explicit

    Private Sub Form_Load()
    Const OUT_FILE As String = "d:\temp\out.pdf"
    Const DOC_NAME As...
  6. Re: Can the address of a VB Function be used to execute the function in some way?

    GetRef returns an IDispatch (an Object) with only a default method implemented which can be called with parentheses like this


    Option Explicit

    Dim oFunctor
    Set oFunctor =...
  7. Replies
    37
    Views
    1,074

    Re: Windows 11 coming soon

    Is it the year of the Linux desktop yet or is it coming soon? :-))

    cheers,
    </wqw>
  8. Replies
    8
    Views
    312

    Re: Instrb No variant

    Btw, InStr is intrinsic function while VBA.InStr is typelib imported one. You are looking at the typelib prototype for the latter one. The MS-VBAL documentation describes the semantics of the former...
  9. Replies
    6
    Views
    233

    Re: Almost found another UTF-8 codec

    This is what a classical space-time tradeoff looks in pracitce not quite like the ones discussed in CS academia :-))

    cheers,
    </wqw>
  10. Re: List all textboxes in a ActiveReports Designer...

    This works


    Option Explicit

    Private Sub ActiveReport_ReportStart()
    Dim q As DDActiveReports2.Section
    Dim o As Object

    For Each q In Me.Sections
  11. Replies
    40
    Views
    990

    Re: Drawing on the screen

    Works on Win7 and Win10 here. Doesn't work on your particular Win10 setup.

    There is an app on your box that is constantly redrawing the desktop. Could be a VNC server or some other kind of remote...
  12. Replies
    6
    Views
    233

    Re: Almost found another UTF-8 codec

    OLEPRNLib.OleCvt exposed-- full source code leaked!


    Option Explicit

    '--- for WideCharToMultiByte
    Private Const CP_UTF8 As Long = 65001

    Private Declare Function...
  13. Replies
    3
    Views
    283

    Re: 64x compiler for vb6

    The touch of humor is this previous reply makes it a little less alienating for the new-commers -- this has to be acknowledged here before herding them to other sub-forums :-))

    cheers,
    </wqw>
  14. Re: Why the member name of the Type variable can be a keyword?

    There has to be a way to replace/embed the TLB inside the DLL after this.

    cheers,
    </wqw>
  15. Re: How to pass variable to other Function/Function return a response?

    > Hi all, I would like to ask of how does the visual basic have to perform to get the variable of other functions.

    No, does not make sense.

    > In my case I would like to have the called...
  16. Re: Why the member name of the Type variable can be a keyword?

    Another option is to use Tab_ and Type_ with underscore as property names in the IDE and then rename these in the compiled type library before shipping to clients.

    http://powervb.mvps.org/
    ...
  17. Replies
    6
    Views
    295

    Re: Parser & Symbol Table Generator

    A LLVM's Kaleidoscope toy language VB6 port can be found here. It uses a VbPeg grammar to generate the parser.

    cheers,
    </wqw>
  18. Replies
    40
    Views
    990

    Re: Drawing on the screen

    I just replaced the MsgBox "The square are drawn! " with Sleep 10000 and the square remains visible until other windows are redrawn over it or the timeout expires.

    The point is that on Win10 it is...
  19. Re: [RESOLVED] ActiveReports Question - passing data to an unbound report, in a varia

    Array of UDTs is not QBasic but more like C/C++ coding being the basis of ADTs in computer science.

    It is more performant compared to Recordsets (or Collections) and the comparison between them is...
  20. Replies
    40
    Views
    990

    Re: Drawing on the screen

    You might have some clock widget on your Windows 10 desktop that forces regular redraws.

    cheers,
    </wqw>
  21. Re: Using websockets for htlm/javascript user interface for vb6 app

    Best will be to use some production grade ssl-terminating proxy like nginx or stunnel. These usually integrate seamlessly and you don't have to do anything in your server app.

    Just make sure...
  22. Replies
    34
    Views
    1,064

    Re: Need Help! Failed to Encode an Image to Base64

    Try these two helper functions instead


    '--- copy/paste in Module1
    Option Explicit

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any,...
  23. Re: How to implement dynamic objects like RC6.DynObj?

    No idea what vbFriendly-Interfaces means here but obviously we have different definitions for "trivial" too :-))

    Trivial IMO would be to use VBA.Collection keyed on "property name". Reimplementing...
  24. Re: How to implement dynamic objects like RC6.DynObj?

    Wait for Olaf to publish RC6 source code as promised then you can freely copy/paste it from his implementation.

    It's a non-trivial IDispatch customization, probably requiring a very fast container...
  25. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    Wait. . .

    https://www.vbforums.com/images/ieimages/2021/05/13.jpg

    :-)),
    </wqw>
  26. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    This Mid$(Replicate05, LP + 1) = Replicate05 translates roughly to memcpy with overlapping source and destination.

    I previously did some tests with memcpy from msvcrt.dll but because in C/C++...
  27. Replies
    3,172
    Views
    879,101

    Re: CommonControls (Replacement of the MS common controls)

    This is a bug in the IDE. Check this out:

    Step 1. Locate the sub procedure called "OLEObjectsAddFromPicture", inside the "RichTextBox" module.
    Step 2. Rename Variant parameter called "Format"...
  28. Replies
    3,172
    Views
    879,101

    Re: CommonControls (Replacement of the MS common controls)

    The name "shadowing" problems are hypothetical. Can occur if changes are made in certain way so that some hideous errors are introduced unintentionally.

    Highly doubt there are any actual problems...
  29. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    StringRepeatJpbro2 above is a masterpiece -- the honey-badger of Mid$ operator.

    It's faster even then rep movsb as on each iteration it always copies from "hot" CPU cache (the source location...
  30. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    My one-liner is *not* the JS algorithm.

    Here is the JS translated


    Public Function StringRepeatFast(sStr As String, ByVal lNum As Long) As String
    Dim sChunk As String
    Dim lPos ...
  31. Re: Why the member name of the Type variable can be a keyword?

    I have a friend that never uses keywords but when upgrading to MySQL 8 all his codes exploded because he used a table called BUCKETS which was not a keyword in previous version of MySQL.

    In MySQL...
  32. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    No, VB6 can barely hold its pants on so it cannot provide any better algorithm out of the box for sure.

    And then you know, the better algorithms have been invented by the academics long time ago...
  33. Re: Why the member name of the Type variable can be a keyword?

    This is so inconvenient on so many levels!

    The only reason a language has keywords in first place is lexer/parser efficiency and lazyness (less context parsing). For instance TwinBasic and...
  34. Replies
    54
    Views
    1,380

    Re: The fastest StringRepeat algorithm

    That would be comparing apples to oranges as JS algorithm is superior -- it's implementing string repeat with *minimum* concatenations looping on the *bits* of the num variable and appending current...
  35. Thread: TwinBasic

    by wqweto
    Replies
    214
    Views
    19,304

    Re: TwinBasic

    Having no news is still some news :-))

    cheers,
    </wqw>
  36. Replies
    3
    Views
    278

    Re: InvokeMember and GetMembers

    Try passing some binding flags to GetMembers like in


    GetMembers(BindingFlags.Public Or BindingFlags.Instance Or BindingFlags.InvokeMethod)

    Edit: Oops, this is basically what jmcilhinney...
  37. Replies
    32
    Views
    911

    Re: Ansi/Unicoding Encoding Issue

    Assigning a string to a byte-array is "exact bytes" but each symbol occupies 2 bytes which might not be what you need.

    If you have been dealing with a one byte per symbol byte-arrays then this...
  38. Replies
    3,062
    Views
    112,803

    Re: What song are you listening to right now?

    https://www.youtube.com/watch?v=zpOULjyy-n8
  39. Replies
    47
    Views
    1,084

    Re: Microsoft retiring Internet Explorer next year

    It means that I agree with you that line numbers are obsolete and so we refrain from using this language feature at all in our code (and because this language feature is used by the build tools for...
  40. Replies
    47
    Views
    1,084

    Re: Microsoft retiring Internet Explorer next year

    Just for the record: we *don't* use line numbers like in On Error GoTo 1 because we need the line numbering language feature for the build server pre-processing tool to apply correct source line...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width