Results 1 to 4 of 4

Thread: Problem when vc.net 2003 work with Ice 1.2.0 ?question 1

  1. #1
    xiehua is offline Registered User
    Join Date
    Aug 2003
    Location
    HangZhou China
    Posts
    30

    Problem when vc.net 2003 work with Ice 1.2.0 ?question 1

    ---development platform-------------
    vc 7.1
    win2000 professional simplified chinese
    ice 1.20
    --------------------------------------------
    I just put the Ice "Hello" code into a .net form Application.
    I build the Application with
    /CLR
    there are problems.

    1. I need to put #include <Ice/Ice.h> in front of all to make it work well.
    2. I can't use /Yu To save Complie time Because It rise problem.

    3. When I get rid of 1. and 2.
    The bug report " System.TypeLoadException" in client
    when I use proxy to printstring from client to server.
    but server can work well in the case.

  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

    Re: Problem when vc.net 2003 work with Ice 1.2.0 ?question 1

    Originally posted by xiehua
    ---development platform-------------
    vc 7.1
    win2000 professional simplified chinese
    ice 1.20
    --------------------------------------------
    I just put the Ice "Hello" code into a .net form Application.
    I build the Application with
    /CLR
    there are problems.

    1. I need to put #include <Ice/Ice.h> in front of all to make it work well.

    2. I can't use /Yu To save Complie time Because It rise problem.


    Right, this should be fixed in the next release. See Mark's post for more details: http://www.zeroc.com/vbulletin/showt...=&threadid=363




    3. When I get rid of 1. and 2.
    The bug report " System.TypeLoadException" in client
    when I use proxy to printstring from client to server.
    but server can work well in the case.
    I'm not sure why you get this exception. The "System.TypeLoadException" exception is not an Ice exception but an exception from .NET framework (see http://msdn.microsoft.com/library/de...classtopic.asp).

    Benoit.

  3. #3
    xiehua is offline Registered User
    Join Date
    Aug 2003
    Location
    HangZhou China
    Posts
    30
    Attach file hello.zip is my Application code.

    I test it again,The bug report
    can't load type IceInternal.Connection


    The Application is simple that just a button "Printhello",
    click it to printstring "hello" to the server.
    Attached Files Attached Files

  4. #4
    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
    Sorry, I should have noticed earlier that you're compiling with /CLR (Windows and .NET aren't my speciality and our Windows specialists are currently on travel). I'm afraid we currently don't support this option (see http://www.zeroc.com/vbulletin/showt...hlight=managed). Hopefully someone more familiar than me with the .NET Managed Extensions for C++ will have a suggestion regarding your problem, otherwise and if reasonable, I would suggest to use MFC instead.

    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 01-02-2008, 12:13 PM
  2. Compiling aspell in vs.NET 2003
    By s.lawrence in forum Help Center
    Replies: 2
    Last Post: 03-31-2006, 06:04 AM
  3. How to use Ice with vc.net
    By W.noon in forum Help Center
    Replies: 1
    Last Post: 10-27-2004, 08:43 AM
  4. how to config the environment in VC .NET 2003
    By fw_csha in forum Help Center
    Replies: 5
    Last Post: 09-27-2004, 10:38 AM
  5. Regarding ICE on .NET 2003
    By Anand_S in forum Help Center
    Replies: 0
    Last Post: 09-16-2004, 01:50 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
  •