DarkAlchemist
Programmer
I have a structure and a function that uses enum XXXX *pVal this and I have never enum like that before. Does anyone have any ideas what parameter I need to create to call the function?
Here is what they look like:
Thank you for any guidance you offer.
Here is what they look like:
Code:
STDMETHOD(get_Training)(/*[out, retval]*/ enum eTrainingType *pVal)
STDMETHODIMP cSkillInfo::get_Training(enum eTrainingType *pVal)
{
if( pVal == NULL )
{
_ASSERT( FALSE );
return E_POINTER;
}
*pVal = m_pSkill->m_trained;
return S_OK;
}
AND
STDMETHODIMP cACHooks::get_SkillTrainLevel( eSkill SkillID, eTrainLevel *pVal )
{
struct qSkill Skill;
HRESULT hr;
hr = GetSkillInfo(SkillID, &Skill);
if (FAILED(hr)) {
return hr;
}
*pVal = Skill.Trained;
return S_OK;
}
Thank you for any guidance you offer.