Results 1 to 2 of 2

Thread: file access problem

  1. #1

    Thread Starter
    Addicted Member njnets's Avatar
    Join Date
    Aug 2002
    Posts
    206

    file access problem

    Hi,

    I am currently using this code to register ocx's that come with my program, whenever my program loads:

    VB Code:
    1. FileCopy App.Path & "\MSWINSCK.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
    2. FileCopy App.Path & "\COMDLG32.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
    3. FileCopy App.Path & "\MSCOMCTL.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
    How do I still make the ocx's register even though the file REGSVR32 is not located through the file path "C:\WINDOWS\SYSTEM"?

  2. #2
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    You can just keep the ocx files in your app's directory. They don't need to be registered.
    Please rate my post.

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