Search:

Type: Posts; User: fafalone

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    13
    Views
    245

    Re: Help finding old code sample here on VBF

    Public Declare Function GdipCreateBitmapFromStream Lib "gdiplus" (ByVal stream As IStream, ByRef bitmap As LongPtr) As GpStatus

    Public Function GetGDIPBitmapFromThumbStream(sFile As String) As...
  2. Replies
    6
    Views
    338

    Re: [RESOLVED] FAT32 Quick Format above 32gb

    There's also the Virtual Disk Service COM interfaces; e.g. IVdsVolumeMF::Format.

    These aren't in oleexp yet but I'm working on adding them for the next version. Will release it as soon as I'm done...
  3. Replies
    13
    Views
    245

    Re: Help finding old code sample here on VBF

    It's by dilettante originally, I posted a oleexp-based version, it uses IStream and GDI+... but you're thinking of a *different* video thumbnail project, also likely by me or dilettante, also using...
  4. Replies
    13
    Views
    245

    Re: Help finding old code sample here on VBF

    That method works with thumbnails disabled... but I'm not sure what else you could mean that uses IStream and GDI+. Loading the file itself into an IStream would be redundant when you can just pass...
  5. Replies
    13
    Views
    245

    Re: Help finding old code sample here on VBF

    This? https://www.vbforums.com/showthread.php?761717-VB6-Shell-Video-Thumbnail-Images

    Btw if you don't like the shell object (I don't), you can get the same property via


    Dim pItem As...
  6. Replies
    6
    Views
    313

    Re: Load files outside the program

    Did you save it in the property bag properly? You can't just reference another file and have it automatically load.
  7. Replies
    19
    Views
    575

    Re: Confusion about Interfaces

    There is an IPicture interface but it's hidden and like the other interfaces in stdole2.tlb, VB6 restricts what you can do with it.

    Here it wouldn't matter anyway-- the default definition of...
  8. Replies
    19
    Views
    575

    Re: Confusion about Interfaces

    1) That mess is part of why VB6/VBA don't allow you to use Implements on interfaces that inherit from anything besides IDispatch or IUnknown, and it handles those two under the hood. In twinBASIC...
  9. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    I would check the behavior on Win7 and 8 too because even though those APIs and interfaces are supported, I'm not sure if they had long path name support prior to 10. Of course it would be like XP...
  10. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    Unfortunately SHCreateShellItemArrayFromDataObject, IEnumShellItems, and IShellItemArray are only available on Vista+, so it would work on Windows 7, but not XP. You could do something similar to get...
  11. Replies
    30
    Views
    1,452

    Re: MakeDLL problem

    It's about as similar to VB6 as VB.NET is, so yes, entirely different.

    And you could have just conceded the point instead of make ridiculous claims like a "professional" such as yourself can write...
  12. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    It's meant as an alternative to the DragQueryFiles method. First, the zip download containing oleexp.tlb comes with a file called mIID.bas, add that (Project menu->Add File...) so all the IID_...
  13. Re: Enum items in Devices and Printers possible on x64?

    Oh by the way, looks like I never posted the solution to the original question. While there's no way to enumerate 64bit control panel items from a 32bit program (although ucShellBrowse is now...
  14. Did DragDrop UIAccess requirements get raised?

    I was disappointed to find that simply enabling UIAccess on a token wasn't enough to get cross-elevation drag drop to work, but everything I've read on here and elsewhere suggested running from...
  15. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    Bad news; I was able to start programs with UIAccess enabled on the token, but it doesn't bypass the trusted location and signature requirements :(

    Edit: Even more bad news, apparently self-signed...
  16. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    The official way to do it is enable UIAccess in the manifest. In addition to that, your exe must be signed and reside in a trusted location like Program Files.

    I was actually looking at another,...
  17. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    Yes I read somewhere that by Windows 10, IShellItem could support long path names.
  18. Re: How to load a .WEBP image into a PictureBox using WIC?

    What do you mean crashes hard; and with which method? Both my typelib and Victor Bravo's class should just return an error HRESULT, not hard crash.
  19. Re: [VB6] Register any control as a drop target that shows the Explorer drag image

    Have you tried the method in post #2?
  20. Re: Use GDIPlus to display image from a resource file?

    GdipCreateBitmapFromResource

    Or you can load them and get an HICON or HBITMAP... GdipCreateBitmapFromHICON, GdipCreateBitmapFromHBITMAP.
  21. Replies
    30
    Views
    1,452

    Re: MakeDLL problem

    Your "professional" standpoint is that you should pick an entirely different language, inevitably poorly implement your code in it because you won't have any experience, then use that, because this...
  22. Replies
    30
    Views
    1,452

    Re: MakeDLL problem

    Why learn FreeBasic when twinBASIC supports standard DLLs from existing VB6 code? :wave:
  23. Replies
    4
    Views
    331

    Re: WIN 10 COntrol Panel

    You can list the applets and some go deeper.

    It's a problem because 32bit, though.

    Grab my ucShellBrowse control and see where you can go; give the 64bit tB version a try to see the difference ...
  24. Re: Typelib translation: is in,out BYTE somevar[8] a pointer?

    You can pass a ByVal 8 bytes to As Any? And it puts them all on the stack?
  25. Typelib translation: is in,out BYTE somevar[8] a pointer?

    If I saw this in a UDT I know the answer is no, and even if I saw it as plain in; but since I'm always getting errors about out parameters needing to be pointers...

    What's the correct...
  26. Re: how to dropfile from explorer to chrome/ie file area?

    I need to do more research to figure out if the pointer can be used as is or needs something like CoMarshalInterface, but it starts with getting an IDropTarget pointer from GetPropW(hwnd,...
  27. Thread: TwinBasic

    by fafalone
    Replies
    1,818
    Views
    895,838

    Re: TwinBasic

    Setting aside WebView; I don't think ParamArray can be used in the way you're trying. The values are passed on the stack; it's fixed at runtime. You can pass an array as a single argument inside a...
  28. Re: SHBrowseForFolder doesn't show folders in devices

    The Windows shell (Explorer) represents items as an IShellFolder and item id list. IShellItem wraps these and allows access to more properties and methods.

    What exactly are you trying to do? Even...
  29. Replies
    30
    Views
    1,452

    Re: MakeDLL problem

    https://github.com/fafalone/LinebreakRepair

    Need to add .dsr to the extensions list if you're running it on an addin.
  30. Re: SHBrowseForFolder doesn't show folders in devices

    IFileOpenDialog in FOS_PICKFOLDERS mode can handle it I believe (as can my ucShellTree [VB6 version, twinBASIC version] and ucExplorerTree [twinBASIC only; can compile ocx for VB6] controls); but...
  31. Replies
    30
    Views
    1,452

    Re: MakeDLL problem

    What exactly is happening? And what are you looking for to compare; do you need the original source files? Might be some arcane registry issue; compile with a higher version number and no...
  32. Replies
    21
    Views
    767

    Re: Sudden Icon Problemos..

    10000 examples of using lstrcpyW on this site, we need to explain what you're doing wrong twice because you won't look at them?

    You didn't correct all of the issues I already pointed out. Or let...
  33. Replies
    36
    Views
    1,840

    Re: Legality and future of VB6

    Yeah RadBasic has been working on that for 3 years and still is at the 'Hello World' phase; can barely manage the most trivially simple things, can't even make API calls yet, and last I checked can't...
  34. Re: Using IUserNotification Interface to show system-tray balloon

    That wasn't an issue on Windows 7?

    Not sure how to handle it; nothing is working. Made the variables module level, set IQueryContinue to cancel it then Sleep 2*polling interval, and still it hangs...
  35. Replies
    21
    Views
    767

    Re: Sudden Icon Problemos..

    lstrcpy expects a pointer to where it's copying to passed ByVal; you're passing 0. And then if you changed it to VarPtr, you're copying the string into the tail end of the arrays and overwriting the...
  36. Re: Using IUserNotification Interface to show system-tray balloon

    My UserNotification2 sample with the oleexp COM interfaces is still working normally for me on Windows 10.
  37. Replies
    21
    Views
    767

    Re: Sudden Icon Problemos..

    How are you setting it? Probably getting caught up with ANSI/Unicode issues.
  38. Replies
    21
    Views
    767

    Re: Sudden Icon Problemos..

    Have you still not downloaded the SDK to check the definitions?


    typedef struct _NOTIFYICONDATAW {
    DWORD cbSize;
    HWND hWnd;
    UINT uID;
    UINT uFlags;
    UINT uCallbackMessage;...
  39. Replies
    21
    Views
    767

    Re: Sudden Icon Problemos..

    No idea how it showed up at all.

    NOTIFYICONDATA is defined wrong (Long can't be substituted for fixed-length C-style arrays), so everything starting with szTip is corrupt; the callback message is...
  40. Replies
    36
    Views
    1,840

    Re: Legality and future of VB6

    Conversion wasn't simple at all unless you had a dead-simple app using no API calls. There was no VarPtr etc! It was, and still is, an entirely different language built on an entirely different...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width