Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Code Warrior > Generating a tl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 527 of 536
Post > Topic >>

Generating a tlb file for a dll

by "TechImpex" <abhinawsharma@[EMAIL PROTECTED] > Jul 18, 2006 at 10:40 AM

I am having a DLL (Vdll_1.dll )written in c++ and now I have to create
a .tlb so that we can use this DLL in VB projects by adding reference
to it.

I added Vdll_1.def file and test.idl file to my project .
Vdll_1.DEF file as follows:
LIBRARY	"Vdll_1.dll"
EX****TS
	Calculate_1
----------------
Vdll_1.idl file as follows

im****t "oaidl.idl";
im****t "ocidl.idl";

[
	uuid(634FE8B5-C847-4b25-B135-B39312741EDE)
]

library Vdll_1Lib
{
	im****tlib("stdole2.tlb");
	[
		dllname("Vdll_1.dll")
	]
	module Vdll_1Mod
	{
		[
			entry("Calculate_1")
		]
		void Calculate_1 (void);
	}
};

I used #im****t "C:\Test\Vdll_1\Debug\Vdll_1.tlb" no_namespace  in my
client C++ project.

I was expecting to see two files Vdll_1.tlh and Vdll.tli after I
compile my client project but it shows only Vdll.tlh and therefore I am
getting linking error.

Any suggestions???

Why the tlb file is not generating the .tli file??

thanks

abhi
 




 1 Posts in Topic:
Generating a tlb file for a dll
"TechImpex" <  2006-07-18 10:40:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:41:26 CDT 2008.