主题:[讨论]mfc编译通过可是链接有错的问题
我在用mfc做一个界面,添加了个outlookbar。调试的时候编译能过,链接的时候中断在map_pw.cpp里面的如下函数:
CMapPtrToWord::GetAssocAt(void* key, UINT& nHashBucket, UINT& nHashValue) const
// find association (or return NULL)
{
nHashValue = HashKey(key);
nHashBucket = nHashValue % m_nHashTableSize;
if (m_pHashTable == NULL)
return NULL;
// see if it exists
CAssoc* pAssoc;
for (pAssoc = m_pHashTable[nHashBucket]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
if (pAssoc->key == key)//这一句中断
return pAssoc;
}
return NULL;
}
可能是什么错?
CMapPtrToWord::GetAssocAt(void* key, UINT& nHashBucket, UINT& nHashValue) const
// find association (or return NULL)
{
nHashValue = HashKey(key);
nHashBucket = nHashValue % m_nHashTableSize;
if (m_pHashTable == NULL)
return NULL;
// see if it exists
CAssoc* pAssoc;
for (pAssoc = m_pHashTable[nHashBucket]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
if (pAssoc->key == key)//这一句中断
return pAssoc;
}
return NULL;
}
可能是什么错?