Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 2.21 seconds.

  1. Replies
    9
    Views
    199

    Re: RtlToFromString - Number Bases

    I just wanted to post something beyond "Hey kids, you can call these functions!"
  2. Replies
    36
    Views
    1,002

    Re: Presidential Debates

    Hard to imagine any fence-sitters remain out there.

    As Biden-Harris pick up more endorsements like Romney, Snyder, Palpatine, and Vader who oppose the Rebellion it might drive a few more to stay...
  3. Replies
    9
    Views
    199

    Re: RtlToFromString - Number Bases

    What’s the difference between VARIANT and VARIANTARG?



    Read Raymond's analysis. I think he's implying we are quite safe in VB6 unless somebody has gone under the covers to create a faulty...
  4. Replies
    9
    Views
    199

    Re: RtlToFromString - Number Bases

    Yes of course a String is always indirect. But passing a String Variant ByVal makes a copy by definition.

    I just don't think this is an issue for numeric types passed ByVal As Variant. If you...
  5. Re: Automatically Load most recent project at startup?

    In Explorer you can right-click the .VBP file and choose Send to|Desktop (create shortcut) which is at least another alternative that properly sets CD when VB6.exe is started.

    Oops, I duplicated...
  6. Replies
    15
    Views
    476

    Re: we almost got the source to VB6

    Getting the source might be half the battle. Getting the build tools and environment required together might be the other half. Then there's that third half of understanding the source well enough...
  7. Replies
    9
    Views
    199

    Re: RtlToFromString - Number Bases

    Doesn't ByVal Value As Variant always pass a ByVal Variant? I'd expect that even if passing in a String Variant.

    The wrapper functions I wrote have their limitations, and I don't consider them...
  8. Replies
    36
    Views
    1,002

    Re: Presidential Debates

    It's a bit late for debates. Ballots have already been sent out to many people, got mine last week.
  9. Replies
    9
    Views
    199

    Re: RtlToFromString - Number Bases

    BTW:

    There does seem to be a RtlUnicodeStringToInt64() function (at least in Windows 10). This would provide more symmetry but as far as I can tell it is only available to kernel-mode code such...
  10. Replies
    0
    Views
    100

    Windows Logo Glyph

    Not sure why you'd ever need it, but I stumbled across this:


    178872


    Option Explicit

    Private Sub Form_Load()
    With Label1
  11. Replies
    9
    Views
    199

    RtlToFromString - Number Bases

    For the most part we're already set for converting to/from number bases in VB6. But sometimes people want something more.

    Here is a little bit more based upon two API calls:

    ...
  12. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    Well for some forms of animation SLWA seems good enough:


    178862

    Most of the attachment is images.
  13. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    I should add that I understand the value of UpdateLayeredWindow() for animation or displaying ongoing changes to your "canvas." I suppose it could also be useful for creating "whole screen overlays"...
  14. Re: Looking to build a HTTP class but what should it be built off of?

    WinHTTPRequest is already a VB-friendly HTTP class.

    Why would you need to wrap it within another class?
  15. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    I see your changes above, but I'm not sure how they answer my questions.


    One question was about using the Form's DC and you haven't addressed that.

    The Trick addressed that for rendering...
  16. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    I was talking about drawing with alpha blending. Not a fixed alpha for the entire drawing, but "draw by draw" differences in alpha.

    I can do it with a memory DC but I wasn't sure how to use the...
  17. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    Yes, that's true. Thanks.

    But the result looks like color-key transparency. Can you get different translucency for different drawing operations? I don't see anything here that improves on...
  18. Replies
    15
    Views
    357

    Re: UpdateLayeredWindow() Drove Me Crazy

    I'm not sure any of this is very useful, but it comes up from time to time so I tried playing with it. At best it feels like a stunt.

    Maybe others have more imagination.
  19. Replies
    15
    Views
    357

    UpdateLayeredWindow() Drove Me Crazy

    I never played with UpdateLayeredWindow() before. So I took a look and didn't find many concise examples in VB6. Examples here and there, but not clear enough to get through my thick skull.

    I...
  20. Replies
    33
    Views
    793

    Re: Notorius R.B.G ... RIP

    I think you have these candidates confused with each other.

    Biden stands for more war, more austerity, more prisons, harsher crime penalties, more corporate protections and bailouts, and...
  21. Replies
    33
    Views
    793

    Re: Notorius R.B.G ... RIP

    Mmm, no.

    More likely he'd prefer a court that would uphold a case against the unsecured mail-in ballots that Biden is counting on to stuff the ballot box with.


    The end-around to shut Trump up...
  22. Replies
    13
    Views
    260

    Re: Jet SQL: Insert Null FK?

    The more I look at it the more likely it seems that a 3rd "link" table may be required to make the "delete GW without deleting Cherries" work.
  23. Replies
    13
    Views
    260

    Re: Jet SQL: Insert Null FK?

    It all depends on what the scenario demands. If you want to be able to delete "George Washington" without deleting "Cherries" (for all rows that reference "Cherries") then a redesign is required.
    ...
  24. Re: SHChangeNotify messages causing weird asych behavior

    Line2 may be calling something that calls something (MessageHandler?) that calls Function1.
  25. Replies
    205
    Views
    11,070

    Re: Re PlanetSourceCode

    It's embarrassing for those of us who couldn't meet their high standards.
  26. Replies
    13
    Views
    260

    Re: Jet SQL: Insert Null FK?

    This came up because an old customer had let their own people work on a program I wrote a few years ago for them. It bulk-loads data exported from a legacy system, yes even older than VB6 and Jet,...
  27. Replies
    205
    Views
    11,070

    Re: Re PlanetSourceCode

    That's the sort of thing that led me to call it "POScode" for years.

    I'm not saying there are no gems there, but they are like needles in a landfill.
  28. Replies
    13
    Views
    260

    Re: Jet SQL: Insert Null FK?

    If you don't use MAX() it fails to work as desired. That new Pies row will never get inserted into the table because the SELECT returns no rows.


    To clarify:

    MAX() isn't really MAX() here, it...
  29. Replies
    13
    Views
    260

    Jet SQL: Insert Null FK?

    I have a main table Pies and a lookup table Fillings.

    The main table has a foreign key, but some rows can have no entry, i.e. Null. I want to be able to insert new Pies rows after populating...
  30. Replies
    1,421
    Views
    59,261

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

    Well, the heads appear to be plastic, and to wear one of those suggests you aren't wrapped too tight. ;)
  31. Replies
    33
    Views
    793

    Re: Notorius R.B.G ... RIP

    Republicans? Oh, those people who support Biden?
  32. Replies
    58
    Views
    1,007

    Re: need 2 decimal places

    Don't use the ancient Val() unless you really mean to. It always uses the Invariant Locale.

    Instead we have things like CSng(), CDbl(), etc. which are locale aware. No need for funky gymnastics...
  33. Replies
    0
    Views
    175

    DOW: Least-Used VB6 Feature?

    This site has been around for a long time, but searches turn up very little on the VB6 Data Object Wizard. This has been around since 1998 of course, but it seems to hardly be used by anyone.

    I...
  34. Replies
    36
    Views
    1,002

    Re: Presidential Debates

    Biden's got it made. The media just need to show his prominent supporters clapping for his responses. John Kasich, Mitt Romney, Colin Powell, Carly Fiorina, Cindy McCain (wife of the writer of...
  35. Re: CanGrow RPTLabels do not take account Tabs

    Aside from justification there isn't much available. I suppose you could pad stuff out with non-breaking-space characters, i.e. ChrW$(&HA0&) characters,

    For many locales you can even enter those...
  36. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    When it comes to dealing with High DPI (either taking it head-on by using one of the forms of DPI Awareness or falling back on GDI Scaling), I try to test at 200, 175, 150, and 100%. The reasons are...
  37. Re: DAO MDB database SQL error "Too many fields"

    "Too Many Fields Defined" error when you save a table in Access is worth reading too.
  38. Replies
    1,421
    Views
    59,261

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

    Frustrating, isn't it?

    I guess you can take the girl out of the Party of Goldwater, but you can't take the Goldwater out of the Goldwater girl.
  39. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Since I seem to be making heads explode ;) here's another version using an actual MDB instead of simulating two database tables.

    There is even less procedural logic used, and a lot of that is just...
  40. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    I think I answered these questions in a straightforward manner, and mostly via sample code.


    I even simplified the code. Switching formats takes just:


    Private Sub chkNewMonths_Click()
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width