Results 1 to 9 of 9

Thread: Commondialog help needed once more

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Wisconsin USA
    Posts
    10
    Everything was fine until tonite..
    Suddenly I have gotten this message.
    "File Not Found"
    When I start a New VB Program and also
    when I try to open one of my existing programs
    that used commondialog.
    Here is what the log file says...
    --------------
    Line 50: Class MSComDlg.CommonDialog of control CommonDialog1 was not a loaded control class.
    Line 73: Class ComctlLib.ProgressBar of control ProgressBar1 was not a loaded control class.
    Line 53: The property name _ExtentX in CommonDialog1 is invalid.
    Line 54: The property name _ExtentY in CommonDialog1 is invalid.
    Line 55: The property name _Version in CommonDialog1 is invalid.
    Line 80: The property name _ExtentX in ProgressBar1 is invalid.
    Line 81: The property name _ExtentY in ProgressBar1 is invalid.
    Line 82: The property name _Version in ProgressBar1 is invalid.
    ------------------------------------
    I use VB Pro 5.0
    Any help is greatly appreciated.
    I don't know how to correct this problem.
    I am a novice ;-)
    Thanks in advance... Ron

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    It looks like you lost the OCX files or that the files have been unregistrated somehow.

    Try registration the controls again using RegSvr32.exe

  3. #3
    Guest
    incase you dont know how,
    go to start button - > run - > RegSvr32 "path to OCX file"


    RegSvr32 does not need to be capitalized....


    and that brings a question that i have been wondering but forgot to ask,

    how does RegSvr32 work?
    what calls does it make?
    can it be written in vb or C++ or does it have to be ASM or another super low lever language?????

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    What RegSvr32 is doing is simply (?) adding the registration for a COM object to the Windows registry. You could do this manually with RegEdit (but I don't recommend doing so) so the code behind RegSvr32 can't be that complex.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Wisconsin USA
    Posts
    10

    Angry Still not working ;-(

    OCX files are there and registered..
    I still get a "File not found" when loading..
    Ron

  6. #6
    Guest
    Try downloading a new ocx. Here is a link from PatorJk's site to download ComDlg32.ocx.

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Wisconsin USA
    Posts
    10

    Wink Thanks All ;-)

    Thanks everyone, especially Matthew.
    The new comdlg32.ocx worked, but 1st I had
    to delete comdlg32.dep and comdlg32.oca
    from my windows\system directory.
    Then re-boot...
    Now I'm back in action again ;-)
    You guys saved my a$$ again...
    Hope I can help out someday...
    Thanks again...Ron Wischer

  8. #8
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    I have some .OCA and .DEP files along with my .OCX, just like you had.

    I thought I had to join these files in my installation package. Should I avoid doing this? What are these files?

    Thanks
    Chris

  9. #9
    Guest
    If the file doesn't exist, when you load it into your form or something even uses the ocx, it will write an oca file.

    OCA is a Control Typelib Cache file.
    Blah blah..holds ocx information.

    And a DEP file is a Dependency file for setup wizards.
    Blah blah..contains some ocx information.

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