Hello,
I have a piece of code as below..,
m_pMem->Create(*this);
m_pMem->SetMap(MM_ANISOTROPIC);
m_pMem->SetOrg(0, 0);
m_pMem->SetExt(m_SamplesOnWindow / SamplingFactor, SHRT_MAX);
HDC dc = *m_pMem;
colors->SelectPalette(dc); // error at this line..,
At runtime an error shows like " Access Violation Writing *address* "
The debugger shows error for variable DC like " cxx0030 : Error : Cannot be evaluated "
I am unable to find out as to why there is runtime anomality.
Any help on this regard will be much appreciated..,
Thanks in Advance..,