Cannot open a file of format CATPart

I cannot enter into my addin application if I specify file formats of either .CATPart or .CATProduct in SW2011. When I try to do so for the above file formats, the callback functions corresponding to them doesnot get called in the addin application. The following is the procedure that I did which was unsuccessful.

1. Copy the full path of the file. (Say d:\color.CATPart)

2. Click File->Open menu.

3. In the File name edit box, paste the full path.

4. Click Enter key or Press Open button.

You will notice that the File Open dialog gets closed. It doesnot enter into the callback function registered by the addin application.

The following is the code present in the ConnectToSW callback function.

HRESULT hres;
VARIANT_BOOL ok;

CComBSTR cat5( L"OpnCat5" );
hres = m_iSldWorks->AddFileOpenItem3(m_swCookie, cat5, CComBSTR( L"CATIA V5 Part (*.CATPart)" ), CComBSTR( L"CATPart" ), L"", L"", &ok );
hres = m_iSldWorks->AddFileOpenItem3(m_swCookie, cat5 , CComBSTR( L"CATIA V5 Product (*.CATProduct)" ), CComBSTR( L"CATProduct" ), L"", L"", &ok );.
.

The following are the codes present in the DisconnectFromSW callback function.

VARIANT_BOOL ok;
HRESULT hres;
CComBSTR cat5( L"OpnCat5" );
hres = m_iSldWorks->RemoveFileOpenItem2(m_swCookie, opnCat5, CComBSTR( L"CATIA V5 Part (*.CATPart)" ), CComBSTR( L"CATPart" ), &ok );
hres = m_iSldWorks->RemoveFileOpenItem2(m_swCookie, opnCat5, CComBSTR( L"CATIA V5 Product (*.CATProduct)" ), CComBSTR( L"CATProduct" ), &ok );

.

The callback function "OpnCat5" is added to the addin application for receiving the the above files.

This problem happens only in SW2011, in SW2010 and SW2009, this approach to open these files formats works well. Can anybody help me in this issue.

SolidworksApi macros