// ABCOrder.cpp: implementation of the ABCOrder class. // ////////////////////////////////////////////////////////////////////// #include "ABCCommon.h" #include "ABCOrder.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// ABCOrder::ABCOrder() : m_uiPrice(0) { m_szTitle[0] = '\0'; m_szAuthor[0] = '\0'; } ABCOrder::~ABCOrder() { } rtr_status_t ABCOrder::Dispatch() { // Populate the derived object ReadObject(); /* Since we have overridden Dispatch() in our base class (RTRApplictaionMessage), the handler will not be called unless we do it ourselves. If we call our base class Dispatch method the handler methods OnInitialize() and OnApplictionMessage() will be called. This sample uses OnInitialize() to print out notification that a new transaction is starting. */ RTRApplicationMessage::Dispatch(); // Process the purchase which the derived object represents abc_status status = ProcessOrder(); return status; }