Archived
This forum has been archived. Please start a new discussion on GitHub.
error C2039: 'InitializationData': is not a member of 'Ice'
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.
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.
0
Comments
-
-
What version of Ice are you using?0
-
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!0