Search:

Type: Posts; User: fafalone

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Is it possible to change the font type in Msgbox ?

    Yes, but with hooks and subclassing (e.g. here), so you might prefer just using your own Form made to look like a MsgBox.
  2. Re: Get Extended details of video device used

    If you're sure the video files even have that field, you might need a different property handler. The default Windows one doesn't expose all properties.

    If you can see it in Explorer or the...
  3. Replies
    12
    Views
    558

    Re: Can't get "Class" AddressOf to work

    It's in the same Caton selfsub code as zAddressOf (which it calls internally, but does a bunch of stuff before and after).
  4. Replies
    12
    Views
    558

    Re: Can't get "Class" AddressOf to work

    I don't know enough about exactly how it works to tell you for sure *why*, but I can suggest using scb_SetCallbackAdress, as I successfully use it for the very similar EnumChildWindows in my...
  5. Replies
    15
    Views
    411

    Re: This code doesn't wok in 64bit

    What do you mean it's not working in 64bit then?

    That code isn't written to run under 64bit Office versions. The VB part. Presumably asm too as you'd need to use x86-64 asm.

    Are you saying...
  6. Replies
    5
    Views
    283

    Re: ballon tootip on treeview

    I'm partial to subclassing the treeview, setting the TVS_INFOTIP style then responding to TVN_GETINFOTIP.
  7. Re: [VB6] TaskDialogIndirect - Complete class implementation of Vista+ Task Dialogs

    Just like the MsgBox, the TaskDialog isn't asynchronous so the only option that doesn't involve doing it through the timer callback would be running it in a different thread. Which is very difficult...
  8. Re: [twinBASIC] x64-compatible port of Event Tracing for Windows File Activity Monito

    Update - Version 2.2.2
    -twinBASIC now allows AddressOf on Function class members, and now has a PictureBox control. The project has been updated to put all subclassing and related back in the main...
  9. Re: Make a custom file preview handler and register it in Windows?

    I haven't tested it yet but here's what it basically look like to create a Edit control to preview a file as text:


    Option Explicit
    '**********************************************************...
  10. Re: Best practices to check if an array is empty

    Then there's the fact that 1d arrays in UDTs can be fixed arrays, which will best case just fail and worst case make your program blow up if you try to use the ArrPtr variation of VarPtr in some of...
  11. Replies
    11
    Views
    482

    Re: MSCOMM32.OCX Surprise??? / Windows 11

    Yeah never use one of those terrible pirated "Portable Editions"...


    ...there's high quality pirate full disc ISOs to be had ;)
  12. Re: Make a custom file preview handler and register it in Windows?

    I'm working on a demo now so I want to make sure everything works before updating the master versions, but if you want to play around with it sooner I'm attaching an updated oleexpimp.tlb with new...
  13. Re: [VB6] TaskDialogIndirect - Complete class implementation of Vista+ Task Dialogs

    There's an example of that in the set of examples in the first couple posts:

    185737



    Private bRunProgress As Boolean
    Private lSecs As Long
  14. Re: Make a custom file preview handler and register it in Windows?

    It looks pretty straightforward if you've done shell extensions in VB6 before... you'd create an activex dll and implement the interfaces... there's an example in C++ in the Win7 SDK that should...
  15. Replies
    14
    Views
    556

    Re: Using Sound Effects in VB?

    Loading a file every time is probably going to be too slow for properly synced sound effects; it would be better to first load the sound effects into memory (read the file into a byte array) and use...
  16. Replies
    8
    Views
    381

    Re: VB6 on Win 10 64bit

    I use it for viewing type libraries where I only have the TLB or it's embedded in a compiled binary. It produces it as an IDL text source you can copy out to modify/use in other projects.

    It will...
  17. Replies
    14
    Views
    556

    Re: Using Sound Effects in VB?

    For games the best bet is probably using DirectSound, The trick made a VB6-compatible typelib for it.
  18. Replies
    8
    Views
    381

    Re: VB6 on Win 10 64bit

    Why would you not install the OLE Viewer, it works fine and is super useful. A lot of the tools that get installed with C++ are useful too. Trying to install the JVM usually results in setup...
  19. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    I'm confused by this... do you mean the class to host an instance of Explorer? But then that would display the images.

    And there is a common dialog replacement... the FileOpenDialog/FileSaveDialog...
  20. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    Use SHDoDragDrop as per post #8

    Since you're comfortable with subclassing, you'd turn off OLE Drag Drop and call SHDoDragDrop when you receive an LVN_BEGINDRAG or LVN_BEGINRDRAG notification. You...
  21. Replies
    3,464
    Views
    1,390,603

    Re: CommonControls (Replacement of the MS common controls)

    You don't need to register them yourself, if you tried, that's probably where the problem arose.

    Krool has updated the tlb in compatibility-breaking ways several times without changing the GUID...
  22. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    If you want to look at it from the other side, I also have a project that shows how to initiate a drag operation for shell elements with the fancy modern methods.

    ...
  23. Replies
    3,464
    Views
    1,390,603

    Re: CommonControls (Replacement of the MS common controls)

    I have no problem getting the demo project to run.

    TLB files (assuming that's what you mean) get registered when you add them or open a project referencing them. You might run into trouble if you...
  24. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    Lots of good reasons to upgrade to that; but it doesn't implement IDropTarget itself, if you do, you can move the implementation of IDropTarget right inside the control if using the .ctl version, or...
  25. Re: API structure needing unsigned long to pass a large value

    Great if you have to take user input in regular base10 decimal; but if you already know the number the same result as above is achieved with MyLong = &HFFC99ABB.

    OS constants are usually defined...
  26. Re: API structure needing unsigned long to pass a large value

    Where are you getting the value from?

    Signed vs unsigned only comes into play when you need to interpret the underlying data; if you're doing math on it or displaying it. Both a signed Long and...
  27. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    It will free the reference automatically when it's done but yes the Explorer process that you dropped it from will be locked until the function exits (but that's unavoidable with drag drops in...
  28. Re: VB6 MSHFlexGrid OLEDragDrop converts Files() non-Ansi characters into question ma

    Well you have a couple options. When there's a drop you can just bypass the DataObject you're given and use the OleGetClipboard API to access the clipboard's IDataObject directly,
    Public Declare...
  29. Replies
    16
    Views
    648

    Re: Redirect folders from boot SSD

    You can do this programmatically too; see IKnownFolderManager::Redirect, IKnownFolder::SetPath, and SHSetKnownFolderPath (this one can set it for other other users if you create a token for them).
  30. Re: FILL listview or msflexgrid b ased year variable

    What have you tried so far?
  31. Re: Simple way to clear the immediate window in code

    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Public Declare Function FindWindowEx Lib "user32" Alias...
  32. Replies
    22
    Views
    667

    Re: C POINT Data Type passed ByRef in x64 ?

    They are aligned to 4 bytes on x86; it's caused some headaches for me in the past when I didn't know that and was dealing with an interface using a ByVal GUID.
  33. Replies
    694
    Views
    271,019

    Re: Vb6 , the Future, and what I have discovered

    I got:

    VB6-OptimizeFast 1.519531
    VB6-NoOptimize 5.070313
    VB6-PCode 9.089844
    VB6-IDE 12.4043

    TB109-Win32 10.93555
    TB109-Win64 10.192981
  34. Re: MS Word security notice when creating a Word object and Word is already running

    You can remove the flag that tells Windows it's a file from the internet.

    ZoneStripper

    Pretty simple code; with a reference to oleexp.tlb:


    Public Sub RemoveFileSecurityZone(sFile As...
  35. Replies
    22
    Views
    667

    Re: C POINT Data Type passed ByRef in x64 ?

    You can't keep the official declaration no. Well I guess you technically could if made an alias for "POINT" that wasn't actually a structure and just an 8-byte type. You could then copy it into a...
  36. Re: [twinBASIC] x64-compatible port of Event Tracing for Windows File Activity Monito

    Update - Version 2.2
    This is an update only for the twinBASIC version. I've added the option to have a column that shows the command line of the process (under More... in the options box). Since no...
  37. Re: Setting Default UPLOAD folder (not download)

    This is more of a Chrome/Edge question. You'll have to find out where it's storing the last directory and change it. Upload from some unique path, search the registry, search its settings files,...
  38. Replies
    6
    Views
    304

    Re: Combobox default

    cboMonths.ListIndex = #
  39. Re: Need help to use opengl function - glReadPixels

    It's not likely to be able to handle a variant or safearray.

    You'd want Dim bBytes() As Byte, ReDim bBytes(W*H*3-1) (assuming that's a sufficient size)

    Then you use either bBytes(0) or...
  40. Replies
    694
    Views
    271,019

    Re: Vb6 , the Future, and what I have discovered

    twinbasic.com and https://github.com/twinbasic/twinbasic

    It's actually pretty far along. Doesn't have all VB controls or UI stuff (though it does have basic forms with a few controls), but it does...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width