Results 1 to 8 of 8

Thread: COM Learning process is missing something...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323

    COM Learning process is missing something...

    I have found about 20 (exagerating) tutorials on creating your first COM object. Once my browser says "Hello World" I seem to be on my own. I am not an advanced VB programmer by any means so I don't know where to go from here.

    I understand how the information is generated and I have played with very basic commands testing to knowledge. I seem to have a good enough grasp of the COM concept to make my screen say "Hello World" or do some math, but am not good enough to have any advanced tutorial make any sense to me.

    Does anyone know of a tutorial that might be in between "Hello World" and CLaunchSpaceShuttle?

    If not, can someone post code for something like a calendar or a database connection that might make sense to me?

    Thanks for your help.
    If you think education is expensive, try ignorance.

  2. #2
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56
    There's a pretty good one one www.vbworld.com

  3. #3
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56
    There's a pretty good one on www.vbworld.com

  4. #4
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56
    There's a pretty good one on www.vbworld.com

    Dave

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    The one with the Dog? I read that one and I got lost toward the end of the first one. The code he said to type didn't work and I didn't want to go onto other steps without understanding what he was talking about.

    I tried one at http://www.4guysfromrolla.com which is a very good one. It just showed me how to build a simple one though.

    Any other suggestions?

    If not I will try that one (vbworld) again and post the code that doesn't work for me. I must be doing something wrong.
    If you think education is expensive, try ignorance.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    I have taken a few tutorials and so far I have built a pretty in depth calendar application. The only things I am stuck with are these...

    1. How would I bring an array from ASP to the COM object? (DetailsArray As Array) isn't an option. Would I have to run through the array in ASP and then send multiple requests to the COM object?

    2. Can I open reference another COM object from within a different COM object? How would I create a recordset within my COM object?

    Thanks for any help.
    If you think education is expensive, try ignorance.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    One more feature I'm sure is available but is not working for me is passing more than one value to the COM object.

    This is an example of how I assumed it would work.
    PHP Code:
    'ASP page...
    strCalendar = objCalendar.MonthlyDisplay("1/4/02", "400")
    '
    COM object
    Public Function MonthlyDisplay(dtDate As DateintWidth As Integer) As String 
    When I do that is doesn't recognize the value as a valid Date format. Even if I do a FormatDateTIME("1/4/02") for the first value.

    Any help is appreciated.
    If you think education is expensive, try ignorance.

  8. #8
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56
    Try making the MonthlyDisplay method's first argument a string, then convert it inside the com object. VB Script doesn't have strict datatypes (unless someone knows different), so have worked around this date problem before in this way.

    You can open a reference to any COM object from within your object i.e. ADO libraries or similar.

    As for using arrays look here:
    15 Seconds


    Cheers,
    DJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width