Building .tbl

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
 
Alex,

When you call Regasm.exe to register the .dll file for COM interop, you
will want to run it once with the /tlb switch. This will produce the type
library that you can access from your unmanaged applications.

Hope this helps.
 
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex

Alex,

When you call Regasm.exe to register the .dll file for COM interop, you
will want to run it once with the /tlb switch. This will produce the type
library that you can access from your unmanaged applications.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alex said:
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
 
Alex,

You need to specify the output file name when you use the /tlb option:

regasm.exe "mycom.dll" /tlb:mycom.tlb


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alex said:
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex

Alex,

When you call Regasm.exe to register the .dll file for COM interop,
you
will want to run it once with the /tlb switch. This will produce the
type
library that you can access from your unmanaged applications.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alex said:
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
 
Nicholas:

Thaaaaaank youuuuuuuu soooo muuuuuch!

You were right to the point! Everything is fine now!

Alex

Alex,

You need to specify the output file name when you use the /tlb option:

regasm.exe "mycom.dll" /tlb:mycom.tlb


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alex said:
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex

Alex,

When you call Regasm.exe to register the .dll file for COM interop,
you
will want to run it once with the /tlb switch. This will produce the
type
library that you can access from your unmanaged applications.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top