Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Thread: flippin bits

    by Elroy
    Replies
    23
    Views
    556

    Re: flippin bits

    A statement I made:



    And, in reference to that, you stated:



    You know? I should probably let this go, but this point just keeps bugging me. I've scoured the web, and find only one...
  2. Replies
    8
    Views
    284

    Re: About the opposite of DoEvents???

    Just trying to actually answer the question, about the best I could come up with is that the opposite of DoEvents would be to "ignore the message pump" for some period of time.

    With that...
  3. Replies
    8
    Views
    284

    Re: About the opposite of DoEvents???

    I'm not clear on why you'd jump into all the complexities of multi-threading, when you're going to wait on the second thread to finish anway. IMHO, the whole reason for multi-threading is so you can...
  4. Replies
    9
    Views
    384

    Re: What are square brackets used for in VB6?

    About the only place I use them is as field name delimiters when getting/setting data within a database, and I've gotten to where I exclusively do it that way, except in the cases where I have to...
  5. Thread: l wonder

    by Elroy
    Replies
    15
    Views
    461

    Re: l wonder

    It sounds like y'all have this one covered. We're definitely talking about some Fourier Transformation that produces amplitude bars for pre-defined ranges of frequencies.

    This makes me remember...
  6. Thread: flippin bits

    by Elroy
    Replies
    23
    Views
    556

    Re: flippin bits

    Lewis,

    For grins, I put the following together for you. They allow you to "see" a Byte as signed, if you so choose. An Integer is used because it's actually 2's complement. I just treat the...
  7. Re: String has quote by default. How to remove that quote from string?

    s = Replace$(s, """", "") ' Is that what you're looking for?


    That assumes you're pulling the cell values into a VB6 string before you're processing them.
  8. Thread: flippin bits

    by Elroy
    Replies
    23
    Views
    556

    Re: flippin bits

    WOW, sorry, I didn't know we were talking about the whole world of CPU processors, past, present, and future. I suppose I was primarily thinking of Windows x86 & x64 processors.

    EDIT: I guess...
  9. Thread: flippin bits

    by Elroy
    Replies
    23
    Views
    556

    Re: flippin bits

    Lewis, you know? As I re-read your OP, it dawns on me that maybe you just need to get a hex calculator. The Windows calculator does a fairly nice job of it (in programmer mode):

    182342
    ...
  10. Thread: flippin bits

    by Elroy
    Replies
    23
    Views
    556

    Re: flippin bits

    Lewis,

    It seems there is a misunderstanding somewhere. Sure, other languages have signed bytes, but virtually all languages these days use 2's complement for integers (of any/all sizes) these...
  11. Replies
    21
    Views
    2,769

    Re: VB6 32bits accessing Office 64bits

    Personally, I'm not sure I understand the question. What's the difference between installing MS-Office-32-bit versus MS-Office-64-bit, given that the Windows OS is 64-bit? Hmmm, I guess you'd have...
  12. Re: Need help or documentation on vba6.dll functions, Eb api

    That's really quite cool. It could come in handy for an add-in that did project documenting.

    I also figured out that a type=24 is what's returned for SUB procedures. Apparently, 24=void return....
  13. Replies
    21
    Views
    2,769

    Re: VB6 32bits accessing Office 64bits

    Yeah, since 2019, I've now got several clients using my primary VB6 application with Office 64-bit installed. My application does substantial automation of Office (mostly Word and Excel) programs,...
  14. Re: How do I get rid of Msgbox when opening Microsoft Visual Basic 6 ???

    Since I deleted DATAVIEW.DLL from my C:\Program Files (x86)\Microsoft Visual Studio\VB98 folder, I don't think I've ever seen it again.

    Also, as outlined above, I'm running VB6_SP6, and running...
  15. Re: Rounding a 4 decimal place number to 2 decimal places

    WOW, I don't care what any random webpage says ... when you actually have two or more digits of precision, and you're rounding, you don't round each level of precision. You simply take the single...
  16. Replies
    16
    Views
    479

    Re: [RESOLVED] Select Case True

    I use Select Case True quite a bit, and see no problems with it at all. However, if I can identify a single variable for the Select Case [test], I will use that. But, sometimes, the conditions just...
  17. Re: Allow editing code while running, or auto-pause

    Hi Eduardo. I read the OP that he wants that to "automatically" happen when he alt-tabs to/from his program.

    I guess he also wants an F5 (run) when he alt-tabs away from the VB6 IDE (if the IDE...
  18. Re: Allow editing code while running, or auto-pause

    It's possible, but I wouldn't advise it. From my vision of doing this, it would take two things, neither of which I'd advise:

    1) In an IDE AddIn, a system-wide hook that monitored when program...
  19. Re: Access database multi-process access, how to update immediately?

    In all the decades my code has been executing, I've NEVER had anyone complain about database read/write performance. But yeah, flushing the write cache immediately will have a small effect on...
  20. Replies
    0
    Views
    240

    System Wide Got/Lost Focus (subclassing)

    This is just a small example of how one might accomplish system wide GotFocus and LostFocus events in VB6.

    The way it's setup, it's fairly IDE safe. With the Comctl32 subclassing, there are only...
  21. Replies
    2
    Views
    357

    Re: VB6 Capture Pixel from Screen

    Hi Ken,

    To do this, I typically do a screen-capture and then take the image to something like Paint-Shop-Pro to get exact colors. But your idea is pretty cool.

    However, a couple of suggestions...
  22. Replies
    26
    Views
    1,280

    Re: Copy Protection Ideas

    Personally, I wouldn't have said "relatively easy". I'm certainly not one to think through millions of uncommented disassembled lines of assembler code to try and figure out how to jump over the...
  23. Re: Access database multi-process access, how to update immediately?

    I continue to use the DAO, and have very good luck with it. However, by default, it does have both read-caching and write-caching. In particular, the write-caching caught me out a few times in the...
  24. Replies
    26
    Views
    1,280

    Re: Copy Protection Ideas

    My primary project is open-source, so I don't worry about such things.

    However, I've seen three ways of relatively strong copy protection.

    1) The use of a dongle/key to use the software. ...
  25. Replies
    2
    Views
    296

    Re: how to get date time format in js by vb6?

    I believe there are easier API ways of doing this, but the following might help you:



    Option Explicit


    Public Function Unix2DateTime(iUnixTime As Long) As Long()
    ' Returns: year(0),...
  26. Replies
    3
    Views
    4,388

    Re: [VB6] Color Functions - Blending, etc

    lizano,

    I feel that you mis-understand what LaVolpe is providing us in this CodeBank entry. Basically (in summary), he's providing us some tools for dealing with images that contain an alpha...
  27. Replies
    56
    Views
    5,060

    Re: This forum is why VB6 is still usable today

    Hello Elroy,

    could you explain that point?[/QUOTE]

    Well, I'm just thinking about all that'd be involved in making the IDE 64-bit compatible.

    When we think about the "entire" IDE, we...
  28. Replies
    56
    Views
    5,060

    Re: This forum is why VB6 is still usable today

    Hmmm, I'd say that the main reason VB6 is still used today is because Microsoft was so dumb when they wrote .NET and didn't make the language perfectly backward compatible with VB6. In fact, IMHO,...
  29. Re: How do I properly exit a For-Next loop that contains a With block?

    Just an FYI, I tried it all with a Class1 rather than using the Collection as my object, and everything works the same way:

    If we start with Private MyArray() As Class1 then we get the Array...
  30. Re: How do I properly exit a For-Next loop that contains a With block?

    Here's a partial explanation. When the "New" word is used, the array isn't locked when an element is aliased ... but, this just seems to be a compiler oversight:



    Option Explicit

    Private...
  31. Re: How do I properly exit a For-Next loop that contains a With block?

    However, wqweto, you do bring up an important point. Very specifically, it has to be a specific element within the array that's aliased before this arises. And that's precisely what happens in the...
  32. Re: How do I properly exit a For-Next loop that contains a With block?

    Ok, that makes sense, but it still doesn't seem to be consistent.

    I played around with it and figured out the following.

    This code DOES fail on the ReDim MyArray(20):



    Option Explicit
  33. Re: How do I properly exit a For-Next loop that contains a With block?

    I would think so too, but why would they do that with arrays of UDTs and not arrays of objects. At that level, it would seem that an array is an array.

    Also, the problem doesn't rear its head...
  34. Re: How do I properly exit a For-Next loop that contains a With block?

    I was also curious if putting the UDT into a TypeLib would solve the problem, and it doesn't:

    Code for Project2, with TypeLib named Project1.tlb:



    Option Explicit

    Private Sub Form_Load()...
  35. Re: How do I properly exit a For-Next loop that contains a With block?

    I knew that With/End With blocks were more than syntactic sugar, as, at a minimum, when used with objects, they create a temporary object reference that's used in the block.

    However, this use with...
  36. Re: [RESOLVED] Need help with RepairDatabase and CompactDatabase

    I've got Access 2019 installed on my machine, and here's what the button says:


    182017

    And, just playing around with some automation, this code seems to work:



    Private Sub Form_Load()
  37. Replies
    33
    Views
    1,607

    Re: [RESOLVED] Static Functions of VB6

    True ... but that's the specific case where you DO want to use Public, rather than Friend.

    And gosh, I suppose I can make a case where I might do it, but I'm not sure I've ever used a class (or...
  38. Replies
    4
    Views
    341

    Re: RGB TO LONG,Long to rgb-vb6

    Also, I'd tend to name the last byte as "a" not "N":



    Private Type RGBa
    R As Byte
    G As Byte
    B As Byte
    a As Byte
    End Type
  39. Replies
    33
    Views
    1,607

    Re: Static Functions of VB6

    Very good. Does this elevate safety in reverse engineering?[/QUOTE]

    I don't really know, but I'd argue that it does. It's probably going to compile into tighter code, without placing your...
  40. Re: Need help with RepairDatabase and CompactDatabase

    Whenever this issue comes up for me, I still tell my users to open the database with MS-Access, and to manually click the buttons therein.

    However, if I were to ever try to programmatically do...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width