OCX registration problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: OCX registration problem

  1. #1
    Join Date
    Aug 2009
    Posts
    78

    OCX registration problem

    Hi
    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
    Location
    Voronezh, Russia
    Posts
    5,970

    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,
    Igor

  3. #3
    Join Date
    Aug 2009
    Posts
    78

    Re: OCX registration problem

    MIDL did solved the issue!
    Thanks!

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

This is a CodeGuru survey question.


Featured


HTML5 Development Center