IntraWeb14 IWStandAloneServer问题
想自定义服务器外观, 据说在12.1.25后, 需要发一条IWStandAloneServer->Start。
在14的Demo里, 原文为 IWStandAloneServer.Start(TSaServerIndy);
问题是,我不知道怎么改为CB下的句子。
尝试了一下:
TSaServerIndy *svr = new TSaServerIndy(this);
IWStandAloneServer1->Start((TMetaClass*)svr);
可是一执行到Start就报错了。
以下是Atozed的一篇相关文档
If you are using the TIWStandAloneServer, there are some breaking changes in the release 12.1.25 and you need to update your code.
For those using IWStandAloneServer, you must now explicitly call this TIWStandAloneServer.Start,
xMySaServer.Start(TIWHTTPServerModule);
This is only for users using the TIWStandAloneServer component, ie, if you have a Custom Stand Alone server.
There are no changes if you are using the standard Stand Alone Server.
/////////////////////////////////////////////////
请有经验的兄弟姐妹指点一下, 谢谢。