Please help with a new/createobject problem...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • garyusenet@myway.com

    #1

    Please help with a new/createobject problem...

    Hi some code im running has the following line on it fairly on in the
    code

    objApp = CreateObject("a ctole.database" )


    now, i want to use New instead but when I try to replace that line with



    objApp = New actole.database ()


    or


    or objApp = New actole.database


    I get the error that the actole.database is not defined.


    Now I thought I had references set up right, but does this imply that I

    dont? If so - how do I go about finding out where exactly the
    actole.database is that my createobject is using? and how do i add this

    in to my project so i can use the new keyword instead.


    One reason i want to use New is because I want the intelisene to work!


    Thanks,
    Gary.

  • Chris Dunaway

    #2
    Re: Please help with a new/createobject problem...

    Have you added the appropriate Import statements at the top of your
    code? Check also the namespace in the wrapper class that was generated
    when you added the COM reference.

    Comment

    Working...