Archived
This forum has been archived. Please start a new discussion on GitHub.
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.
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.
0
Comments
-
Re: Problem when vc.net 2003 work with Ice 1.2.0 ?question 1Originally 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/showthread.php?s=&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/default.asp?url=/library/en-us/cpref/html/frlrfsystemtypeloadexceptionclasstopic.asp).
Benoit.0 -
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/showthread.php?s=&threadid=303&highlight=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.0