I build a ATL COM dll using MFC as shared dll. This dll is used by a VB dll, which is called by VB exe.

The VC dll is OK when used by VB project on the same machine (when build vc dll, it is registered by compiler at the same time). But when install VB exe to other machine, the install program (install shield) failed to register the VC dll (same when registor the dll after manually) and when run VB exe and got automation error.

I guess I have to do something on VC project->settings->custom build, but how? Do locations of VC dlls, VB dlls and exeutables matter? Any help would be appreciated. Thanks.