Groups > Borland > Borland C plus plus builder Active X > Re: .tlb wasn't embedded as resource




.tlb wasn't embedded as resource

.tlb wasn't embedded as resource
Mon, 18 Jun 2007 12:51:12 +080
Hi,

I downloaded CB2007 trial and compiled one of my ActiveX dll project. It 
compiles fine but when I tries to register the DLL, it fails.

I fire up ResHacker and look into it and found that the .tlb file was not 
embedded as a resource. Registering it with regsvr32 gives an error code of 
0x80029c4a.

Can anyone offer me a light?

Regards,
Vinson 
Post Reply
Re: .tlb wasn't embedded as resource
Tue, 19 Jun 2007 12:29:51 -070
Hi,

> I downloaded CB2007 trial and compiled one of my ActiveX dll project. It 
> compiles fine but when I tries to register the DLL, it fails.
> 
> I fire up ResHacker and look into it and found that the .tlb file was 
> not embedded as a resource. Registering it with regsvr32 gives an error 
> code of 0x80029c4a.
> 
> Can anyone offer me a light?

Add to the project source...
#pragma resource "*.tlb"

The project source is <ProjectName>.cpp. New projects
should have that #pragma inserted for you.

--Craig
Post Reply
Re: .tlb wasn't embedded as resource
Sat, 23 Jun 2007 13:42:39 +080
Post Reply
about | contact