CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009

    OCX registration problem

    I have a very old OCX project.
    I need to compile the RC file alone with the RC compiler. The problem is that the RC compiler fails with error "file not found: logsX.tlb"
    I removed the line : 1 TYPELIB "logsX.tlb" from the RC and the compilation succeeded.
    Now the problem is the the OCX is not registaring without the TYPELIB definition.
    The DLLRegisterServer failed with error code 0x80040200
    If I return the line 1 TYPELIB "logsX.tlb" it's register with no issues.

    Can anyone assist on that issue ?

    Thanks in advanced.

  2. #2
    Join Date
    Nov 2000
    Voronezh, Russia

    Re: OCX registration problem

    TLB is type library. You need it to be in resources to register COM server successfully. So, as long as you need to compile RC file alone, you must prepare all the elementary resource parts it depends on.

    So, you have to build it some way. There must be .odl or .idl file in the project. That file needs to be compiled to .tlb with MIDL compiler. The required command format most probably can be found in the project file, or makefile maybe.
    Best regards,

  3. #3
    Join Date
    Aug 2009

    Re: OCX registration problem

    MIDL did solved the issue!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.