views:

710

answers:

2

I've just installed the windows7 RC in a VM and I'm attempting to build our existing projects on the new OS. The projects are c/c++ based and I'm using visual studio 2008.

In order to build these projects I need to register several tlb files that are referenced within the code base.

However, I've just discovered, that regtlib.exe appears to be missing from windows7 (and apparently from vista as well).

Has anyone also encountered this problem? And, has anyone managed to solve this?

thanks.

+5  A: 

Yeah regtlib was removed from vista and up. As far as I know, all it does is call LoadTypeLibEx with the REGKIND_REGISTER flag (http://msdn.microsoft.com/en-us/library/ms221249.aspx). Maybe you could write a simple replacement.

Lucas
Thanks for the suggestion. I see a little console app in my future. I'll let you know how it turns out.
Lou
A: 

Finally got back to trying to build our code base on windows 7. Anyway, I went back to the installer for one of the dependencies that was causing me grief. The error message from the installer wasn't to helpful but it did point to a regasm that was being run from inside the installer.

I ran the regasm command from a cmd prompt and got more information. It appears that you need administrative credentials to perform this task and our current installers don't do the privilege escalation properly.

So, long story short, I got dlls registered and the build appears to be working.

Lou