Home Help Center

error C2039: 'InitializationData': is not a member of 'Ice'

abchjbabchjb Member jianbin huOrganization: pinan securities Co, LtdProject: use Ice as middleware and publish quote
I want to write a IceStorm MFC publisher according demo\Ice\MFC\client,
On InitInstance, I write
//
// Create a communicator.
//
Ice::CommunicatorPtr communicator;
try
{
int argc = 0;
Ice::InitializationData initData;
initData.properties = Ice::createProperties();
initData.properties->load("config.pub");
communicator = Ice::initialize(argc, 0, initData);
}
catch(const IceUtil::Exception& ex)
{
ostringstream ostr;
ostr << ex;
string s = ostr.str();
AfxMessageBox(CString(s.c_str()), MB_OK|MB_ICONEXCLAMATION);
return FALSE;
}
but, compiler it, have error C2039: 'InitializationData': is not a member of 'Ice',

any one can help me? thanks!
I'm using VS2005.

Comments

  • abchjbabchjb Member jianbin huOrganization: pinan securities Co, LtdProject: use Ice as middleware and publish quote
    source

    hi, It's my source file.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    What version of Ice are you using?
  • abchjbabchjb Member jianbin huOrganization: pinan securities Co, LtdProject: use Ice as middleware and publish quote
    thanks.

    thanks, I use ice3.3. the problem is I miss ice.h in the stdafx.h.
    Now I transplan all the Clock Demo to MFC&C# Winform. thanks!
Sign In or Register to comment.