I'm sorry, I feel like an idiot for not being able to solve this...
Anway, first feast your eyes on this:
// ...
class xrMessagePump
{
public:
static void SendMessage(xrMessagePtr Message);
static void SendMessage(int DestID, xrPtr<xrClass> Sender, string Message, float Delay, int Priority, boost::any Arg1);
// ...
};
// in a completely different file, many light years away...
void WorldMap::CALLBACK_Render::Function(xrMessagePtr Msg, xrClass* Parent)
{
WorldMap* parent = static_cast<WorldMap*>(Parent);
xrMessagePump::SendMessage(parent->m_WaterTiles->GetUID(), this, "RepeatingTileMap_Render", 0.0f, xrMessage::MESSAGE_PRIORITY_IMMEDIATE, NULL);
// ^^ this line is the culprit.
}
The marked line is causing these errors:
Quote:
c:\Documents and Settings\Owner\My Documents\Code\Projects\War of the Seas\WorldMap.cpp(48): error C2039: 'SendMessageA' : is not a member of 'xrMessagePump'
c:\Documents and Settings\Owner\My Documents\Code\Projects\War of the Seas\MessageSystem.hpp(117) : see declaration of 'xrMessagePump'
c:\Documents and Settings\Owner\My Documents\Code\Projects\War of the Seas\WorldMap.cpp(48): error C2660: 'SendMessageA' : function does not take 6 arguments
This has thoroughly confused me. For one thing, why is there an 'A' appended to the function name?
And why are those errors even being thrown? I call the same function with nearly identical parameters elsewhere in the code without getting any errors. For example, this code compiles fine:
xrMessagePump::SendMessage(m_CurrMap->GetUID(), this, "Map_Render", 0.0f, xrMessage::MESSAGE_PRIORITY_PERIODIC, NULL);
And as for the second error, I think it's just a consequence of the first, since the function does indeed take 6 parameters.
Anyway, can someone please help me out here? I feel as if I'm overlooking something obvious, but I'm not sure...
Thanks for your time!