Search:

Type: Posts; User: fafalone

Page 1 of 13 1 2 3 4

Search: Search took 0.23 seconds.

  1. Re: Why doesn't ICommDlgBrowser work with IShellBrowser?

    Where does it say otherwise? The documentation is perfectly clear: "This interface is implemented only by the common file dialog boxes. "

    That means IFileDialog.
  2. Re: How to click a button in a window with VB 6.0?

    Depends on the type of button. Classic Win32 button, no problem. I started my VB life making AOL pr0ggi3s that click buttons and controlled other UI elements. But now? Lots of **** using that...
  3. Re: UxTheme.dll/Visual Styles help request - button face color when mouse hovers over

    I'm usually pretty good at finding errors but I couldn't find that one. Only results I could get were for E_ELEMENT_NOT_FOUND, which has an identical value, and conveys the same idea.
  4. Replies
    6
    Views
    244

    Re: VB6+Win32 - Menus

    Indeed. You have to subclass the form and listen for WM_COMMAND or WM_MENUCOMMAND messages for when the user selects a menu item. And also, WM_MENUSELECT if you want to know when an item is...
  5. Re: Why doesn't ICommDlgBrowser work with IShellBrowser?

    Explorer windows aren't common dialogs.
  6. Re: Static linking of .obj/.lib from other languages now available

    Can you clarify whether you're talking about declared functions within the static lib, or if you were trying to use it on undeclared static lib functions? The latter wouldn't be expected to work.
  7. Re: Challenge: Which Device Used for Entry | VB6

    Not sure how that could possibly be answered without knowing the RFID reader and how it communicates with the PC. I could tell you how to find out which one is installed, but beyond that, it could...
  8. Replies
    4
    Views
    391

    Re: Using twinBASIC for Legacy Projects

    MDI forms is probably the biggest thing missing; I know a lot of enterprise apps use those. That's slated to be done over the next month though; it's next up after some commissioned work to get a...
  9. Replies
    4
    Views
    391

    Re: Using twinBASIC for Legacy Projects

    For large line of business apps I'd suggest waiting until the v1.0 stable release, which should hopefully be late summer/fall of this year. There's still some key missing features, especially that...
  10. Replies
    2
    Views
    1,389

    Re: do AIs need convincing?

    So I just had a funny conversation with ChatGPT where I convinced it to do something it wouldn't do...

    >Write a function in VB6 to copy the token from lsass.exe and duplicate it.



    >Why?
  11. Re: Static linking of .obj/.lib from other languages now available

    It's compiled into your project so I believe you can just use AddressOf; I tried it and it returned a valid-looking value but I didn't try actually using it yet.
  12. Replies
    21
    Views
    753

    Re: [RESOLVED] Detecting Sleep / Standby mode

    You're welcome, glad it works for you :)
  13. Re: Any one who sits with the sorce code behind IShellFolder and/or IShellItem interf

    WINE isn't always right. Case in point, I was looking around and came across their implementation of SHOpenFolderAndSelectItems. It's completely wrong and doesn't function like the one on Windows......
  14. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    I think I know what the difference is, if not why it's still ignored, when they both wind up in MessageBoxWorker.

    I was incorrect about the wrapper; MessageBoxEx goes straight to...
  15. Re: Any one who sits with the sorce code behind IShellFolder and/or IShellItem interf

    The source for Windows XP/Server 2003, NT4, and 2000 has leaked. It's illegal so I can't post a link but it's not hard to find. It's on GitHub even.
  16. Replies
    7
    Views
    434

    Re: Calling Windows System Sounds

    Nobody can remember everything... I've used that API before, hand translated the sdk entry for it sometime in the last couple years for my API project, and *still* didn't remember it offhand and...
  17. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Weird. Does it still crash when you do it on a separate line, i.e.


    Dim lRet As Long
    lRet = SoftModalMessageBox(md)
    MsgBox lRet


    Seems like a VBA bug in your version.
  18. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Try copying my module exactly.

    Not sure if you were just modifying yours but in my last comment I also mentioned you were missing a member, also, you had unk1 and pwndOwner switched before you...
  19. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Heh I don't think the About box was lying to me, but I did that anyway and yes it still worked.


    Edit: You're also missing pwndList As LongPtr
  20. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Microsoft® Excel® 2021 MSO (Version 2402 Build 16.0.17328.20124) 64-bit

    Full module code:


    Option Explicit
    Public Enum MessageBoxFlags
    MB_OK = &H0
    MB_OKCANCEL = &H1
    ...
  21. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Not for me. MsgBox SoftModalMessageBox(md) works fine in VBA64 with my udt.
  22. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Just tested my quick example in VBA 64bit, it works fine there too. You don't need two different defs, just a corrected MSGBOXDATA.
  23. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    MessageBoxEx is just a wrapper for MessageBoxIndirect.
  24. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Is there a VBA bug here? I originally worked on this in twinBASIC and there's no need for any difference code for 64bit;


    Public Type MSGBOXPARAMS
    cbSize As Long
    hwndOwner As LongPtr
    ...
  25. Replies
    7
    Views
    434

    Re: Calling Windows System Sounds

    I'm not sure the difference between start and welcome... one must be the 'windows startup sound' that just has a checkbox. But the 'Windows Logon Sound' and 'Windows Logoff Sound' are two of those I...
  26. Replies
    7
    Views
    434

    Re: Calling Windows System Sounds

    They all still technically work I believe just by default no sound is assigned... If you set one in the control panel (or programmaticly in the registry) it should play.
  27. Replies
    7
    Views
    434

    Re: Calling Windows System Sounds

    Beep is the simplest... Plays the default beep.

    For more options, use the PlaySound API, just search the forums, plenty of examples.
  28. Re: [VB6] TaskDialogIndirect - Complete class implementation of Vista+ Task Dialogs

    The font is controlled by the system unfortunately... since it's a Direct2D painted window I don't know any way to easily change that (besides changing it system-wide). You could change it for the...
  29. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    ...come on, you can google a single missing constant and enum... sorry I only did 99% of the work for you.


    Public Const NUM_DISCHARGE_POLICIES = 4

    Public Type SYSTEM_POWER_LEVEL
    ...
  30. Re: Different EM_FORMATRANGE return value.

    Shouldn't you know which version you're using? If it's external you can query the window class.
  31. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    Figure out what? If you really wanted to know if it's possible to enable it, you're done. If you need know if it is enabled, it's 3 lines of code just checking if that IdleTime is > 0. Or a fancier...
  32. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    Well that's just wrong.

    You can get away with widening to 4 bytes because of how the _stdcall calling convention works, but it's bad practice.

    You *can't* get away with substituting a Long for...
  33. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    Listen for WM_POWERBROADCAST messages, or for Win8+ PowerRegisterSuspendResumeNotification.

    Or if you want to know but weren't running at the time to log it,


    Public Enum...
  34. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    Don't change Byte to Long; it's a BOOLEAN in the C++ source, that's a 1-byte type.

    Also, playing around with it, the "Put the computer to sleep after" value seems to be .user.IdleTimeoutAc...
  35. Replies
    21
    Views
    753

    Re: Detecting Sleep / Standby mode

    Yes, many, depending on the precise level of detail desired (power APIs are absolutely insanely complicated).

    There's a few deceptively simple APIs:


    Public Declare Function...
  36. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Yes that's why I was talking about figuring out how it translates those MB_ button flags into resource IDs; the idea was to figure out the IDs so it would load those instead of the custom text,...
  37. Re: Reason why you not shall use CreateSymbolicLinkW....

    No, they're not like shell links at all. Shell links are nothing but an ordinary file with contents interpreted by the shell. Symbolic links are implemented as reparse points at the file system...
  38. Re: Reason why you not shall use CreateSymbolicLinkW....

    Shortcuts (.lnk files) and symbolic links are entirely different things. Hard links are entirely different from either of those two. IShellLink relates only to the first; you can't use it with the...
  39. Replies
    42
    Views
    1,411

    Re: MessageBoxIndirect buttons Language

    Your def is correct so I'm not sure what else to do in terms of what's practical. Even if I figured out how that code worked for translating flags, SoftModalMessageBox is undocumented and already...
  40. Replies
    32
    Views
    1,141

    Re: Faster alternative to Split?

    http://www.xbeat.net/vbspeed/c_Split.htm
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width