Results 1 to 11 of 11

Thread: eVB - ActiveX component cannot be created

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    eVB - ActiveX component cannot be created

    Hi

    I've been issued with some eVB code which I need to get working... when I run the code the app fails 'ActiveX component cannot be
    created' has anyone ever come across the same problem using
    embedded VB code..........

    Code:
    Private Sub CreateDB()
    Dim cat As ADOCE.Catalog
    
      'Create the database
      Set cat = CreateObject("ADOCE.Catalog.3.1") 'errors on this line
      cat.Create gSQLEProvider + gFullFileSpec
      Set cat = Nothing
    
    End Sub
    Thanks
    Last edited by holly; Oct 21st, 2003 at 04:59 AM.
    ** HOLLY **

  2. #2
    Lively Member
    Join Date
    Sep 2003
    Location
    USA
    Posts
    102
    Yes i have seen it lots lol. The way I usually try to fix it first is by removing the reference saving then readding the reference then save. That should do it. Always fixed the problem for me.
    ===============
    Tek
    ===============

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    Another thing to think about: you have "ADOCE.Catalog.3.1", which assumes version 3.1 is available.

    I don't know how essential it is to use that particular version, but it might not be installed.

  4. #4

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Tek and Si_the_geek...I have tried your suggestions and none of
    them appear to work....the reference activeX is adoce31.dll.

    Have you any other suggestions.....I'm actually thinking about
    re-installing Evb...do you think this will make a difference!!

    Thanks
    ** HOLLY **

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    it's more likely to be the ado installation that has problems (if it's separate from eVB)

    if it isn't separate, then yep.. reinstall eVB

  6. #6

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    and if it is seperate would you download again from Microsoft..??

    ** HOLLY **

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    i'd try a local copy first (if you have one), but then go to MS

  8. #8

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    *DAMM* *BLAST* I cannot get it to work....This is a pain in
    the A**e.... on my PC I have active sync, SQL Server CE, EVB and IIS.....The HH scanner will be used to connect to a DB on our SQL server download some info and then write back to the DB.....Now to get all communicating
    a) Do I need to setup something in IIS? if so what?
    c) Do I need to create a SQL replication?

    Thanks

    ** HOLLY **

  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    erm.. no idea!! never actually done any eVB.


    i can't answer a) or c), but heres the answer to b) :







  10. #10

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    here's my answer to a, b, and c

    :confused
    :

    Thanks for your help!!!

    ** HOLLY **

  11. #11
    Junior Member rich09's Avatar
    Join Date
    Oct 2003
    Location
    Shropshire, UK
    Posts
    27
    Hi,

    This is the code you wrer given:


    Private Sub CreateDB()
    Dim cat As ADOCE.Catalog

    'Create the database
    Set cat = CreateObject("ADOCE.Catalog.3.1") 'errors on this line
    cat.Create gSQLEProvider + gFullFileSpec
    Set cat = Nothing

    End Sub

    ("ADOCE.Catalog.3.1") should be:

    ("ADOCE.Connection.3.0").

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