Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 0.64 seconds.

  1. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    I'm only saying you normally don't need more than 4 to 6 sizes. The gaps can be filled in by scaling, and the scaling is done better using the new API calls than the old ones left over from Windows...
  2. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    You seem to be missing the point.

    What if your ICO lacks the specific size required at run time?

    Sure, if a match is found then the matching size gets used. But if the current DPI settings...
  3. Replies
    7
    Views
    345

    Re: Simple NAS Appliances

    Looks like the router-as-NAS option is a good one. The little USR device I described above only takes 1 drive up to 2GB.

    My TP-Link Archer router can beat that:



    So I could use 2 USB drives...
  4. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Also see LoadIconMetric function for cases where you just need the two "form" icon sizes.

    This also scales down from larger as needed, or if not found only then scales up. This is definitely...
  5. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Easy.

    Scaling down from an image with more picture information is usually (almost always) better than scaling up from less information.

    If it wasn't true the new call would never have been...
  6. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Actually it picks the closest match for current screen color depth and size. If no exact match is found it chooses the next smaller size and scales up. Always, unless (I suppose, though it is not...
  7. Re: Faster Maths with LongLong / Floating numbers

    If the issue is just the need to do some mass computation more quickly why not just write a static DLL in C and invoke that from your VB6 program?
  8. Replies
    519
    Views
    15,873

    Re: The US fragile democracy Exposed

    Most of that was framed to get a reaction. But many of the reactions seem to devolve into derangement, and entirely miss:



    If there is such a labor glut that the market can take advantage of...
  9. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    I was hoping that there might be some "secret format" used by StdPicture/IPicture to wrap a multiimage icon from an ICO file. But I tested OleLoadPicture() with an ICO file and it merely loads a...
  10. Replies
    7
    Views
    345

    Re: Simple NAS Appliances

    BTW: Many recent routers have a USB port that can accept a hard drive as well as support for sharing. Often these provide SMB file sharing, FTP on older devices, DLNA media sharing, and sometimes...
  11. Re: 3031 'Not a valid password' when compiled, works in IDE

    The "password" is probably a share-level password on the MDB. Few users seem to even be aware of Jet user-level security and database object permissions.

    We don't know what's going on because we...
  12. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    I tested at 175% DPI. Sees to work fine after adding a GDI Scaling node to the manifest ("System (enhanced)" scaling appcompat feature in Windows 10 1703 Creator's Update Redstone 2 March 2017, and...
  13. Replies
    519
    Views
    15,873

    Re: The US fragile democracy Exposed

    Low skilled, low end, temporary and part-time high schooler joblets were never meant to provide a living wage. What you seem to be after is some Slacker's Paradise at the expense of every one else....
  14. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    The problem is that SM_CXSMICON returns 24 at 150% DPI, etc.
  15. Replies
    519
    Views
    15,873

    Re: The US fragile democracy Exposed

    Yeah. Gotta love that thriving Windows Phone market, eh? Oh wait, that isn't a thing, is it?

    Too bad they trashed their lead and went .Net and shot themselves firmly in both feet.
  16. Replies
    519
    Views
    15,873

    Re: The US fragile democracy Exposed

    So not only would a lot of small business have to close or severely reduce staffing and hours, making it harder to compete will turn even more of the economy over to large corporate interests, and...
  17. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Size was less of an issue before High DPI. If you tried to include every size ever needed your ICO files get pretty darned big.
  18. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    It's basically a crude version of what the code I posted does. One thing it fails at is scaling if your ICO doesn't contain exactly the image sizes/depths you want. It "smudges upward" which is bad...
  19. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Lots of reasons.

    To be compatible with Windows rather than carrying a lot of baggage to support some arbitrary hack.

    The ICO format supports icons at multiple color depths and sizes. A small...
  20. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Short answer:

    Bypass the Icon property. Just don't use it.

    Instead use IconLoad.SetIcon provided above in post #8.
  21. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    When you add an icon to a Form at design time it is stored in the Form's FRX file. The icon of the startup Form also gets added as an icon resource, as the EXE's icon.

    As far as I can tell, OLE...
  22. Re: how to Get Sha512 Fast by vb6 use api CryptCreateHash

    Exactly. I don't think the language barrier helps much either.

    If you want the HMAC take a look at examples in the CodeBank.
  23. Replies
    1
    Views
    133

    Re: What skills are needed for IoT?

    What do you want to do?

    Normally to accomplish much here you need at least some fundamental electronics background. You can play around with breadboards but you need soldering skills to do...
  24. Replies
    519
    Views
    15,873

    Re: The US fragile democracy Exposed

    Well I'm not aware of the details. Any idea how it would work?

    When Convenience Store Chad gets his bump from $7.50 to $15... does Bed Pan Beth currently working as a nursing aid for $15 get...
  25. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Yes and no. I think the problems come in when the FRX data gets used.

    VB was never updated to handle very large images or color depths above 8-bit color directly. Most of the limitations seem to...
  26. Replies
    26
    Views
    58,928

    Re: how to copy a file in vb6

    Sounds like a pachinko machine program if there are multiple open connections on the same database. You would only need to do this in rare cases.

    The ADODC is a nightmare. It was only ever...
  27. Replies
    35
    Views
    532

    Re: Prevent Form_Activate

    Don't use Form_Activate unless your program needs to for a legitimate purpose.

    Much of what a Form needs to do to initialize can be done in Form_Initialize or in Form_Load. However a few things...
  28. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    This is a completely different issue than you led us to believe earlier.



    And this is a 3rd issue, again completely different from the other two.

    In order to use high color icons with VB6...
  29. Replies
    35
    Views
    532

    Re: Prevent Form_Activate

    If the issue is to perform actions one time on load that require control siting (things like invoking the SetFocus method) there is a way to do that.

    In the Form_Load handler you can defer those...
  30. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    Here's an example that ignores DPI (assumes 100%) and loads an icon into PictureBox controls in increasing sizes from a DLL:


    180327

    It assumes Windows Vista or later.
  31. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    We'd need to know more about your situation.

    What OS? What DPI setting? If not 100%, then how are you dealing with DPI scaling in your program? Where are you using the icons (what controls)? ...
  32. Re: Win-10 Fax and Scan and HP2400 Scanner Issues

    Scanners can be cranky.

    I have one that honestly admits that it can't manage contrast, brightness, etc., another that lies (and then fails if you try to set values), and another that can do it...
  33. Re: Icon loaded from resource DLL gets blurred, but fine if loaded in IDE

    That is some awful code, full of "don'ts," inconsistencies, incorrect comments, and worse. Looks like some copy/paste cowboy cobbled it together.

    If you check the documentation though you will...
  34. Replies
    10
    Views
    233

    Re: COPY file from C:\ to ftp dir...

    Better yet use a modern server that supports secure and firewall-friendly WebDAV.
  35. Re: Win-10 Fax and Scan and HP2400 Scanner Issues

    I need my eyes (or maybe my head) examined. I thought this had been posted to the VB Q&A Forum. Duh.

    Good point about drivers. Nothing is supported forever and sometimes generic device drivers...
  36. Replies
    26
    Views
    58,928

    Re: how to copy a file in vb6

    Option Explicit

    Private Sub Main()
    Const ssfPERSONAL = 5

    With CreateObject("Shell.Application")
    MsgBox .NameSpace(ssfPERSONAL).Self.Path & "\HHA\HHA.mdb"
    End With
    End Sub
  37. Replies
    26
    Views
    58,928

    Re: how to copy a file in vb6

    Wasn't this "C:\Users\username\Documents" even as far back as NT 4.0? Or at least since Vista?
  38. Replies
    26
    Views
    58,928

    Re: how to copy a file in vb6

    There shouldn't be any "C:\My Documents" directory. At least not for a very long time (Win9x?).
  39. Thread: Log out

    by dilettante
    Replies
    7
    Views
    207

    Re: Log out

    Maybe the OP forgot to wash his hands?
  40. Replies
    18
    Views
    3,188

    Re: Can vb6 detect the DPI?

    What?

    This seems like a poor way to address the matter. If you can't handle DPI directly or through GDI Scaling there should be a "warning on the tin" (advertising, installation screen, etc.). ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width