Results 1 to 4 of 4

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

  1. #1
    abchjb is offline Registered User
    Name: jianbin hu
    Organization: pinan securities Co, Ltd
    Project: use Ice as middleware and publish quote
    Join Date
    Oct 2008
    Posts
    10

    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.

  2. #2
    abchjb is offline Registered User
    Name: jianbin hu
    Organization: pinan securities Co, Ltd
    Project: use Ice as middleware and publish quote
    Join Date
    Oct 2008
    Posts
    10

    source

    hi, It's my source file.
    Attached Files Attached Files

  3. #3
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    What version of Ice are you using?

  4. #4
    abchjb is offline Registered User
    Name: jianbin hu
    Organization: pinan securities Co, Ltd
    Project: use Ice as middleware and publish quote
    Join Date
    Oct 2008
    Posts
    10

    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. InitializationData no Support Chinese Path
    By wang shuqiang in forum Bug Reports
    Replies: 2
    Last Post: 03-07-2011, 12:23 PM
  2. Replies: 2
    Last Post: 02-10-2011, 06:23 PM
  3. Replies: 3
    Last Post: 01-13-2011, 06:58 AM
  4. slice2cs issue with member initialization
    By romank in forum Bug Reports
    Replies: 1
    Last Post: 09-28-2010, 11:08 AM
  5. member ambiguity error when creating a smart pointer
    By heathbar in forum Help Center
    Replies: 3
    Last Post: 04-09-2006, 05:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •