This is how I solved the small problem.
Quote
CCollection::CCollection(const CCollection* pCollection)
{
// <CB Mod : Fix : Collection double extension>
// m_sCollectionName = pCollection->m_sCollectionName;
CString collectionName = pCollection->m_sCollectionName;
collectionName.Left(collectionName.ReverseFind('.')); // no extension should be handled correctly as well
m_sCollectionName = collectionName;
// <CB Mod : Fix : Collection double extension>
if (pCollection->m_pabyCollectionAuthorKey != NULL){
m_nKeySize = pCollection->m_nKeySize;
m_pabyCollectionAuthorKey = new BYTE[m_nKeySize];
memcpy(m_pabyCollectionAuthorKey, pCollection->m_pabyCollectionAuthorKey, m_nKeySize);
m_sCollectionAuthorName = pCollection->m_sCollectionAuthorName;
}
.....
{
// <CB Mod : Fix : Collection double extension>
// m_sCollectionName = pCollection->m_sCollectionName;
CString collectionName = pCollection->m_sCollectionName;
collectionName.Left(collectionName.ReverseFind('.')); // no extension should be handled correctly as well
m_sCollectionName = collectionName;
// <CB Mod : Fix : Collection double extension>
if (pCollection->m_pabyCollectionAuthorKey != NULL){
m_nKeySize = pCollection->m_nKeySize;
m_pabyCollectionAuthorKey = new BYTE[m_nKeySize];
memcpy(m_pabyCollectionAuthorKey, pCollection->m_pabyCollectionAuthorKey, m_nKeySize);
m_sCollectionAuthorName = pCollection->m_sCollectionAuthorName;
}
.....










Sign In
Register


