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