Hello,
I wrote a C++ program with the following code:
void __cdecl UIMessageCallback(struct IDispatch *UIMessageDisp)
{
TS::UIMessagePtr callbkmsg = UIMessageDisp;
long event = 0;
event = callbkmsg->GetEvent();
return;
}
But when I compile it, I get this error message:
--------------------Configuration: RunAgent - Win32 Debug--------------------
Compiling...
RunAgentComp.cpp
h:\runagent\debug\teapi.tli(8066) : error C2556: 'enum UIMessageCodes __thiscall TS::UIMessage::GetEvent(void)' : overloaded function differs only by return type from 'enum TS::UIMessageCodes __thiscall TS::UIMessage::GetEvent(void)'
h:\runagent\debug\teapi.tlh(6986) : see declaration of 'GetEvent'
h:\remote agent qc\remoteagent 2.0\runagent\debug\teapi.tli(8066) : error C2371: 'GetEvent' : redefinition; different basic types
h:\runagent\debug\teapi.tlh(6986) : see declaration of 'GetEvent'
Error executing cl.exe.
RunAgent.exe - 2 error(s), 0 warning(s)
Who can help me? Thanks in advance!!!