Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 12th, 2006, 08:22 PM
Registered User
 
Join Date: Sep 2006
Location: , , .
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:
Code:
TYPELIB "typeLib.tlb"
I have typeLib.tlb in the same folder as the rc file (the project folder), but I get this error:
Quote:
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?

Reply With Quote
  #2 (permalink)  
Old October 13th, 2006, 03:08 PM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Heh, silly me- all I was writing in the RC file was
Code:
TYPELIB "lib.tlb"
I didn't know that you had to do something like this:
Code:
3 TEXTINCLUDE DISCARDABLE
BEGIN"1 TYPELIB
""lib.tlb""\r\n"
"\0"END
Reply With Quote
  #3 (permalink)  
Old July 10th, 2013, 11:52 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard Library Reference resource markcholland BOOK: Professional C++ 0 March 17th, 2006 01: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 11:44 AM



All times are GMT -4. The time now is 03:03 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.