I have a problem with my automation program.

I created a new MFC dll using the VS6 MFC AppWizard (dll) and started building my automation control. I tested my program by loading my automation and everything was working fine. Then I added a resource to my project and my automation control have not been working since.

I did some research and found that the link file myprogram.res had changed size to less than before. I opened the old one and compared it with the new file that was created when I compiled and found that a type "TYPELIB" was missing.

Can anyone tell me what that "TYPELIB" type is and why my automation control does not work anymore?

Btw. the dll gets registered fine, it's just when I try to use it it will error with "Could not load the selected Type Library"...