Checking an ocx is installed or not
-
Hai All, How can i check an ocx which is droped in my main application dialog is installed or not. I not used the CoCreateInstane function , but i directly placed the control in my dialog. The application crashes when the control is not installed. How can i avoid it? Thanks in Advance Ans
-
Hai All, How can i check an ocx which is droped in my main application dialog is installed or not. I not used the CoCreateInstane function , but i directly placed the control in my dialog. The application crashes when the control is not installed. How can i avoid it? Thanks in Advance Ans
You can try the CoCreateInstance before attempting to display the dialog. If that fails, do not show the dialog.
-
You can try the CoCreateInstance before attempting to display the dialog. If that fails, do not show the dialog.
-
Hai, Actually i don't know the internal structure about the used COM component. Its a 3rd party control and i have only know some functions in it. I dont know any classid and interface id's. So how can i call CoCreateInstance() Byy Anish
Just trying to help here, but maybe you can use this: HRESULT CLSIDFromProgID( LPCOLESTR lpszProgID, LPCLSID pclsid ); You have to already know what the name of the OCX object is to use the function. Otherwise, you might need to manually search the registry to find where the OCX is installed, find the OCX, see what it's GUID is, and then try to use the CoCreateInstance.
-
Hai All, How can i check an ocx which is droped in my main application dialog is installed or not. I not used the CoCreateInstane function , but i directly placed the control in my dialog. The application crashes when the control is not installed. How can i avoid it? Thanks in Advance Ans