I am getting a compilation error when doing:

#import "myexe.tlb" raw_interfaces_only named_guids

The error that I get is:
fatal error C1084: Cannot read type library file: 'mydll.tlb': Error loading type library/DLL.

I have also tried loading the exe directly ie. #import "myexe.exe"..., and I get the same error.

I created a test app that calls LoadTypeLib(L"mydll.tlb", &ptLib). And this seems to work(it returns S_OK).

Any ideas?

Thx.