Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Compatibility question


Message #1 by "Tom Carr" <tom@s...> on Wed, 20 Feb 2002 16:43:47
Adding any parameters to an existing public interface will break
compatibility regardless of whether it is optional or not.  Create a
second function with a similar name to maintain compatibility (i.e.
Function Save, Function Save2).  An example of this is in the Microsoft
Internet Controls Navigate and Navigate2.

-----Original Message-----
From: Tom Carr [mailto:tom@s...]
Sent: Wednesday, February 20, 2002 11:44 AM
To: professional vb
Subject: [pro_vb] Compatibility question

I added some optional arguments to a public function in a class used to
make a .dll.  When I try to compile I get the message asking me if I
want
to break or preserve compatibility, with the warning that if I preserve
compatibility applications using the class will likely crash.  However,
since I am only adding optional arguments, isn't it safe to preserve
compatibility ?


  Return to Index