Also, I stumble upon the following error when I try to define the OnTextReceived function: c:\program files\microsoft visual studio\myprojects\msntest\stdafx.cpp(23) : error C2084: function 'long __thiscall Messenger::DMsgrObjectEvents::OnTextReceived(struct Messenger::IMsgrIMSession *,struct Messenger::IMsgrUser *,class _bstr_t,class _bs tr_t,short *)' already has a body what am I supposed to do with that? I'm guessing it is redifined or something?? I don't get it... Sorry if I sound too much like a noob, this is all just new to me :P And on another note, can I make it like a class in my classview? It would be a lot easier I think... Thanks, - Fahr