|
-
Sep 14th, 2001, 01:05 PM
#1
Thread Starter
Lively Member
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.
-
Sep 14th, 2001, 01:10 PM
#2
Addicted Member
Amazing what you can find with a good search
-
Sep 14th, 2001, 01:16 PM
#3
Thread Starter
Lively Member
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.
-
Sep 14th, 2001, 01:25 PM
#4
Thread Starter
Lively Member
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
-
Sep 14th, 2001, 01:34 PM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|