Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 2.78 seconds.

  1. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    I even see one guy on YouTube using his anti-vax rhetoric to sell his line of branded nutritional supplements and exercise gadgets and videos. The old "Get healthy for invulnerability" schtick.
  2. Re: What are square brackets used for in VB6?

    Fester is just a silly demo class with a DISPID_EVALUATE member.

    Fester.cls

    Option Explicit

    Private Space As Collection

    'NOTE: Procedure ID = -5
    Public Function Range(ByVal Scope As...
  3. Thread: l wonder

    by dilettante
    Replies
    11
    Views
    162

    Re: l wonder

    I'm not sure most things you might find are going to accept "audio" in arbitrary formats. There are a few DirectShow Filters out there, but they only provide data for you to build a display from. ...
  4. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    I think it is less of an issue with individuals here than certain rabble-rousing groups try to make it to gather in new dupes to control.
  5. Thread: l wonder

    by dilettante
    Replies
    11
    Views
    162

    Re: l wonder

    I think you mean "oscilloscope" but they don't do that. You probably want something that apes a graphical audio spectrum analyzer.
  6. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    If you are writing JPEG photo processing programs don't forget about maintaining EXIF and other JPEG file metadata. Everything from original timestamps and geolocation data to camera...
  7. Re: What are square brackets used for in VB6?

    Oh, another case can be used in calling a DISPID_EVALUATE member of a late-bound object.


    Private Sub Main()
    Dim Fester As Object 'Must be late-bound instance.
    Dim Range As Collection
    ...
  8. Re: What are square brackets used for in VB6?

    They can be used in a few restricted cases. One is for delimiting strings that are not legal identifiers (spaces between words for example) when using the "bang" syntax to access a collection item. ...
  9. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    I just tested one of my PlgBlt() demos with a 5808x4096 JPEG ("Cookie twist" as linked in the previous post here).

    Works just fine. But it isn't using WIA 2.0 for anything.
  10. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    All of these things have answers.

    In this case the StdPicture object does have what you'd need. If the image type is bitmap, then its Handle property is an hBitmap value. Other types (icon,...
  11. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    Not strange really. WIA 2.0 is for acquiring images from still cameras and scanners and doing some simple processing of the images. Most people don't even install their camera drivers, so it is...
  12. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    As far as I can tell there is no alpha, so 8 bits are just reserved and should be 0.

    ARGB is a different thing, and the byte order is reversed. I don't think a PictureBox ever holds an ARGB...
  13. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    I hadn't thought about the smoke, but its impact here has been minor though visible from time to time. But it might also figure into things a lot out west.
  14. Replies
    20
    Views
    403

    Re: flippin bits

    He made a wildly incorrect claim about "languages." I simply corrected that.
  15. Re: String has quote by default. How to remove that quote from string?

    But if the value contains quotes it gets more complicated than that.

    I think he's just lost trying to make sense of the Watch Window display.
  16. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    When I wrote:



    I was writing on the fly. That was incorrect.

    Well, except when it is correct. This works fine, though it is subject to the "slow Add method" problem:


    Option Explicit
  17. Replies
    20
    Views
    403

    Re: flippin bits

    It isn't about "languages" at all. It is about hardware representation.

    Look at a language like Fortran or C that exist on many platforms. They always follow the hardware.

    That's also what...
  18. Re: String has quote by default. How to remove that quote from string?

    Excel has its own "hillbilly variant" format for cell contents.

    It can do crazy things. If you try to stuff "123" into a cell via its automation interface it tends to coerce the value to some...
  19. Replies
    20
    Views
    403

    Re: flippin bits

    Seriously? Just use 255, or if it makes you feel better &HFF. I don't see the issue.
  20. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    Just to be a troublemaker (What? Moi?) I can think of two other maps I'd like to see for starters:

    State by state travel inward directly from the U.K. I suspect they've acted as The Crossroad of...
  21. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    If you really, really wanted to work in quads instead of triples there are issues. Sometimes, such as when processing a PNG with alpha channel values, we need to do this.

    While we can write a...
  22. Replies
    20
    Views
    416

    Re: [RESOLVED] WIA Automation

    I found a bug, but one that we get lucky with in this case.

    This line:


    .biSize = Len(BMI.bmiHeader)

    Should, by rights, be:
  23. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    While I think vaccination is important and effective, I remain convinced that there are other (perhaps greater) factors we haven't been told about.

    Compare these two maps:
    ...
  24. Replies
    4
    Views
    133

    Re: Gameboy Color Repair Service

    Aren't there plenty of really cheap knockoffs with better displays that can play the old cartridge games as well as having a large number of "clone" games in built-in flash? A quick search showed...
  25. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    My preferences have nothing to do with it. Globalism is ending, U.S. citizens have stopped supporting it. That's just reality.

    I don't see why taxpayers should keep footing the bill rewarding...
  26. Replies
    20
    Views
    416

    Re: WIA Automation

    If we are starting with a PictureBox we can take a lot of shortcuts. It has an hDC and when AutoRedraw = False its Image property is selected into it, so:


    Option Explicit

    Private Const...
  27. Replies
    171
    Views
    4,057

    Re: To Afghan or to not Afghan

    Where in the World: Split Rock, and Afghan Minerals



    "Belt and Road" is more marketing than reality.
  28. Re: Is it possible to get an example of how to drag an image from ?

    Oh, I agree. I suppose as people become more passive consumers globally programming forum sites in their native Elbonian have dried up, driving more people here trying to use machine translation as...
  29. Re: Is it possible to get an example of how to drag an image from ?

    Actually we have pretty good support for scanners in VB6. That's why Windows gives us WIA 2.0 in the first place.
  30. Re: Error accessing the system registry - VB6 on Windows 10 (Win 7 compat)

    There is also that notorious problem with Windows 7 SP 1 that will never be fixed.

    In the process of trying to make MS Office 64-bit work, the Office Team played games with a number of VB6 OCXs...
  31. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    You could use the animated state-by-state history map here:

    https://www.mayoclinic.org/coronavirus-covid-19/map

    It also offers a 14-day forecast.


    The figures seem to match other sources...
  32. Replies
    4
    Views
    139

    Re: Drag Drop problem....

    Well it isn't really that exotic. You need to break it down and examine the steps.

    All it is really doing is handling control dragging, but while doing that compares the dragged control's...
  33. Replies
    20
    Views
    416

    Re: WIA Automation

    I'm not sure why you'd use this library late-bound. Did you copy this from some old VBScript example?

    In any case:

    No, there is not a direct way to load a StdPicture's bitmap into a WIA...
  34. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    On the surface that might seem to make some sense... until you realize that it doesn't.

    One of the first nasty mutants arose in the U.K., and most of the spread of Delta globally came through the...
  35. Re: GetPixel() replacement - read from a BITMAP buffer instead

    If you are starting with just the hDC you will probably have to fetch its selected hBitmap.


    So first create a junk hBitmap with CreateBitmap(), 1x1 pixel is probably good enough.

    Then use...
  36. Re: GetPixel() replacement - read from a BITMAP buffer instead

    Everything about this seems so scatterbrained. "From the screen?" Is this a Goggle Translate issue?

    Why wouldn't you just use GetDIBits() against the bitmap of the DC you want to pixel-peek?
    ...
  37. Replies
    4
    Views
    139

    Re: Drag Drop problem....

    This demo uses lightweight UserControls instead of fat and stupid CommandButton controls. This not only saves a ton of "weight" but also lets you bury a lot of housekeeping within the UserControl...
  38. Re: Access Object Browser items from an addin

    If you never got the SDK when it was still posted then you won't have the documentation (a CHM Help document).

    About the only thing left online now might be Visual Basic: Inspect COM Components...
  39. Thread: Democracy

    by dilettante
    Replies
    19
    Views
    254

    Re: Democracy

    Democracy? That system also known as "Tyranny of the Majority?"

    There is a reason why so many new governments founded during the Enlightenment are republics. Mob rule doesn't work particularly...
  40. Replies
    2
    Views
    198

    Re: "Alpha wipe" image transition

    You can tweak a few of the constants used, to alter the effect a bit. Probably a lot of room for bug fixes and other improvement too so don't worry about tinkering.

    Think of it as a first draft...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width