Results 1 to 5 of 5

Thread: AMI Error

  1. #1
    billwillman is offline Registered User
    Join Date
    Sep 2006
    Posts
    14

    AMI Error

    My class:
    class Cprintcallback: virtual public printspace::AMI_printI_print//AMI_printI_print is callback
    {
    public:

    virtual void ice_response(Ice::Int &result)
    {

    printpos(result);
    };

    virtual void ice_exception(const Ice::Exception&)
    {
    return;
    };
    };

    AMI_printI_printPtr printcallback;//this is callback object

    but when use printcallback=new Cprintcallback();
    C++ tell me error:'Cprintcallback' : cannot instantiate abstract class due to following members:

    Would can I do??please help me! Thank you!
    My Full Name:
    zeng yi

    E-Mail:
    zengyi@vip.371.net

    My Company URL:
    www.zzia.edu.cn

    My Project:
    Games' net

    I use Ice in Visual C++.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    We'll be happy to help you once you set your signature. See this thread for information on how to set it. Please, also provide the slice definition of the interface where the print method is defined.

    Cheers,
    Benoit.

  3. #3
    billwillman is offline Registered User
    Join Date
    Sep 2006
    Posts
    14
    My interface print by slice:
    module printspace
    {
    interface printI
    {
    ["ami"] int print();
    };
    };
    My Full Name:
    zeng yi

    E-Mail:
    zengyi@vip.371.net

    My Company URL:
    www.zzia.edu.cn

    My Project:
    Games' net

    I use Ice in Visual C++.

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Quote Originally Posted by billwillman
    [...]
    but when use printcallback=new Cprintcallback();
    C++ tell me error:'Cprintcallback' : cannot instantiate abstract class due to following members:
    What members exactly? What is the complete error message? Your first post didn't list the members that caused the class to be abstract.

  5. #5
    billwillman is offline Registered User
    Join Date
    Sep 2006
    Posts
    14
    Thank you for your answer, I have solved it.
    ice_response(int result ) is ok
    My Full Name:
    zeng yi

    E-Mail:
    zengyi@vip.371.net

    My Company URL:
    www.zzia.edu.cn

    My Project:
    Games' net

    I use Ice in Visual C++.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Questions regarding to AMI
    By zaoliu in forum Help Center
    Replies: 10
    Last Post: 03-06-2008, 01:36 PM
  2. AMI or not AMI depending on slice args?
    By stepancheg in forum Help Center
    Replies: 2
    Last Post: 02-26-2008, 03:00 PM
  3. Help : AMI
    By mykael in forum Help Center
    Replies: 7
    Last Post: 06-22-2006, 12:23 PM
  4. ICE::AMI is useful?
    By zigzag in forum Comments
    Replies: 8
    Last Post: 03-29-2006, 07:07 AM
  5. AMI question
    By stephan in forum Help Center
    Replies: 7
    Last Post: 03-02-2005, 04:59 AM

Posting Permissions

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