Results 1 to 3 of 3

Thread: Unloading an OCX

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Fort Worth, Texas, USA
    Posts
    264

    Question

    Hi!

    I've written (assembled) a control (OCX) and need a way to unload it from within itself.
    When the control completes it's task I need to go away and release the memory it allocated.

    I've tried "Unload.Me" but that doesn't work. :-(
    Any Ideas?

    Thanks,
    Ken



  2. #2
    Member
    Join Date
    Jul 2000
    Location
    Hong kong
    Posts
    53
    The only real way to do it is probably to run a shell and run regsvr32.exe /u <filename>
    the program is located inside windows system i believe.
    but you can search for it to make sure.

  3. #3
    Member
    Join Date
    Jul 2000
    Location
    Hong kong
    Posts
    53
    Sorry, after reading your post again, I think I misunderstood your problem. I don't believe there's a way to "unload" an OCX at run time. That's like getting rid of your commondialog box from your form halfway through your program?

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