none
Cannot create dll file from a tlb file with tlbimp on a C# project RRS feed

  • Question

  • Hi, i am trying to import the Windows Search API in to my project

    after reading this: http://www.codeproject.com/KB/WPF/Vista_Search_in_WPF.aspx

    but when trying to create a dll from a TLB File TlbImp gives me an error: "TlbImp : error TI000 : Unable to locate input type library: 'SearchAPI.tlb' "

    any idea for what does this mean?

    [If this is in the wrong forum, please move it (with a new link), Thanks]

    Friday, February 4, 2011 12:16 PM

Answers

  • 1. Have you installed Windows SDK in you machine? If yes you should be able to find non-empty %Program Files%\Microsoft SDKs folder.

    2. If it is installed run the following command on VS2008 command prompt.

    TLBIMP /Out:SearchAPI.DLL "%WindowsSdkDir%Lib\SearchAPI.TLB"

    Now you should find the imported SerachAPI.DLL in current folder

     

     


    Please mark this post as answer if it solved your problem. Happy Programming !!!
    • Marked as answer by FireMario64DS Saturday, February 5, 2011 10:10 AM
    Saturday, February 5, 2011 4:58 AM

All replies

  • Hello eCatPCSecure,

    1. It simply means that tlbimp.exe is not able to find the type library named "SearchAPI.tlb".

    2. Make sure that you are in the correct folder and that the type library is correctly named as "SearchAPI.tlb" and try again.

    3. I have just done it with no problems. I am able to create the target SearchAPILib.dll.

    - Bio.

     

    Saturday, February 5, 2011 2:46 AM
  • 1. Have you installed Windows SDK in you machine? If yes you should be able to find non-empty %Program Files%\Microsoft SDKs folder.

    2. If it is installed run the following command on VS2008 command prompt.

    TLBIMP /Out:SearchAPI.DLL "%WindowsSdkDir%Lib\SearchAPI.TLB"

    Now you should find the imported SerachAPI.DLL in current folder

     

     


    Please mark this post as answer if it solved your problem. Happy Programming !!!
    • Marked as answer by FireMario64DS Saturday, February 5, 2011 10:10 AM
    Saturday, February 5, 2011 4:58 AM