STDMETHODIMP CBlackjack::ReadCards(VARIANT* pHand)
*pHand = m_pHand->ReadCards();
m_pHand->ReadCards() has the exact same definition as CBlackjack::ReadCards()....when I call this method from a VB Client I get memory errors....can someone please tell me why? I did the exact same thing as this, wrapping a GetValue(SHORT* pVal) method and it worked fine....CHand::ReadCards() creates a SAFEARRAY and stores it into the VARIANT, then returns the VARIANT*.....does it have something to do with the array? Any help appreciated. Thanks
P.S. - I rarely get answers when I post messages here...is it because I'm asking the wrong questions or on the wrong messageboard or something? I'd like to know so that I can do things properly next time.