Search:

Type: Posts; User: Caine

Search: Search took 0.02 seconds.

  1. Re: VB6 QUESTION: Has anyone built an installer using VB6?

    It's on disk 3: \COMMON\TOOLS\VB\UNSUPPRT\SHELLLNK.
  2. Replies
    42
    Views
    3,806

    Re: Add-Ins, what do you use them for?

    That actually worked. Instead of waiting for like 10 seconds, MZ-Tools now loads almost immediately. I tried v8 of MZ-Tools (trial) first, but the problem persisted. Your hack worked on my system....
  3. Re: Quick question about self-subclass based on Paul Caton's method

    That's exactly my understanding. IIRC, there's a well commented ASM listing from Paul Caton over at Githubs PSC repo. As long as LaVolpe didn't change too much, the behavior should be the same.
  4. Re: mouse drag not working in vb6 editor

    Did you by chance disable the option "Drag-and-Drop Text Editing" under Options → Editor → Window Settings?
  5. Re: QueryActCtxW returns weird result

    Never mind, this is just some padding, as confirmed by a small sample project in C++. I was pretty tired last week.
    Manually adding the appropriate padding to the structure or using a type library...
  6. [RESOLVED] QueryActCtxW returns weird result

    Has anybody ever tried QueryActCtxW with CompatibilityInformationInActivationContext? I'm currently on Windows 10 1909 (Build 18363.1916) and somehow the information returned is different from what's...
  7. Replies
    82
    Views
    69,944

    Re: [VB6] Manifest Creator II

    For what it's worth, according to the docs the value of the <supportedOS> tag is the same for Windows 10, Windows 11, Windows Server 2016, Windows Server 2019 and Windows Server 2022. Unless there...
  8. Replies
    35
    Views
    15,574

    Re: [RESOLVED] Replacement for StrConv(vbFromUnicode)

    Well, you've just read a file encoded in UTF-8. You need to use StrConv to convert it to UTF-16.

    Since you're trying to get rid of StrConv, you could use MultiByteToWideChar. Here's a snippet (air...
  9. Replies
    14
    Views
    2,701

    Re: GetObject Problem with Printer hDC

    I'm on Windows 10 1909.

    My code works perfectly with a form object, like this (new Project -> copy paste into Form1):

    Option Explicit

    Private Const OBJ_FONT As Long = 6
    Private Const...
  10. Replies
    14
    Views
    2,701

    Re: GetObject Problem with Printer hDC

    GetTextFace returns a font name and via GetTextMetrics I can retrieve the metrics of the font. The font handle retrieved via GetCurrentObject(hDCPrinter, OBJ_FONT) is identical with...
  11. Replies
    14
    Views
    2,701

    Re: GetObject Problem with Printer hDC

    Hmm, that I don't get.

    LenB(lf) correctly reports 92, while Len(lf) returns 60. This is also completely in sync with the return value of GetObjectW(hFont, 0, ByVal 0&), which returns 92.

    The...
  12. Replies
    14
    Views
    2,701

    Re: GetObject Problem with Printer hDC

    I just don't know why this wouldn't work and I'm getting the impression that I'm missing a crucial point somewhere. I'm able to use GetTextMetrics and GetTextFace to retrieve some information but I...
  13. Replies
    14
    Views
    2,701

    [RESOLVED] GetObject Problem with Printer hDC

    Hi folks!

    I'm trying to execute the following code to get a LOGFONT structure of the default font from the printer:



    Dim lf As LOGFONT, hFont&, hDCPrinter&

    hDCPrinter =...
  14. Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

    First of all, thank you very much for your efforts, Krool. Your controls work very reliably and I use them quite often these days.

    I do have an issue with ImageLists and property pages, though....
  15. Re: [VB6] - Class for subclassing windows and classes.

    @wqweto
    I understand the part with the performance optimization. I just don't get this part:

    Private Function GetFlagPointer() As Long
    Dim he As PROCESS_HEAP_ENTRY
    HeapLock hHeap
    ...
  16. Re: [VB6] - Class for subclassing windows and classes.

    @The trick
    You probably shouldn't use HeapLock and HeapUnlock when creating the heap with the HEAP_NO_SERIALIZE flag as stated in the MSDN:
  17. Replies
    10
    Views
    2,157

    Re: Registry Name from Handle

    Yes, the length field shouldn't be part of the string content. Thanks for pointing that out!

    You're right about using magic numbers too. I'd definitely do that in production code.
  18. Replies
    10
    Views
    2,157

    Re: Registry Name from Handle

    Here's an example I used some time ago. I also stumbled over the Stackoverflow answer Eduardo referenced.

    Note: Calling the function for the opened key "HKEY_LOCAL_MACHINE\Software\Microsoft"...
  19. Replies
    3,725
    Views
    1,854,116

    Re: ListView AutoSize question

    Just don't use LvwColumnHeaderAutoSizeToHeader with the last column. According to MSDN "If you use this value with the last column, its width is set to fill the remaining width of the list-view...
  20. Replies
    7
    Views
    816

    Re: Instead code smart...

    Rubberduck doesn't play nice with huge projects but your mileage may vary. You may also want to check out MZ-Tools. You can still find v3.0 online which was the last free version.
  21. Replies
    19
    Views
    1,638

    Re: FYI: JetBrains Mono for VBIDE font

    Looks nice. Been cycling through Hack, InputNarrow, and Fira Code. I'll be sure to give this a spin.
  22. Replies
    82
    Views
    69,944

    Re: [VB6] Manifest Creator II

    Thanks for creating this invaluable tool. I've been using it for quite some time now and it has always come in handy!

    I recently stumbled over an incorrect configuration when trying to use the...
Results 1 to 22 of 22



Click Here to Expand Forum to Full Width