Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    152

    Re: [RESOLVED] Need help with a loop

    Dim cbo As ComboBox
    For Each cbo In Combo1
    Text1(cbo.Index).Text = cbo.Text
    Next
  2. Replies
    5
    Views
    266

    Re: Images ... diffuse, normal, specular

    Ahhh, thank you, Trick! I knew there were some answers to this stuff. I'll be trying to make some headway on this shortly. :)
  3. Replies
    20
    Views
    864

    Re: CCur Function

    Niya, yeah, I basically agree with you, and I wasn't really complaining. I was just trying to point out that, if VB6's compiler (both p-code and binary) were written from scratch today (even if only...
  4. Replies
    5
    Views
    266

    Re: Images ... diffuse, normal, specular

    .
    Ok, I'm going to try and provide a bit more focus here. How about, as a first step, we try to figure out how to take an image and then produce a new "normals" image from it (possibly having the...
  5. Replies
    5
    Views
    266

    Images ... diffuse, normal, specular

    Ok, I've been handed another possibly fun project.

    Obviously, there are many of us here who are familiar with 24-bit true-color images. And, when manipulating PNGs, TGAs, and others, we might...
  6. Replies
    20
    Views
    864

    Re: CCur Function

    This is all because VB6 is as old as heck, and doesn't take advantage of CPU capabilities we currently have. This is good to know though (about the Currency type). Hopefully, they don't do...
  7. Replies
    20
    Views
    864

    Re: CCur Function

    MMMMmmm, I wouldn't have said "entirely" different.

    Currency is an 8-byte 2's compliment integer with a decimal stuck in at the fourth (from right) spot. It's all base-10, which makes it very...
  8. Re: Is there a Call Hierarchy tool for VB5 or VB6

    My first thought is this. But not sure if that's what you want or not.
  9. Replies
    37
    Views
    1,050

    Re: VB6 - can we use the 'Any' type?

    I'm not 100% following what y'all are trying to get sorted, but I certainly don't think that's what's happening. However, I could be proven wrong.

    I do believe that compilers (including VB6) do a...
  10. Replies
    37
    Views
    1,050

    Re: VB6 - can we use the 'Any' type?

    So, I guess the rule is: Any VB6 string that is "directly" (not wrapped in VarPtr or StrPtr) used in a Declared API call is going to get converted to null terminated ANSI, and it doesn't matter if...
  11. Re: [RESOLVED] Opinions On How To Deal With This "Subscript Out Of Range" Error

    I'll tell you how I deal with them.

    Typically, I alpha-test the crud out of my code, testing all the edge conditions, and just make sure I don't overrun arrays. Sometimes, for well tested code,...
  12. Replies
    20
    Views
    864

    Re: CCur Function

    dday9,

    It's truly just an 8-byte 2's compliment signed integer. In many ways it's exactly the same as the LongLong seen in the VBA.

    It's just that, when it's printed (or input), VB6 will...
  13. Re: how to zorder vb6 Controls,use SetWindowPos api?

    To expand on all of this a bit, it would be nice if we had a vbBringForward and vbSendBackward constant. Rather than bringing all the way to the front, or all the way to the back, these would step...
  14. Replies
    37
    Views
    1,050

    Re: VB6 - can we use the 'Any' type?

    That's not entirely accurate.

    Any is actually a kind of alias for the Long type. This is clear when you try using Any ByVal parameters to pass anything beside Longs. It won't compile:-

    '...
  15. Replies
    37
    Views
    1,050

    Re: VB6 - can we use the 'Any' type?

    Here's my take on this...

    I've never seen the "Any" type used anywhere but an API declaration. I don't think it's possible to use it in a normal procedure's declaration (i.e., it'll be a syntax...
  16. Re: How to save a 32bpp transparent PNG file with alpha transparency?

    This uses the GDI+ but I believe it has all the code (for VB6) that you want.

    https://www.vbforums.com/showthread.php?860813-PNG-TGA-(specifically-32-bpp-type-files)-Editing-Tool

    EDIT: And by...
  17. Replies
    7
    Views
    408

    Re: Add permanent string of data to EXE?

    Personally, I'd put the string into resources, and then possibly change it with something like ResourceHacker. Since those links aren't allowed, I'll let you find that program.

    Or, I believe...
  18. Replies
    7
    Views
    345

    Re: shellexecute versus opening from explorer

    westconn1,

    Make sure you are NOT running your compiled executable under any compatibility shim sets. Most (if not all) of the standard compatibility shim sets are known to break the ShellExecute...
  19. Replies
    8
    Views
    401

    Re: Format for Passing Parameter to a Function

    I think of these as local (within procedure) variables that can be simultaneously declared and assigned. I guess it's the one place in VB6 where we can actually declare and assign with a single...
  20. Replies
    4
    Views
    345

    Re: Array of byte arrays.

    Since the data item of a Collection is a Variant, you could also have a Collection of byte arrays. And, you could use the Collection's key to identify which byte array was which, easily retrieving...
  21. Replies
    7
    Views
    375

    Re: Link Error 1106 when compiling

    Does this program run on the "problem machine" in the IDE? If so (or not), that's at least a clue as to what's going on.

    ---------

    From my take, it's almost got to be some code in one of the...
  22. Replies
    18
    Views
    755

    Re: XP vs W7/8/10 Form size

    You could write a class that you attached to each of your forms to fix this, but that seems like overkill IMO.

    Here's how I'd deal with that situation. I'd just design everything to look good on...
  23. Replies
    2
    Views
    189

    Re: Directory and form problem

    If it were me, I'd open my VBP files and see what the paths were in there to the individual modules. I'm thinking you've somehow gotten some cross-referenced paths in your VBP files.
  24. Replies
    5
    Views
    274

    Time Travel, Tenet (the movie), & An Idea

    Hi Folks,

    I've been having a discussion with a couple of friends about the movie Tenet. As far as I'm concerned, it's just conceptually garbage. Here are some of my comments:



    And here are...
  25. Replies
    7
    Views
    333

    Re: VB6- how we get the array size?

    The first thing I thought of is using a bit of CopyMemory and going after the SafeArray structure. However, that's precisely what LBound and UBound are doing. Personally, IMHO, if you think LBound...
  26. Replies
    658
    Views
    62,120

    Re: Vb6 , the Future, and what I have discovered

    The VBA (both 32-bit and 64-bit) is all COM based.
  27. Replies
    12
    Views
    560

    Re: VB5/6 IDE Help in Windows 10

    Actually, in addition to the Microsoft download site, I found this site to be most helpful: https://www.winhelponline.com/blog/view-winhelp-hlp-files-windows-10-with-winhlp32-exe/

    The help file...
  28. Replies
    12
    Views
    560

    Re: VB5/6 IDE Help in Windows 10

    Here's another webpage that might help: https://blog.spectologic.com/2015/09/09/using-hlp-files-in-windows-10/
    (The link in the next post is actually better ... just ignore this one.)
  29. Replies
    12
    Views
    560

    Re: VB5/6 IDE Help in Windows 10

    I've actually had these HLP files up and running on a Windows 10 machine before, but I remember having to jump through lots of hoops to do it. And I've since changed computers and haven't bothered...
  30. Replies
    5
    Views
    414

    Re: vbMask Keys

    AccessShell, wqweto's explanation is spot-on.

    This is all just VB6 trying to simplify some things for you. Basically, your keyboard has three "shift-state" keys: Shift, Ctrl, & Alt. I think of...
  31. Re: VB 6- Optional Parameter: can i use a varname?

    Joaquim,

    If you're more interested in Variants, here's the Microsoft webpage that lists off all the types that a Variant can hold. However, VB6 doesn't support all of those types. Also, you'll...
  32. Re: VB 6- Optional Parameter: can i use a varname?

    You can't use a variable name as the "default" value, but you can use a constant (including enumerations).

    You have to realize that, in all likelihood, that default value is resolved during...
  33. Re: Splitting a string (sounds easy, and probably is)

    It seems that you can make a few assumptions: The numbers always start at 1, they always increment sequentially, the numbers are always followed by a space, and every number will always be followed...
  34. Re: How to programmatically force a WM_SIZING message

    Here it is, trying to use WM_SIZE, but I still don't have it quite right. I'm hungry though and going to get some lunch:



    Option Explicit

    Private Const WM_DESTROY As Long =...
  35. Re: How to programmatically force a WM_SIZING message

    Here, I did it for a 1-to-1 aspect ratio using WM_GETMINMAXINFO. The nice thing about WM_GETMINMAXINFO is that you get it before the form is resized (so, reduced flickering).

    Here's code for a...
  36. Re: How to programmatically force a WM_SIZING message

    I've been playing with it, and I think subclassing on WM_SIZE would be easier. In fact, now I'm wondering if it all can be done in the Resize event, although that might flicker.
  37. Re: How to programmatically force a WM_SIZING message

    I'd probably subclass the form, monitoring for WM_GETMINMAXINFO and then do what I wanted in the subclass procedure.

    You could set some global variables about whether the aspect ratio is 1 or 0.5...
  38. Replies
    4
    Views
    372

    Re: Hung but not hung

    Perfect Wqweto. That does precisely what I wanted.
  39. Replies
    4
    Views
    372

    [RESOLVED] Hung but not hung

    Ok, this is primarily a VBA (MS-Access) question. Please forgive me for posting it here (and move it if you must, but I'd really prefer that it stay here).

    I've got a long-running loop running in...
  40. Replies
    12
    Views
    663

    Re: File Format reader

    I'll jump in here just because I'm bored.



    Axisdj,

    The use of the word "most" in that sentence bugs me each time I read it. In the most basic sense, ALL files are in a binary format. ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width