Search:

Type: Posts; User: TedH

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,118

    Re: MSCOMM control freezes the VB6 IDE

    I have now installed another pair of virtual com ports using a different virtual port creator program.
    If I now use one of these ports the VB6 IDE does not freeze, so it is almost certainly a bug...
  2. Replies
    4
    Views
    1,118

    Re: MSCOMM control freezes the VB6 IDE

    This makes no difference.

    I think "wqweto" suggestion that it is a problem with a background thread "blocking" is most likely.
    I have now found that if I wait long enough (4-5 minutes) with the...
  3. Replies
    4
    Views
    1,118

    [RESOLVED] MSCOMM control freezes the VB6 IDE

    Hi,
    I have a simple program that uses the MSComm control. The program runs fine as an EXE, and also runs ok within the VB6 IDE. However, when running it in the IDE, closing the program always causes...
  4. Downloadi the contents of a chm help file topic page to a file.

    Hi,

    I have a project that uses a chm help file. I can display a help page using the code (for instance):
    lngHandle = HtmlHelp(hwnd, AppHelpFile, HH_DISPLAY_TOPIC, "mytopic.html")
    This all...
  5. Re: Program not closing correctly when PC is closed.

    Thank you for the suggestions.
    I tried the simple ones but they did not help.

    However, LaVolpe got it right!
    The query_unload events were taking too long (actually just one of them was the real...
  6. Program not closing correctly when PC is closed.

    I have a program consisting of an MDI form with multiple child forms.
    When I close the program it closes in the correct way every time, with no problems at all.

    However...
    If I press the “Power”...
  7. Replies
    45
    Views
    9,587

    Re: Rubberduck VB6 IDE support

    Just installed Rubberduck.Setup.2.3.0.4221 on the old laptop, and it works fine.
    No "duplicate menu" in the VB6 IDE problems!

    Ted.
  8. Replies
    45
    Views
    9,587

    Re: Rubberduck VB6 IDE support

    Just installed Rubberduck.Setup.2.3.0.4221 on the old laptop, and it works fine.
    No "duplicate menu" in the VB6 IDE problems!

    Ted.
  9. Replies
    45
    Views
    9,587

    Re: Rubberduck VB6 IDE support

    OK, I will hopefully try it later today.
    I do not have MS Office on this PC. I use LibreOffice for "office" functions.
    There is a folder "Microsoft Office" in "Program Files (x86)" full of all...
  10. Replies
    45
    Views
    9,587

    Re: Rubberduck VB6 IDE support

    Windows 10 1803, with latest updates. VB6 SP6

    I may give it try on another PC (and old "sacrificial" laptop), but I am reluctant to try it again on my main PC.

    Ted.
  11. Replies
    45
    Views
    9,587

    Re: Rubberduck VB6 IDE support

    Tried it here. It installed ok, but added another new RubberDuck menu to the VB6 IDE very time it started.
    A whole long row of them!

    Uninstalling it did not fix the problem. There appeared to be...
  12. Re: Deleting selected records from a large database table

    > Lookup(CStr(.Properties("Jet OLEDB:Engine Type").Value))

    Reports: Jet Engine Type is JET4X
  13. Re: Deleting selected records from a large database table

    It doesn't use Access. It uses the MS Jet engine that comes with Windows.
  14. Re: Deleting selected records from a large database table

    OK, some progress.

    Changing the database from Shared mode to Exclusive mode has helped. I don't know why it was ever opened in shared mode, as it is a single user system.

    The SQL method now...
  15. Re: Deleting selected records from a large database table

    Many thanks for all the suggestions.

    The PC is a fast, modern one. 8GB ram, Intel i5 2.2G processor, but who know what sort of computer other users are running it on?

    This is not a "paying...
  16. Re: Deleting selected records from a large database table

    >>Doesn't seem all that hard:


    The results I got using your code were:

    Database created and compacted. Took: 13,032 ms.
    Type to delete is: 0
    Database re-opened. Took: 0 ms.

    Deleted...
  17. Re: Deleting selected records from a large database table

    About 27000 records in total.
    The delete might be about 5000 to 10000 records.
  18. Re: Deleting selected records from a large database table

    Just tried that.
    The CreateQueryDef method works ok, but takes exactly the same amount of time as
    the Dbs.Execute method.
  19. Re: Deleting selected records from a large database table

    Ok, I ran some tests with the same block of test data each time.

    I ran
    Dbs.Execute "DELETE FROM " & tblAcronym & " WHERE " & acrSOURCE & " = '" & sRecordType & "'"
    It took 60 seconds.

    I added...
  20. Re: Deleting selected records from a large database table

    Thanks for those comments.

    The DB is not on a network share.
    The primary (and only) index is on another field.
    I was not using a transaction wrap.

    I will try adding an index and/or using a...
  21. Deleting selected records from a large database table

    I'm looking for some thoughts or explanation of the following.

    I need to delete a number of records of a specific type from a very big table (many thousands of records)

    I thought the most...
  22. Re: IDE crashing after running a program with subclassing

    I have now changed the code to

    Dim udtENLINK As ENLINK, tNMHDR As NMHDR
    ...
    Case WM_NOTIFY
    CopyMemory tNMHDR, ByVal lParam, Len(tNMHDR)
    If tNMHDR.code = EN_LINK Then ...
  23. Re: IDE crashing after running a program with subclassing

    I am getting confused here.

    Windows defines the ENLINK structure as such.
    Contains information about an EN_LINK notification code from a rich edit control.
    typedef struct {
    NMHDR nmhdr;
    ...
  24. Re: IDE crashing after running a program with subclassing

    Thanks,
    Point noted!
  25. Re: IDE crashing after running a program with subclassing

    Sorry, that was a cut&past error.
    it is actually SetWindowSubclass Me.hwnd, AddressOf SubClassProc, ID, 0
  26. Re: IDE crashing after running a program with subclassing

    It does use CopyMemory.

    Private Type ENLINK
    hwndFrom As Long
    idFrom As Long
    Code As Long
    msg As Long
    wParam As Long
    lParam As Long
    cpMin As Long
  27. Re: IDE crashing after running a program with subclassing

    Private Declare Function DefSubclassProc Lib "comctl32.dll" (ByVal hwnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    Private Declare Function SetWindowSubclass...
  28. Re: IDE crashing after running a program with subclassing

    Thanks.
    I assume the program was ok with the exe, but you might be right about it crashing silently.

    I will download that subclassing library and give it a try.
    The program contains a lot of API...
  29. IDE crashing after running a program with subclassing

    I have a VB6 program that uses subclassing. As a compiled exe it works fine.

    If I run it within the VB IDE it also works fine, but on closing the program the IDE crashes, sometimes immediately and...
  30. Replies
    3
    Views
    1,553

    Re: ADS. Using FindFirstStreamW and FindNextStreamW

    >I didn't do it with FindFirstStream though, but with GetFileInformationByHandleEx.. but it returns more info than FindFirst.. anyway:

    Thank you for that information. I will give your code a try...
  31. Replies
    3
    Views
    1,553

    ADS. Using FindFirstStreamW and FindNextStreamW

    Hi,
    I am trying to use the Windows API calls FindFirstStreamW and FindNextStreamW
    to enumerate any Alternative Data Streams in a file.

    The call always returns INVALID_HANDLE_VALUE regardless of...
Results 1 to 31 of 31



Click Here to Expand Forum to Full Width