Results 1 to 5 of 5

Thread: Question: How do I register an ocx file to the registry for my application?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Posts
    89

    Question: How do I register an ocx file to the registry for my application?

    I need to register a dbgrid32.ocx component to my application using code...not just going to the Format-->Components screen. However, I need to do it behind the scenes on my splash screen. I've been looking high and low for answers but haven't found anything concrete. Any help would be greatly appreciated.

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Wink Amazing what you can find with a good search


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Posts
    89
    Actually I'm trying to automate this in the code on the splash screen so when the user opens the application, the code does this for them behind the scenes. I think what you gave me was for the Start button, then Run, and type that regsvr... in.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Posts
    89

    By george I think I've got it

    Shell "Regsvr32.exe c:\winnt\system32\dbgrid32.ocx", 1

    Now if I want to hide that from the user, I would use

    Shell "Regsvr32.exe /s c:\winnt\system32\dbgrid32.ocx", 1

  5. #5
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    to hide the process

    use a 0 (zero) instead of the 1 as the second argument of the shell command

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