Search:

Type: Posts; User: ahenry

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] Having issues trying to set up a class

    Until you copy-and-paste the class code and it stops working.
  2. Re: Having issues trying to set up a class

    The line that you put at the top of the class:

    Public SQL As New cSQL
    would normally go in a BAS module so that it is publicly accessible in the project.
    You can also eliminate the (tiny) As New...
  3. Replies
    12
    Views
    690

    Re: Can't debug drag and drop

    I would at least try starting from a fresh VB6 shortcut. Right-click drag C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE to the desktop to create a new shortcut and try running that.
  4. Re: Strange behavior of a "TIMER" control

    You probably would have noticed if some other portion of your code is manually resetting the interval, so my guess is that you are actually looking at a new / different instance of the timer control....
  5. Replies
    10
    Views
    612

    Re: Friend, Private, Public, "exposed"

    Personally, Friend has given me more (occasional) trouble with Intellisense than Public does. But I'm usually working with multiple ActiveX libraries in a project group, so VB might get confused...
  6. Re: Speed difference between exe and IDE ? (At least on Win10)

    Eduardo's suggestion makes a lot of sense. I've seen crazy order-of-magnitude performance differences when filling combo boxes in some circumstances. CB_ADDSTRING usually helps. I've also tried...
  7. Re: Speed difference between exe and IDE ? (At least on Win10)

    One thing to always check when you see differences between IDE and non-IDE:

    Are you running one "As Administrator" and the other non-elevated?
  8. Replies
    1
    Views
    487

    Re: URL Encoding / Decoding issue

    I didn't look into the nitty-gritty of what you're seeing, but it's pretty normal that 2 different encoded sequences could decode to the same string. The only guarantee you get is that a decode of...
  9. Replies
    7
    Views
    1,011

    Re: [RESOLVED] Form Height vs Max VScroll

    Moving all the frames around relative to their current position will get you nothing but frustration. First write a function that will return the correct position of each frame (by index) in your...
  10. Re: ActiveX DLL - UDTs - Functions - Constants - RegFree

    As far as (numeric) constants go, I declare them as enumerations specifically for this purpose. Another option would be to put them in a shared "header" file along with those Declares...
  11. Replies
    8
    Views
    816

    Re: need the proper code

    Case statements only execute the first matching clause, so your < 8 cases will never be used.
  12. Replies
    10
    Views
    824

    Re: Sounds Muted within VB6

    Did you try the "Reset to Microsoft recommended defaults" button under Settings - Sound - Advanced?
  13. Re: Program freezes on ConnectNamedPipe() from IDE but works correctly when compiled.

    Named pipes has worked very well for me in one application. We use it for synchronous low-latency, low-throughput communication between two executables that have the same lifetime and run in the...
  14. Replies
    8
    Views
    833

    Re: LOAD IMG INTO PICTUREBX FROM WEB url

    Google "vb6 AsyncRead", it's well within your capabilities:

    https://www.vbforums.com/showthread.php?541643-RESOLVED-Convert-string-to-image&p=3346851#post3346658
  15. Replies
    23
    Views
    2,549

    Re: Roundup and roundown for specific decimals

    No, in banker's rounding, 0.5 rounds to zero, and 1.5 rounds to two. If you're exactly on x.5 it rounds to the nearest even integer.
  16. Re: ActiveX dll or Exe form to MdiChild in a MDIfrom

    What I'd try is to have a generic MDI form in the exe project, then position the DLL forms on instances of the generic form with the SetParent / MoveWindow APIs. There'd be some overhead with...
  17. Re: Detecting whether Advanced Optimizations were done in Compiled Program

    Once you've got more than a few of these steps that you want to do before an "official" release build, it's worth setting up an automated command-line build. One part of that could be to set project...
  18. Replies
    2
    Views
    599

    Re: Dynamically Create Object Name

    Dim NewForm as Form
    Set NewForm = Forms.Add(FormName)
  19. Replies
    23
    Views
    2,677

    Re: InkEd.dll Problem

    Could the touchpad driver be interacting with InkEd? Have you tried completely disabling that device?
  20. Replies
    27
    Views
    1,824

    Re: Form Load Trigger

    The big difference is between the two functions is not performance, but what happens when you have multiple instantiations of the same form...
  21. Re: Center Unicode Caption on Form in VB6

    That doesn't work for me on Windows 10 if the caption length goes over one byte. (255)
  22. Replies
    27
    Views
    1,824

    Re: Form Load Trigger

    I suspect there is also confusion about whether non-visual event handling like timers and comm events are considered "UI" or not, you might want to add a sentence about that to your writeup, Elroy.
  23. Thread: Mscomm?

    by ahenry
    Replies
    19
    Views
    1,808

    Re: Mscomm?

    Did you bump up the OutBufferSize property? How big are the files you are transmitting, bigger than 32K?
  24. Replies
    7
    Views
    749

    Re: ParamArray Problem ?

    Yes those are the string pointers, for some reason it's being interpreted as Long..

    Maybe you could use some of the tricks here to access the original values before the type is mangled:...
  25. Replies
    6
    Views
    784

    Re: Collection, array, dictionary ...

    PROVINCIA is what, the province name? Is this the only thing that you need to associate with the PR#, or will there be other properties you might want as well? And why do you have 20.000 instead of...
  26. Re: based this link... Get value from web table

    Without totally changing your approach:

    Each cell in the table is also a DOM element. So you can find the child elements of the cells that are "a" nodes, and read their href property.
  27. Replies
    9
    Views
    1,881

    Re: Two Controls, One Event

    A WithEvents variable is no different from any other VB variable - if you assign to it twice the old value is erased! Why would you expect it to trigger an event from a button that it isn't pointing...
  28. Replies
    1
    Views
    517

    Re: Memory Management in VB6

    What do you mean by "not always the same half of the memory"?

    As a start, maybe check https://www.vbforums.com/showthread.php?543969-Classic-VB-Memory-Leak-Prevention-and-Detection
  29. Re: PicBox Scale method - Issues with Scrolling smoothly - Code Provided

    The simple way to do that in your case would be to take the redraw calls out of MouseMove, and put them into a timer that's set with an interval of 50ms or so.
    Then you just enable the timer in...
  30. Re: PicBox Scale method - How to?

    Doing significant processing inside the MouseMove event is bad enough, but a DoEvents as well is just asking for trouble. Take that out.
  31. Replies
    29
    Views
    4,806

    Re: Dynamic UDT TypeLibs

    Very nice work Elroy. I would have loved to have this 20 years ago when I was dealing with sharing and serializing public UDTs between ActiveX exes, regular exes, and ActiveX dlls.
  32. Re: Desktop Icons (not a VB6 question, but I though y'all'd have an answer)

    I have almost the same setup as you, except I leave the laptop display on. But my primary display is one of two full-size monitors, and all shortcuts are on the primary display - running the latest...
  33. Replies
    19
    Views
    1,988

    Re: GetLastInputInfo() problem

    Look up what Windows hibernate is, it might surprise you.
  34. Replies
    26
    Views
    2,172

    Re: Dir$() can leak file handles? Really? How?

    Looks like there was a lot of context in that statement, my guess is it didn't directly involve Dir$ at all. Better not to go down the rabbit hole of everything in those other threads.
  35. Replies
    19
    Views
    1,988

    Re: GetLastInputInfo() problem

    Even disregarding the Idle call, your GetTickCount returning 5 1/2 days at "startup" has to be wrong somehow.

    Edit: You probably have "fast startup" turned on which does a partial hibernate on...
  36. Thread: Using MSCOMM

    by ahenry
    Replies
    2
    Views
    526

    Re: Using MSCOMM

    That's basically all you need, it's a pretty simple control. Have you tested in HyperTerm / TeraTerm first?



    With MSComm1
    .CommPort = 1 ' Numeric value of the COM port
    .Settings =...
  37. Replies
    11
    Views
    967

    Re: Linear and non-linear equations?

    I would definitely go with .NET for this - you'll have options for libraries, something like https://numerics.mathdotnet.com/LinearEquations
    In vb6 you'd need to integrate with libraries in other...
  38. Replies
    48
    Views
    3,825

    Re: VB6 own GET# is buggy when loading/saving UDT

    If a program is "stuck", it's either waiting for something, or it's in an infinite loop, which you should be able to see in task manager. So having a file lock really is one of the most likely...
  39. Replies
    19
    Views
    1,988

    Re: trivial question

    Are you sure you are doing a full startup and not a sleep or hibernate?
  40. Replies
    11
    Views
    1,099

    Re: inet_pton rückgabewert immer 0

    That declaration of connect is for the IPv4 structure - I presume you redeclared it for IPv6?
Results 1 to 40 of 271
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width