dcsimg

Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.55 seconds.

  1. Re: I made an OS in VB - want input for improvement

    Personally, here's what I'd consider the minimum requirements to call something an OS:


    Somehow, through some media (CD, possibly floppy) be able to boot a machine from the boot sector in the...
  2. Re: Set items in const as one value for Select case statement. Is it possible?

    Yep, in that case, I probably should have done it like you've shown. I just get on a roll, trying to get something done, and it's just what comes out of me.

    Take Care,
    Elroy

    EDIT1: Although,...
  3. Re: Set items in const as one value for Select case statement. Is it possible?

    Hi vb6forever,

    You are exactly correct to say that a series of If ... ElseIf would accomplish the same thing. Personally, I think a Select Case statement looks more elegant, but that's a personal...
  4. Re: Set items in const as one value for Select case statement. Is it possible?

    sergeos,

    I can tell you something I do fairly often. I use a Select Case statement as Select Case True, and then, in each Case test, I just build my test expressions. As with LaVolpe, I'm not...
  5. Re: Settinng DAO "dbBoolean" (True/False) format properties?

    Hi AccadaccA,

    In my code, I just do all the work to create the table and the fields (and actually all the indexes and relationships too). And then, I go back and call that Let DbFieldDescription...
  6. Replies
    12
    Views
    371

    Re: Multi condition in VB?

    To my eyes, this looks like a very specific example within a much larger project.

    If that's the case, you will obviously have some kind of database of all these keywords, as well as a defined...
  7. Re: Settinng DAO "dbBoolean" (True/False) format properties?

    Hi AccadaccA,

    I use the DAO extensively. However, I must admit that I've never bothered with the Format property of a TableDef.Field. Regarding all the standard DAO properties, you can see these...
  8. Re: Using DIR function with multiple specific file types

    It looks like you're getting good advice, but here's some code where I do something similar. Take a look at the LoadMovieFiles procedure. It loads a listbox with certain movie files it finds.


    ...
  9. Replies
    13
    Views
    4,342

    Re: How does VB6 store Decimal data type?

    Ben, here are my notes on the Decimal type. Maybe they'll be of use to you. As others have said, be sure to look in the MSDN for ranges and such:



    Public Type DecimalStructure ' (when sitting...
  10. Replies
    32
    Views
    706

    Re: Licensing a DLL ActiveX

    I'm not sure I see a big problem here either. Just spit-balling, if it were me, and I wanted a DEMO version and a FULL version, I'd just stick some kind of registration information in the registry....
  11. Re: Question of curiosity - Form_Load vs Form_Activate

    Hi Code Dummy,

    I frequently use both. And I sometimes use them the same way, and have a mbAlreadyActivated flag at the top of the module. First, Form_Activate fires each time your form gets the...
  12. Re: Help please translate javascript code in visual basic

    Well, regarding suits, a poker hand of K,9,8,4,2 that's random suits is certainly far worse than K,9,8,4,2 that's all the same suit (i.e., a flush). In that sense, suits do break ties. Also,...
  13. Re: Help please translate javascript code in visual basic

    You'd need a couple of bit-shift functions, but I'm not sure I see the usefulness of this unless you're just trying to store a poker hand as compactly as you possibly can. And, the above doesn't...
  14. Replies
    13
    Views
    626

    Re: Rotation using DOT product

    @mms,

    I think gimbal lock is somewhat mis-understood. In its simplest form, it has nothing to do with dynamic rotations. In other words, we can illustrate it with one-shot static rotation...
  15. Replies
    13
    Views
    626

    Re: Rotation using DOT product

    Hi mms,

    Strictly speaking, that's not possible, as quaternions just don't have a gimbal lock problem at all.

    However, many applications like to report things as Euler angles (as do we in the...
  16. Replies
    13
    Views
    626

    Re: Rotation using DOT product

    WOW, I've never seen anyone try to trash quaternions before.

    IMHO, when used for 3D rotations, they're quite simple to understand, particularly if we don't also use them for simultaneous scaling...
  17. Replies
    13
    Views
    626

    Re: Rotation using DOT product

    I guess we have the aircraft industry and NASA to thank for those Yaw, Pitch, Roll terms constantly showing up in this stuff. Personally, I deal with human body joint kinematics, so those terms make...
  18. Re: Variable names: Variant vs Explicit-Class-Name

    Interesting. I should have expected some such. I knew that things like numbers could use the Variant's ByVal/ByRef flag. However, I wasn't sure how a String or Object would use it. It does make...
  19. Replies
    2
    Views
    279

    Re: Crazy Question msvbvm60.dll

    Hi axisdj,

    I definitely think this whole idea is tilting at windmills. But, there are (at least) two ways you could define cross-platform: 1) non-Windows OS but still x86 CPU, or 2) something...
  20. Replies
    13
    Views
    626

    Re: Rotation using DOT product

    There's also the 3D case. Or, if we want to entertain the ideas of Hilbert space, we'd have to consider nD (n dimensions) cases. :)

    Also, if we just formulate quaternions and/or transformation...
  21. Re: Variable names: Variant vs Explicit-Class-Name

    Ok, I'll weigh in on this one.

    First, a variant is always 16 bytes, and it only has a two byte header, which defines the Variant type. Now, if you explore that Wikipedia page, don't start going...
  22. Replies
    20
    Views
    500

    Re: Scope of Variables

    For me, it's not about playing it safe. I'm completely confident about how the compiler parses out variables. For me, it's writing code that makes sense: Makes sense when I write it, makes sense...
  23. Replies
    20
    Views
    500

    Re: Scope of Variables

    Yeah, regarding function names, rather than try to have them start with what they do, I've got module names that help with that. For instance, here are some of my module names:

    mod_Gen_Arrays...
  24. Replies
    20
    Views
    500

    Re: Scope of Variables

    I'll admit that I'm not perfectly consistent. but I use CamelCase for all my variable names, always capitalizing first letter.

    And then, I preface everything with a "type":

    i = Integer or Long...
  25. Replies
    20
    Views
    500

    Re: Scope of Variables

    In all languages I've dealt with, it's the variable with the most limited scope that will take precedence. And I feel quite confident that's true in VB6.

    Edit1: But, as a practice, I try my best...
  26. Re: How to return value from child form to parent form?

    Yes, if you don't do it like qvb6 or I recommend, you've got to have a perfect understanding of when the form's COM/code object gets instantiated/re-instantiated, and it's easy to get that wrong.
    ...
  27. Replies
    22
    Views
    493

    Re: RTB paragraph indents

    Also, I sometimes do this stuff by massaging the actual RTF text. I believe pretty much anything from Write/Wordpad will paste into the RTB. That would allow you to study the RTF text for various...
  28. Replies
    60
    Views
    1,652

    Re: [ADVANCED] Multi-threaded VB6

    I'm going to try and make a single post to this thread. I've been watching it, and I've also gone down the road of multi-threading-for-VB6 a couple of times in the past. I've come up with what I...
  29. Re: How to return value from child form to parent form?

    jdy0803,

    I probably don't do it quite like others do it, but I'll give an example of how I do it.

    This is some code I'd have in the Form2 (the one shown modally):



    Option Explicit
    '
  30. Re: [RESOLVED] Implement the square bracket properties like ADODB.Fields![Department]

    Ok, the 32K is the number of entries, not the amount of memory. So, it's a fairly large number of entries. However, I'm quite sure that's a VB6 limitation, and has nothing to do with the version of...
  31. Replies
    3
    Views
    144

    Re: Excel formula ofFusing "if"

    Try looking at VB6's IIF() function. It's very close to Excel's IF() function.
  32. Re: GetGestureInfo is returning garbage

    Ok, the answer for that one is, "No, it shouldn't matter." You just need something in that spot that's 8-bytes, and I knew a Currency was.

    Regarding the rest of it, it'd help if we knew how you...
  33. Re: GetGestureInfo is returning garbage

    Here's a FreeBASIC attempt at it. Using that, I came up with the following:



    Public Type POINTAPI
    x As Long
    Y As Long
    End Type

    Public Type tagGESTUREINFO
  34. Re: GetGestureInfo is returning garbage

    Yeah, if you're using LenB() to set your cbSize, that's totally the problem. I come up with 40 bytes too. Just get rid of dwAlignment As Long.
  35. Re: [RESOLVED] Implement the square bracket properties like ADODB.Fields![Department]

    Also, the IDE's symbol table has a limit of 32k entries. That sounds like a lot, but I'm about half-way through mine on the core VBP of my large project. But then, if you take the other approach,...
  36. Re: How to elegantly simulate a JavaScript continue clause?

    Well, I've got more involved examples. And, that's just the one place I don't personally object to using GoTo. I'm well aware that there are always ways to avoid using GoTo all together, but, in...
  37. Re: Method or data member not found - access control inside usercontrol

    I'd say that encapsulation is important. However, the primary thing that pushes me into developing a UserControl is to develop something I'll be using more-than-once. Veebee123, if this is some...
  38. Re: [RESOLVED] Implement the square bracket properties like ADODB.Fields![Department]

    Yes, Dil's link about the bang operator is excellent, and worth a read.

    I'll share my habits regarding these things.

    When accessing DB fields is the only time I ever use the bang operator, or...
  39. Re: How to elegantly simulate a JavaScript continue clause?

    I've used a Do/Loop in these cases, that just executes once and has an Exit Do as the last statement. And then, I can use the Exit Do anywhere in the loop.

    However, in the above examples that are...
  40. Re: How to programmically open a file by an application

    The first, search for ShellExecute in these forms (an API call).

    The second, you can do with Shell. Just specify the program and the data file in the shell string, possibly surrounding each with...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width