DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Binary compatibility version mismatch

  1. #1
    Sanjay Guest

    Binary compatibility version mismatch


    Comrades.

    I face a very strange problem.

    Here is how it goes:

    1. I have a DLL containing an ActiveX class (say class1)

    2. I have set the compilation setting to "Binary compatability"

    3. In a project which references this dll I have a strongly typed reference:
    ...Somefunction...(someparam as Class1)...
    Dim a as Class1
    Set a = someparam

    Somefunction is invoked from the DLL with Class1 object as parameter.
    Things work fine.

    4. I have broken the compatability, and established a newer binary compatability.
    I have recreated the reference in the referencing project.

    But when now it is invoked, Set statement throws "Type Mismatch"


    Two Questions:

    1. Why is this error thrown when the left/right operations are of same type.

    2. How is the version (1.0/1.1) of a coclass/library assigned when a dll/ocx
    is compiled?

    Any help appreciated.

    SOS. :-)

    Thanks & Regards
    Sanjay.

  2. #2
    Paul Clement Guest

    Re: Binary compatibility version mismatch

    On 16 Apr 2003 09:05:26 -0800, "Sanjay" <san_kapoor@indiatimes.com> wrote:


    Comrades.

    I face a very strange problem.

    Here is how it goes:

    1. I have a DLL containing an ActiveX class (say class1)

    2. I have set the compilation setting to "Binary compatability"

    3. In a project which references this dll I have a strongly typed reference:
    ..Somefunction...(someparam as Class1)...
    Dim a as Class1
    Set a = someparam

    Somefunction is invoked from the DLL with Class1 object as parameter.
    Things work fine.

    4. I have broken the compatability, and established a newer binary compatability.
    I have recreated the reference in the referencing project.

    But when now it is invoked, Set statement throws "Type Mismatch"


    Two Questions:

    1. Why is this error thrown when the left/right operations are of same type.

    2. How is the version (1.0/1.1) of a coclass/library assigned when a dll/ocx
    is compiled?

    Any help appreciated.


    Did you recompile the client that is using the ActiveX DLL?


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  3. #3
    Sanjay Guest

    Re: Binary compatibility version mismatch


    Yes I did. :-(

    Interestingly the type mismatch does not occur on invocation of method but
    on execution of set statement. :-((


    Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> wrote:
    >On 16 Apr 2003 09:05:26 -0800, "Sanjay" <san_kapoor@indiatimes.com> wrote:
    >
    >
    > Comrades.
    >
    > I face a very strange problem.
    >
    > Here is how it goes:
    >
    > 1. I have a DLL containing an ActiveX class (say class1)
    >
    > 2. I have set the compilation setting to "Binary compatability"
    >
    > 3. In a project which references this dll I have a strongly typed reference:
    > ..Somefunction...(someparam as Class1)...
    > Dim a as Class1
    > Set a = someparam
    >
    > Somefunction is invoked from the DLL with Class1 object as parameter.
    > Things work fine.
    >
    > 4. I have broken the compatability, and established a newer binary compatability.
    > I have recreated the reference in the referencing project.
    >
    > But when now it is invoked, Set statement throws "Type Mismatch"
    >
    >
    > Two Questions:
    >
    > 1. Why is this error thrown when the left/right operations are of same

    type.
    >
    > 2. How is the version (1.0/1.1) of a coclass/library assigned when a dll/ocx
    > is compiled?
    >
    > Any help appreciated.
    >
    >
    >Did you recompile the client that is using the ActiveX DLL?
    >
    >
    >Paul ~~~ pclement@ameritech.net
    >Microsoft MVP (Visual Basic)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center