Results 1 to 6 of 6

Thread: OCX Register Issue

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206

    OCX Register Issue

    ghfhgfhghg
    Last edited by Aphex; Apr 17th, 2009 at 09:04 PM.

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    FeedMeTown, Ohio
    Posts
    176
    Not sure... but don't you need quotes?
    Never tie a rock to your ankle while randomly selecting stones to throw from high places.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206
    rtetretr
    Last edited by Aphex; Apr 17th, 2009 at 09:05 PM.

  4. #4
    Addicted Member
    Join Date
    Jul 2000
    Location
    FeedMeTown, Ohio
    Posts
    176
    Aphex

    Sorry... but shouldn't regsvr32 be regsvr32.exe?

    If these suggestions don't work, I apologize. I can't help you further. Hopefully, someone else will reply.
    Never tie a rock to your ankle while randomly selecting stones to throw from high places.

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by Aphex
    i tried quotes.. still same error
    Please show the code exactly as you have it. It should look like
    VB Code:
    1. Private Sub Form_Load()
    2.     Call Shell("regsvr32 /s MSWINSCK.OCX")
    3. End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    First off, this one Should be in quotes as it is a string. I would add the pathing in so vb knows where to look for the files as well as this:

    VB Code:
    1. Private Sub Form_Load()
    2.     Shell ("C:\Path\regsvr32.exe /s C:\Path\MSWINSCK.OCX")
    3. End Sub

    If this still doesn't sort your problem, then try looking at the SHELLEXECUTE or DLLREGISTERSERVER
    api calls to achieve this registration.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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