定义一个这样的文件Printer.iceinterface Printer
{
void printString(string s);
};用slice2cs.exe生成时,提示为下面的错误,是什么意思呀!怎样解决.F:\\ICE\\Item\\Printer.ice:2: `Printer': an interface can be defined only at mod
ule scope
{
void printString(string s);
};用slice2cs.exe生成时,提示为下面的错误,是什么意思呀!怎样解决.F:\\ICE\\Item\\Printer.ice:2: `Printer': an interface can be defined only at mod
ule scope
module Demo
{
interface printer
{
void printString(string s);
};
};在服务器和客户机程序前加上
using namespace Demo;
相当于namespace