dcsimg

Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    2,577
    Views
    601,582

    Re: CommonControls (Replacement of the MS common controls)

    --

    A .Refresh on the status bar wipes out the text. That doesn't seem correct.

    I'm just using it as a single StatusBar, and using the SimpleText property.

    I'm also using the source code...
  2. Re: Digging into COM from Class1 inside a standard VB6 EXE project.

    loquat,

    You want to instantiate a class that resides an another standard EXE, and it's not the one you're working on?

    That would be rather difficult, as the machine-code (once compiled) is...
  3. Replies
    6
    Views
    130

    Re: Double type in memory bit layout

    And Dz, just for a bit of history, since about the mid-1990s, virtually all languages use the IEEE standards. The reason for this is simple ... this is what virtually all CPU math co-processors use...
  4. Replies
    6
    Views
    130

    Re: Double type in memory bit layout

    And here's a related snippet of code. This turns Single precision into a binary string. I've never done it for Double precision, but it could certainly be done.



    Option Explicit
    '
    Private...
  5. Replies
    6
    Views
    130

    Re: Double type in memory bit layout

    Dz, this is just an IEEE Double. Here's the Wikipedia page.
  6. Replies
    4
    Views
    138

    Re: Left Justify Button Caption

    Perfect, thanks guys, especially to Eduardo who outlined a nice example.
  7. Replies
    4
    Views
    138

    [RESOLVED] Left Justify Button Caption

    Anybody got any idea how to left justify the caption in a command button?

    I looked at the graphical style, and no cigar.

    I also looked at using a graphical option button and/or checkbox, but...
  8. Replies
    17
    Views
    458

    Re: Copy a byte array from one app to another

    Maybe this is mentioned somewhere in the above ... but personally, I'd stuff the byte array into a string and then do a bit of subclassing and then use WM_COPYDATA to copy it across.

    Here's a post...
  9. Replies
    3
    Views
    150

    Re: Collection vs Dictionary

    It's already more-or-less been said ... but yeah, Collection is indexed on Binary Tree principle whereas Dictionary is indexed on Hash Table principle.

    Also, Collection is "built-in" whereas...
  10. Replies
    7
    Views
    254

    Re: ToolTip on Menu Item

    Hmmm, interesting. I tried turning that into a true tooltip and it's got some problems, but it's definitely something to work with. qvb6, your link also has some interesting code. I'm working some...
  11. Replies
    7
    Views
    254

    Re: ToolTip on Menu Item

    Here, I mocked up what I'd like to do:

    174533

    EDIT: Just FYI, that was photoshopped, not programmed.
  12. Replies
    7
    Views
    254

    ToolTip on Menu Item

    Ok here's another I haven't tried to do before.

    I've got a nice ToolTip procedure that puts nice multi-line balloon tooltips on the screen. However, typically, I call it in MouseMove events, and...
  13. Re: Common Controls Replacement Individual Controls

    Thanks Krool. That worked perfectly, with a bit if head-scratching negating of things.

    And VBClassic04, I apologize again for hijacking the thread.
  14. Re: Common Controls Replacement Individual Controls

    Wait, what!

    I'm being volunteered to write documentation? Eeek. Documentation isn't my thing either. Actually, truth be told, I work VERY hard to make all of my programming as intuitive as...
  15. Replies
    20
    Views
    447

    Re: [RESOLVED] Exiting a Nested For/Next Loop

    Personally, I see four approaches to doing this, three that I might use, and one I'd never use. And some (maybe all) of these are mentioned above.

    1. Use an "execute once" Do Loop, making sure no...
  16. Thread: Aliasing in VB6

    by Elroy
    Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Hi Trick,

    YES! That looks better (and safer) than what I was doing. I'm not 100% on top of all the SafeArray stuff, so let me just ask...

    That FADF_AUTO is what's keeping the global array...
  17. Thread: Aliasing in VB6

    by Elroy
    Replies
    16
    Views
    443

    Re: Aliasing in VB6

    @Eduardo: Yeah, I know I could "fix" it by using classes. I was just looking for a simpler solution. This project is already rather involved, and I was just trying to keep this section simple.
    ...
  18. Re: is the count of day are out the current month?

    Luca, There are VB6 date functions to do this (DateAdd, DatePart, Weekday, etc), but yes, what you've done will always work. VB6 uses the Windows APIs to do this, and they are quite aware of...
  19. Thread: Aliasing in VB6

    by Elroy
    Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Hi Trick,

    Yeah, I know I can alias a global (or module) variable by passing it as local (variant or not). But that doesn't quite get at what I'm trying to do either.

    To simplify, I've got a...
  20. Thread: Aliasing in VB6

    by Elroy
    Replies
    16
    Views
    443

    Re: Aliasing in VB6

    Hi xiaoyao,

    Thanks for the read, but I'm not really interested in any multi-threading, and/or all the marshaling that comes with "sharing" data. Also, this is a portable (single EXE, no...
  21. Replies
    2
    Views
    95

    Re: loop for next with dates

    If all your variables are declared as Date, it'll just work:



    Private Sub Form_Load()
    Dim From_var As Date
    Dim To_var As Date

    From_var = #2/25/2020#
    To_var = #5/5/2020#
  22. Thread: Aliasing in VB6

    by Elroy
    Replies
    16
    Views
    443

    Aliasing in VB6

    I'm really just sort of brainstorming here, but I'm at a point for the second time in my little project where I wouldn't mind some aliasing in VB6.

    (Sure, I know I could wrap things in classes,...
  23. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Thank you. :) If I get concerned about it, I'll do that. I love your TypeLib, and have used it many times.
  24. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Well, I've got it running with error trapping. However, I don't think it's "really" fixed.

    Passel, I didn't think that the screen saver or sleep would affect the graphics chipset in that way, but...
  25. Re: [RESOLVED] Save fixed length txt file as UTF-8

    That's actually an interesting question. It actually goes all the way back to where our numbers (versus our words) come from. Our numbers come from ancient Arabic systems. And, the reason for this...
  26. Re: Common Controls Replacement Individual Controls

    Hi Krool,

    Yeah, I might have mis-spoke there, I'm not sure. What happened to me was ... when I was trying to isolate the Slider and TreeView, I found that it was still wanting ComboBox stuff...
  27. Re: [RESOLVED] Save fixed length txt file as UTF-8

    Ahhh, I also took a look at your attached file, and it is indeed filled with NULL characters. That's not typical for either a UTF-8 or ASCII file. You may want to look at your code and figure out...
  28. Re: Save fixed length txt file as UTF-8

    Hi Vandoren,

    I am quite familiar with ASCII, ANSI, UTF-8, UTF-16, and UCS-2, and how VB6 works with strings. However, I'm not that familiar with UTF-7. But I did just read the Wikipedia page. ...
  29. Re: Common Controls Replacement Individual Controls

    Yeah, for me, it's more about keeping my project "portable", rather than keeping clutter out of my Toolbox. But both are worthwhile aims.

    So, in my case, I just wanted the pieces necessary to...
  30. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Hi jpbro, et. al.,

    Well, I put in error trapping, and then I also put in a test to make sure I was going fast enough. Here's the error trapping:



    Static iErr As Long
    Static...
  31. Re: Common Controls Replacement Individual Controls

    Hi VBClassic04,

    If you only need a couple controls, you don't need to pull the whole thing in (thinking about just pulling in source code).

    I'm currently working on a little project I want to...
  32. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Ok, still getting problem even though I'm using D3DSWAPEFFECT_COPY.

    I'm going to put error trapping around the offending line, and then test to make sure it's not slowing me down too much.

    I'm...
  33. Re: Save fixed length txt file as UTF-8

    Hi vandoren,

    Yes, that's correct. Let's be clear on what ASCII is though. Here's an ASCII table:

    174313

    Basically, it's the characters on a USA keyboard, along with some old Teletype...
  34. Re: Save fixed length txt file as UTF-8

    Hi vandoren,

    Are you familiar with UTF-8? UTF-8 is actually a perfect superset of ASCII. Internally, VB6 "thinks" in UTF-16 (or, I like to say, UCS-2). As such, VB6 treats (most) characters as...
  35. Re: [RESOLVED] More Menu Shortcuts in Native VB6 Form Menus

    Yes, I haven't messed with menus much, and I didn't know about the vbTab option. Yes, that's probably the way I'll do it. That was mentioned in the thread that LaVolpe referenced.
  36. Re: More Menu Shortcuts in Native VB6 Form Menus

    Okey dokey, Bonnie to the rescue again. :)

    I've now got an API option, and a simpler option.

    It doesn't automatically raise the menu event, but I can deal with that. I've already tested,...
  37. [RESOLVED] More Menu Shortcuts in Native VB6 Form Menus

    Hmmm, here's one I haven't run into before.

    I'm just designing a simple form with a menu (standard VB6 menu). In VB6, it does a nice job with the shortcuts, raising the menu's event even when you...
  38. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    I've also thought about putting error trapping around that .Present line. However, that's in the core of the frame-render process, and I'm worried that error trapping would slow things down too...
  39. Re: DirectX9 (Direct3D) and the "Present" method, getting error

    Hmmm, LaVolpe, you might be onto something.

    I changed the .Present call to the following...



    moD3Device.Present ByVal 0&, ByVal 0&, 0&, ByVal 0&


    ...but then, I lost all kinds of nice...
  40. [RESOLVED] DirectX9 (Direct3D) and the "Present" method, getting error

    Hi All,

    I'm working on a little DirectX project, using Trick's dx9vb.tlb TypeLib. Everything is going fine except for when I leave the project running all night long, which I've been in the habit...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width