I have developed a C# dll and a MFC application.The functions from the dll are being used in this MFC application.So i build the code the dll is being registered in the registries with a registry key automatically but when i run this through exe in another machine its not writing the CLSID key in the registries. Due it this in the below code the condition is getting failed.
Note: The registry key is writing in the registries only when i build the entire solution.
HRESULT hr = CoInitialize(NULL);
HRESULT hResult = CLSIDFromProgID ( _T("dllfunction"), &clsid);
So Do i have to change anything in the properties to make this work.