Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 2.47 seconds.

  1. Re: How much memory is taken up by an array?

    See https://www.aivosto.com/articles/stringopt2.html#memorylayout for they structure of each String or element of a String array.



    One thing left out of that is that a String can also hold ANSI...
  2. Replies
    10
    Views
    325

    Re: Single Room Air Conditioner

    Well, you could also buy some rope to tie around the PC. Then dangle the entire thing out the window wrapped in a garbage bag to keep the rain off. Voila!
  3. Replies
    3
    Views
    118

    Re: Relative path vs Absolute path

    Of course that doesn't explain anything related to relative paths.

    Are you misusing terminology? Perhaps you mean UNC paths vs. mapped paths?
  4. Replies
    3
    Views
    118

    Re: Relative path vs Absolute path

    Normally you would always run the IDE with elevation.

    Under split-token operation mode (UAC not disabled) a member of the Administrators group has two security profiles. Each of these has its own...
  5. Re: How much memory is taken up by an array?

    Don't forget the array descriptor for dynamic arrays:
  6. Replies
    1,980
    Views
    122,609

    Re: Corona virus, China major city lockdowns, etc.

    Had my second dose last Thursday. Felt a bit crappy the next 2 days and had some itchiness in that upper arm the 2 days after. Otherwise my symptoms were about the same as dose #1: some upper arm...
  7. Replies
    6
    Views
    150

    Re: get data from html table

    Looks illegal to scrape:
  8. Replies
    1
    Views
    139

    Re: UCase$ Invariant?

    Can't tell, but I assume it is locale-aware.

    Have you looked at CompareStringW function yet?
  9. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    You're still grasping. And besides, I offered an approach that can do this without ICO spelunking.
  10. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    Yes, there is one absurd case. And today it often is not in ICO format anyway.
  11. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    Sounds entirely contrived. ICO is not an image format you would normally store in a database or download. But ok, I guess.

    You could also make use of OleLoadPictureEx() to do this:


    Public...
  12. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    Is there some reason to avoid LoadImage()?


    180988


    Option Explicit

    Private Const WIN32_NULL As Long = 0
  13. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    ByVal presbits As Byte

    This makes no sense because the "p" tells the reader that you are passing a pointer but a pointer would be a Long, not a Byte.


    ByRef resbits As Byte

    Makes more...
  14. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    Why not just use LoadImage() instead?
  15. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    I think the problem is that you are passing the contents of an ICO file ("icon bag") that normally contains a directory structure and then one or more images.

    This function wants an icon image's...
  16. Replies
    9
    Views
    299

    Re: Move to line

    Dim F As Integer
    Dim Text As String

    F = FreeFile(0)
    Open "sample.txt" For Input As #F
    Line Input #F, Text
    Debug.Print Text
    Seek #F, 1
    Line Input #F, Text
    ...
  17. Replies
    29
    Views
    539

    Re: CreateIconFromResourceEx not working

    Stuff like:


    ByRef presbits As Any

    Is sort of hilarious. You are saying to pass a pointer ("p") ByRef, but that's not what you are doing or supposed to be doing. Instead:


    ByRef resbits...
  18. Replies
    9
    Views
    299

    Re: Move to line

    If you insist on using the bloated and slow FSO at least avoid magic numbers. Those values have predefined names, e.g.:


    Set ts = F.OpenAsTextStream(ForReading, TristateFalse)

    TextStream...
  19. Re: Deploying PDW setup to Windows 10 64 bit

    See Description of the Windows File Protection feature:
  20. Re: Deploying PDW setup to Windows 10 64 bit

    That's a little old now. Probably missing many monthly updates as well as the 20H2 version update for Windows 10.

    I can't find a list of changes but I assume they are mainly security and...
  21. Re: Deploying PDW setup to Windows 10 64 bit

    That looks correct. You can manually edit the LST file or update it using the Wizard again.
  22. Replies
    36
    Views
    783

    Re: .txt files

    Another standard tool for this is Microsoft's Log Parser 2.2 which is quite stable and widely used.

    This provides a command line utility wrapping the library, a full ActiveX API, SQL queries, and...
  23. Re: Deploying PDW setup to Windows 10 64 bit

    You should be excluding the VB6 core runtime files ("VB6 Runtime and OLE Automation") from your package. Long ago those files became protected system components of Windows and it will defend against...
  24. Replies
    36
    Views
    783

    Re: .txt files

    It sounds like writing the sorted data isn't required. Your intended use of the sorted data might help you choose what tools to use. There are numerous options but picking a good one should...
  25. Replies
    4
    Views
    198

    Re: VB6 Windows Server Migration

    Even if you solve the (unrelated to VB) Terminal Services licensing issue, you may have work to do.

    Most programs were not written to take Terminal Services access into account. Most older...
  26. Replies
    3
    Views
    221

    Re: Can I simulate WM_TOUCH?

    I'm not certain, but I suspect that a supported USB multitouch touchpad might be your best course of action for that.
  27. Re: In a very large project, how to deal with thousands of interface classes?

    .Net has the advantage of overloaded methods. So an interface might have "one method" that is really 8 or 9. Not sure whether that figures into the issue for VB6.
  28. Replies
    10
    Views
    325

    Re: Single Room Air Conditioner

    Of course in short order an enclosed space can end up damp and humid. Bad for electronics and it won't feel nice for very long either.

    Better option:

    Get rid of gratuitously wasteful...
  29. Replies
    7
    Views
    321

    Re: Cylinder projection to 2D globe

    Thanks, I see what is being done there now.

    Basically the same idea, but compressing scanlines with a "circular" approach in code rather than StretchBlt(). That code first creates an image for...
  30. Replies
    7
    Views
    321

    Re: Cylinder projection to 2D globe

    One thought on a "cheat" to make the result look slightly better. Better in terms of replacing the linear blitting with an approximation of "circular" blitting.

    Divide each scanline into 4...
  31. Replies
    7
    Views
    321

    Re: Cylinder projection to 2D globe

    I read that thread but I still can't see how any of it applies. Perhaps I am just too obtuse?


    In the meantime I have gone through the code and optimized it, but mostly I moved to GDI calls to...
  32. Replies
    1,980
    Views
    122,609

    Re: Corona virus, China major city lockdowns, etc.

    Wireless charging is wastefully inefficient. I can't imagine it will remain legal in China as its energy crisis grows.
  33. Re: How to make the length of module name and class name exceed 39?

    Private Sub Form_Load()
    With New C234567890123456789012345678901234567890
    .X = 10
    End With
    End Sub

    Runs just fine. But a public class in a DLL might not I suppose.
  34. Re: How to make the length of module name and class name exceed 39?

    So 39/40 seems to be in question. Doesn't hurt to assume 39 though.
  35. Re: How to make the length of module name and class name exceed 39?

    The docs say 40 characters. But since a line of code should not exceed 80 I can't imagine how longer names make any sense.

    "Modern" programs have readable code? Er, not really.
  36. Replies
    1
    Views
    160

    Re: Batch Copy Files

    Look up the FileCopy statement.

    Also, in modern Windows the system drive root is a protected location. You should not be dumping folders in there.
  37. Replies
    7
    Views
    321

    Re: Cylinder projection to 2D globe

    I forgot to mention: Yes, I realize the demo code rotates Earth in the wrong direction. Easy enough to fix, but I was more interested in mapping the source image onto the presented face of the...
  38. Replies
    7
    Views
    321

    Re: Cylinder projection to 2D globe

    BTW:

    I play all of those games with scaling because I wanted this to work no matter the ScaleMode of the destination "canvas" (PictureBox here, but might also be a Form, UserControl, etc.).

    You...
  39. Replies
    7
    Views
    321

    Cylinder projection to 2D globe

    This belongs in Games and Graphics but it seems that posting rates are so low nobody goes there. But a mod could always move this too.


    I was curious as a non-graphics programmer how people do...
  40. Re: Issues with VBA code for a range. I'm getting Type Mismatch Error 13

    Another idea: Post in the correct forum?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width