Results 1 to 7 of 7

Thread: Registering a OCX ?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Im trying to make my
    own installer how would
    I register a ocx?

    I want to register mswinsck.ocx
    Thanks!

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    Shell ("regsvr32.exe mswinsck.ocx")
    Gl,
    D!m
    Dim

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    So you dont have to give the
    whole path right?

  4. #4
    Guest
    Correct. Think of Shell as typing into the Run Dialog. You don't need to specify C:\Windows\System\Regsvr32, just Regsvr32.

  5. #5
    Guest
    You do have to specify the path if the dll or ocx is not in the Win/System directory.

    Code guru had some great code for doing this programmatically without calling shell, but I can't find it. Itis pretty prominent on the site - it was voted to best source last year if I recall correctly

    - gaffa

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    Shell ("regsvr32.exe /h mswinsck.ocx")
    WEll, try that, i'm sure you like the result better now
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Thanks all of you!

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