Results 1 to 6 of 6

Thread: database problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3

    Unhappy

    Okay, here's my problem. One of the applications I am working on seems to have a problem accessing certain databases. It works just fine in design time, but after I create the .exe file, and run the application, I get an error that tells me that "ActiveX component can't create object." when I try to access one of the databases used. On another database, I get an error telling me "Class not registered." Has anyone else run into this? I've tried everything I can think of.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    Are you trying to run the .exe on a different machine to the one you developed on? If so you are probably missing the DAO/ADO files for accessing the database.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3
    Yes, it is on a new machine, but I already checked for the DAO/ADO file problem.

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736

    Lightbulb

    You probably already checked this, but are the PC's running the same version of MDAC? I had a problem with this earlier in the week when I upgraded the development PC to Service Pack 4. I couldn't open tables on SQL Server 7 after recompiling the exe since they had different versions of MDAC installed. Had to make sure both were updated.

    You might try using the Deployment Wizard to make sure all components are being installed on the target PC.

  5. #5
    New Member
    Join Date
    Aug 2000
    Location
    France
    Posts
    5

    Arrow

    Is Visual Basic installed on your new machine ?

    Because if It's not installed, you have to copy the
    component which is used for the connection with your
    database. (.ocx)

    You can see its name in the components manager.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You'll need to register it too:

    regsvr32 control.ocx

    A window will pop up giving more information.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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