Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mikewoodhouse

  1. mikewoodhouse

    Search using Regular Expression

    Depends what you're trying to do. For a start, the number must be in a string. Secondly, the way you've presented your example suggests to me that you have an array. Since RegExp wants text input, you'd have to Join() your array. And that will probably be leading you away from anywhere that I...
  2. mikewoodhouse

    Com+ versus VB application

    What I want to know is speed performance an unfortunate overhead of Com+ or is it simply bad programming. I have had a peek at the code and fear it is the latter There is an order-of-magnitude response time drop when moving from a class in process to one that's out of process and another when...
  3. mikewoodhouse

    Object oriented database handling

    Well, having had time to read it, I found it interesting. The approach seems to be generally sound; my main suggestion would be to consider improving cohesion by extracting the database functions from the collection ones. Much as in the Engine-Collection-Class pattern described on MSDN, which...
  4. mikewoodhouse

    Similar Classes......Or are they the same?

    So you'd have a class that delivered, say RunnersFor(Race) and Racesfor(Runner) methods?
  5. mikewoodhouse

    Similar Classes......Or are they the same?

    In data modelling terms, Performance would be an entity that represents the linkage between runners and races (a 'many-to-many' relationship). Once implemented as a table, this gives you a single source for "all races for a runner" and "all runners for a race". Taking a...
  6. mikewoodhouse

    Design pattern for data manipulation

    Gosh, that was a little terse! In case you're not familiar with the reference, GoF refers to "Design Patterns" (written by the "Gang Of Four") ISBN 0201633612, which is the pattern bible. Also see http://c2.com/cgi/wiki?CommandPattern Another possibility might be...
  7. mikewoodhouse

    How to implement a Join function in C++

    I don't know if there's a 'clever' algorithm for this, but I'd proceed something like this: 1. Either sort your arrays in the sequence of the join condition (one or more fields) or if the records in the arrays are large or there's a lot of 'em, create new key-reference arrays and sort those...
  8. mikewoodhouse

    coupling an object to a procedural style framework

    Of your two options, the second (single class) seems clearly preferable to me. I'd say you were talking about the Facade pattern (http://c2.com/cgi/wiki?FacadePattern). At least you get the benefit of an interface being present, behind which the external functions can be hidden. You might also...
  9. mikewoodhouse

    Patterns

    http://c2.com/cgi/wiki
  10. mikewoodhouse

    Form & Connection Class Design

    Since you're asking your question in OO terms, I'd repsond by asking if you've considered why your form needs to know anything about the database? Part of the principal of encapsulation is ensuring that responsibilities are divided among classes such that each does one job well. I'd say you were...
  11. mikewoodhouse

    Adding icons to a sub item in a List View

    From (often faulty) memory: you need to use an ImageList control to store the icons and link it to your ListView at design time. It gets annoying when you add images to the ImageList, because you have to decouple the ListView to do it, then relink and reassign the icons. So make sure you've got...
  12. mikewoodhouse

    What properties are available during Class_Initialization

    I suspect that you're not going to be able to do what you describe - the "Application" object for VB is "App", but of course it's the program itself, whereas in Access it's Access. Why does your form need a reference to its caller? What assumptions will your DLL have to make...
  13. mikewoodhouse

    Passing Date from ASP to VB to SQL

    Note that if you're not working in mm/dd/yyyy format (i.e. if you don't work in North America), you'll need to put your date string into it before it will work. Mike
  14. mikewoodhouse

    SQL-LOADER problem

    Did you really mean to post this question in this forum? I doubt that you'll get a great deal of help here. Consider reposting to the "Oracle ERP Solutions" forum.

Part and Inventory Search

Back
Top