Results 1 to 8 of 8

Thread: [RESOLVED] OCX files.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2008
    Location
    UK
    Posts
    171

    Resolved [RESOLVED] OCX files.

    Hi,

    Is there a way to include/install ocx files like :

    richtx32.ocx(rich text box)
    mswinsock.ocx
    skin ocx files

    As it can get quite annoyning when all placed in the folder with the app, and even then somtimes it doesen't work. Also when you are using skin with a ocx file even tho the skin ocx file is in the folder, it makes it alot bigger also.

    cheers
    Last edited by Bountyhuntr; Jan 2nd, 2009 at 12:57 PM.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: OCX files.

    If you build distribution package using whatever utility you might have all components used in your project (ocx, dll) will be automatically included.
    Try using Package & Deployment Wizard that comes shipped with VB. There is also INNO, etc...

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: OCX files.

    Ocx files should go in the System32 folder from an installation package like RB mentioned.

    See the Application Deployment forums FAQ for other packagers and tips.

    Thread Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: OCX files.

    Quote Originally Posted by RobDog888
    Ocx files should go in the System32 folder from an installation package like RB mentioned.
    This is true for the vast majority of OCXs and DLLs. There are exceptions:
    • Component libraries that YOU create and provide that are shared among applications YOU provide. These go under %ProgramFiles%\Common Files\{company}\{product suite}
    • Component files YOU create and provide that are only used by the one application. These should go into a folder beneath the application's folder, e.g. %Program Files%\{company}\{application}\{component folder name}

    Other system components or 3rd party components that might be generally used (i.e. not created by YOU for specific use) should go into System32. Some component vendors also use Common Files which is fine but the vendor should be providing guidance, usually in the form of a .DEP file that comes with the component library file:
    FudgeMaster.ocx
    FudgeMaster.dep
    Those .DEP files contain guidance to packaging software: INFO: How Setup Wizard and PDW Use Dependency Files.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2008
    Location
    UK
    Posts
    171

    Re: OCX files.

    Ok cheers for the info guys, sorted.

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: OCX files.

    Quote Originally Posted by dilettante
    This is true for the vast majority of OCXs and DLLs. There are exceptions:
    • Component libraries that YOU create and provide that are shared among applications YOU provide. These go under %ProgramFiles%\Common Files\{company}\{product suite}
    • Component files YOU create and provide that are only used by the one application. These should go into a folder beneath the application's folder, e.g. %Program Files%\{company}\{application}\{component folder name}
    Although it's true but also not necesarily required - destination fiolder can be changed and most (if not all) utilities allow that.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] OCX files.

    It depends on how you want your app configured. Some apps keep everything in a local folder so its a self contained single folder install. This is probably not the best design but there are many variations each with their own pros and cons.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Nov 2008
    Location
    UK
    Posts
    171

    Re: [RESOLVED] OCX files.

    I used Inno, seemed ok, first time I tryed it it worked, then i recompiled another but added a ocx skin file which was needed for app, it said all my other files wernt registered like I haden't included them in installiation, i retryed 2 more times and it worked, fishy.

    I used the wizard instead of typing out the script.

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