Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 12th, 2006, 08:22 PM
Registered User
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Embedding A Type Library As A Resource

I'm trying to embed a type library into my COM DLL so that the DLL can be used in multiple languages (specificaly, I'm trying to use the dll in vb). I have a resource file called resource.rc, and its only contents are this line:
TYPELIB "typeLib.tlb"
I have typeLib.tlb in the same folder as the rc file (the project folder), but I get this error:
quote:.\resource.rc(2) : error RC2135 : file not found: "TYPELIB.TLB"
Is there a special place I need to move the typelib to or some reference to the location I need to write to indicate where it is? Writing the full path instead of "typeLib.tlb" doesn't work either. What am I doing wrong?

Old October 13th, 2006, 03:08 PM
Registered User
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Heh, silly me- all I was writing in the RC file was
TYPELIB "lib.tlb"
I didn't know that you had to do something like this:
Old July 10th, 2013, 11:52 PM
Registered User
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Thanks a lot.

As I don't know what to do, but this was BBBBig Help.
Thanks a lot.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard Library Reference resource markcholland BOOK: Professional C++ 0 March 17th, 2006 02:31 PM
Embedding rajkumar007 Classic ASP Basics 0 October 15th, 2005 07:33 AM
Error message: old format or invalid type library kaz .NET Framework 2.0 2 October 6th, 2004 12:39 PM
ado type library in global.asa -Dman100- Classic ASP Professional 4 August 6th, 2004 09:45 PM
FPSpread ADO type library rajupusapati ADO.NET 0 January 22nd, 2004 12:44 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.