Results 1 to 4 of 4

Thread: Activex cannot create object

  1. #1

    Thread Starter
    New Member Gautam01's Avatar
    Join Date
    May 2001
    Location
    Calcutta,India
    Posts
    3

    Unhappy Activex cannot create object

    I've created a buttonset component for browsing data in a form. When I press exit button on that, it executes the code:

    unload usercontrol.parent

    when usercontrol.parent is the form on which it is placed. Sometimes it shows error:

    error '429': Activex cannot create object

    what could be the cause for this?

  2. #2
    jim mcnamara
    Guest
    Unload UserControl
    Unload Form

    Don't unload the UserControl container form before you unload the control.

  3. #3

    Thread Starter
    New Member Gautam01's Avatar
    Join Date
    May 2001
    Location
    Calcutta,India
    Posts
    3

    Thumbs down No. It didn't work.

    Thx, checking this out. But how is that it occurs once in a while?

    No. It didn't work.

    When I put in exit_click()
    unload usercontrol
    unload usercontrol.parent
    it gives compile error 'invalid use of base class'.

    When I put in exit_click()
    unload me
    unload usercontrol.parent
    it gives Run-time error '361': Can't load or unload this object
    Last edited by Gautam01; Nov 20th, 2001 at 08:36 AM.

  4. #4
    Lively Member AndySoft's Avatar
    Join Date
    Oct 2000
    Location
    Massillon, OH
    Posts
    68

    Lightbulb It's not registered properly...

    Get to a command prompt and use "regsvr32" (or is it "regsrv32" ) to register it.

    Example:

    Code:
    regsvr32 MyControl.ocx
    (I'm pretty sure it's "regsvr32".)

    That should do it. I get that problem all the time. I found a little shell enhancement that lets me right-click and ActiveX object (whether its an OCX or DLL) and register it... SO much easier!
    -AndySoft
    [email protected]
    [email protected] (Use the other one first!)

    I use: NASM, HTML, Perl, PHP, JavaScript, Batch, TI-Basic (TI-83+), QBasic 1.1, QuickBASIC 4.5, QuickBASIC Extended 7.1, VB-WIN 6 Ent., and the rest of Visual Studio 6 Ent. And who knows what else!

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