Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 1.16 seconds.

  1. 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.
  2. 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)? ...
  3. 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...
  4. 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...
  5. Replies
    7
    Views
    121

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

    Better yet use a modern server that supports secure and firewall-friendly WebDAV.
  6. 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...
  7. Replies
    23
    Views
    58,831

    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
  8. Replies
    23
    Views
    58,831

    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?
  9. Replies
    23
    Views
    58,831

    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?).
  10. Thread: Log out

    by dilettante
    Replies
    4
    Views
    128

    Re: Log out

    Maybe the OP forgot to wash his hands?
  11. Replies
    18
    Views
    3,127

    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.). ...
  12. Thread: Log out

    by dilettante
    Replies
    4
    Views
    128

    Re: Log out

    Er, there is no "userform" in VB programs. I smell VBA.
  13. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Our problems are less easily managed by making wishes than by making a smaller dent in the available resources. Without getting population growth in hand we'd be in a serious death spiral.

    So...
  14. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Population decline
  15. Replies
    23
    Views
    58,831

    Re: how to copy a file in vb6

    Well if the posted code is real:
  16. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Tesla Supercharger:


    https://www.youtube.com/watch?v=0heLGE-oF0o
  17. Replies
    23
    Views
    58,831

    Re: how to copy a file in vb6

    I'm not sure he knows the difference between a String literal and invoking a property of a control.
  18. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    The sun was in your eyes, the ground was wet, the gods were angry, Russia did it, etc. But you actually won if you squint just so and besides you'll get 'em next season!
  19. Thread: Lupin ?

    by dilettante
    Replies
    14
    Views
    273

    Re: Lupin ?

    I immediately thought of this too:


    https://www.youtube.com/watch?v=-su913cwje8
  20. Replies
    20
    Views
    395

    Re: Accessing a class/obj from another .exe

    It isn't just about the OP, even when you believe the old chestnut "I just want to know how to crack passwords for my own education." Wink wink. There is also the matter of becoming a searchable...
  21. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Hmm? I admitted I've been wrong. I've ceased worrying about the damage Biden can do, at least the scale of that damage.
  22. Replies
    20
    Views
    395

    Re: Accessing a class/obj from another .exe

    Yeah, you can never be sure who has been taken over by the Body Snatchers and who hasn't yet.


    180286
  23. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    I don't really have an ox to gore any more, and very little axe to grind.

    Now that it has become clear that the die has been cast, and the fact that I've been retired nearly 10 years, politics is...
  24. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Er, that's exactly what you have done. I showed the total energy production from low-carbon sources while you cherrypicked.

    An economy does not run on electricity alone. The UK remans a big...
  25. Replies
    20
    Views
    395

    Re: Accessing a class/obj from another .exe

    That's one of the things we have ActiveX EXEs for.
  26. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    One of the things that gets as little media coverage as possible is "Wexit," the desire of western provinces to secede from Canada to the US. Alberta has arguably been the strongest agitator.
    ...
  27. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Another tentacle of the octopus:


    https://www.youtube.com/watch?v=5MFKJ0PuE0o
  28. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Who remembers Michael Moore's censored 2019 documentary "Planet of the Humans" that was briefly on YouTube last year?

    I think it might still be on Amazon, not sure there are other sources...
  29. Replies
    10
    Views
    353

    Re: Unique System Code

    Never rely on WMI for security. Better yet, never use it within any application. It was never meant for this.

    Just google things like WMI spoofing and you'll get plenty of hits on ways to...
  30. Re: Is there an ActiveX component for parsing a URL?

    Look at the dwFlags argument. As far as I know that should be able to handle encoded UTF-8.

    There is also UrlUnescapeW function (shlwapi.h) and friends to consider.

    If your program must run...
  31. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Shorter, far more condensed version of Zeihan's read on where we are. it omits energy, food, the future of big cities, etc. but covers the biggest issues: demographics and the end of the Bretton...
  32. Re: Is there an ActiveX component for parsing a URL?

    See InternetCrackUrlW function (wininet.h).
  33. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    It's not all bad. There are cases where wind or solar can make good sense. It's just not a panacea and probably won't ever replace 50% of coal, gas, and nuclear.

    I hate that, but it is what it...
  34. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    There are a lot more components involved than just the raw PV panel itself. Not to mention the interconnections which corrode severely or less so based on the ambient environment.

    6.1. Main...
  35. Thread: MMM error

    by dilettante
    Replies
    23
    Views
    594

    Re: MMM error

    Well, the good news for me is that the agreement expires in June of 2022. That means there could be an MMM 1.0 released as open source after that.

    I just think it might be too late by then to be...
  36. Replies
    495
    Views
    15,121

    Re: The US fragile democracy Exposed

    Describing reality is not the same as promoting it.

    We have a long way to go to balance energy production and use. There is a lot of improvement remaining to be made in power transmission and...
  37. Thread: MMM error

    by dilettante
    Replies
    23
    Views
    594

    Re: MMM error

    It doesn't matter what anyone else does.

    Note that the released source is pretty messy though. It was written "in the dark" with short time constraints.
  38. Thread: MMM error

    by dilettante
    Replies
    23
    Views
    594

    Re: MMM error

    No, they never sold it.

    When I first got permission they didn't care as long as it was not worked on during work hours using their office, PCs, etc. But I had never mentioned source code. Sadly...
  39. Thread: MMM error

    by dilettante
    Replies
    23
    Views
    594

    Re: MMM error

    Er, the "it" being my work on SxS technology. Basically they claimed what I had learned while employed there as "work for hire" even though it was done at home.
  40. Thread: MMM error

    by dilettante
    Replies
    23
    Views
    594

    Re: MMM error

    With no pressure to release it I was able to take it in another direction. The UI is completely different, and a lot of it is driven by config file data for each Project to make it less interactive....
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width