Add a new function in server side,the the old client can not work?
- From: "Huangzd" <huangzd@xxxxxxxx>
- Date: Thu, 20 Oct 2005 18:06:05 +0800
In the Server side code,there has 2 classes, A and B. and B implements
A.After compile the project,VB generates 2 interfaces _A and _B, 2 classes A
and B,and the A class supports the _A interface,and B class supports _A and
_B interface.
Now i add a new function in class A. And recompile it use binary
compatibility property,then the interface _A has changed it's GUID,and the
compiler generates a more interface _A___V0 which GUID equals the origin
interface _A,so now the compiler generates 3 interfaces _A,_A___V0 and _B,2
classes A and B,and A supports _A and _A___V0 interfaces,and B supports _A
and _B interfaces.
The client side code is below
Dim o as A
Set o=new B
compile the client side code and generate client.exe.
Before change the server side code,the client.exe work correctly,but after
add the new function, the client.exe can not work because of the class B
don't support the _A___V0 interface.
My question:
After recompile the server side code, Why does the class B not support the
_A___V0 interface?
.
- Follow-Ups:
- Re: Add a new function in server side,the the old client can not work?
- From: Mark Yudkin
- Re: Add a new function in server side,the the old client can not work?
- Prev by Date: Re: Bug with Socket
- Next by Date: Re: Bug with Socket
- Previous by thread: Bug with Socket
- Next by thread: Re: Add a new function in server side,the the old client can not work?
- Index(es):
Relevant Pages
|