DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Type Mismatch error

  1. #1
    Sasha Bonsignore Guest

    Type Mismatch error


    Hi,

    I've developed a ActiveX DLL using VB. Tested on my machine everything was
    fine. I then tested it on a different machine and I start to get weird errors
    when I tried to create an instance of my class. I thought that it might be
    that the machine did not have all the correct libraries so I just get a copy
    of my code recreate all the reference and build the DLL on that machine...
    Same error over and over again!

    Public WithEvents myLogger As ORC_LOGGER.Session

    Private Sub Class_Initialize()
    Set myLogger = New ORC_LOGGER.Session
    End Sub

    Above are the instructions that generate the error. Does anybody had the
    same issue and knows why it does happen? How can I fix it?

    Many thanks
    Sasha



  2. #2
    Willy Van den Driessche Guest

    Re: Type Mismatch error

    IMHO you have an old version of the ORC_LOGGER registered on your machine or
    you don't use binary compatibility.

    For some compilation advice :
    http://users.skynet.be/wvdd2/General...compiling.html
    --
    Van den Driessche Willy
    For a work in progress :
    http://users.skynet.be/wvdd2/index.html



  3. #3
    sashab Guest

    Re: Type Mismatch error


    "Willy Van den Driessche" <Willy.Van.denDriessche@skynet.be> wrote:
    >IMHO you have an old version of the ORC_LOGGER registered on your machine

    or
    >you don't use binary compatibility.
    >
    >For some compilation advice :
    >http://users.skynet.be/wvdd2/General...compiling.html
    >--
    >Van den Driessche Willy
    >For a work in progress :
    >http://users.skynet.be/wvdd2/index.html
    >
    >

    Hi,

    I've used binary compatibility and unregistered all the ORC_LOGGER dlls (actually
    I've tried also in an empty machine from scratch with the same result)...
    I am really really buffled!!!

    Sasha



  4. #4
    huibert Guest

    Re: Type Mismatch error


    >I've developed a ActiveX DLL using VB. Tested on my machine everything was
    >fine. I then tested it on a different machine and I start to get weird errors
    >when I tried to create an instance of my class. I thought that it might

    be
    >that the machine did not have all the correct libraries so I just get a

    copy
    >of my code recreate all the reference and build the DLL on that machine...
    >Same error over and over again!
    >
    >Public WithEvents myLogger As ORC_LOGGER.Session
    >
    >Private Sub Class_Initialize()
    > Set myLogger = New ORC_LOGGER.Session
    >End Sub
    >
    >Above are the instructions that generate the error. Does anybody had the
    >same issue and knows why it does happen? How can I fix it?


    Sasha,

    I agree with Willy. Unfortunately you haven't included the exact text of
    the error message, so we need to do an educated guess......

    When code (An activex DLL) works fine on the development machine and not
    at all on a client's machine, it has usually
    to do with one of couple things:
    0) The DLL was not compiled using binary compatibility. You are suicidal

    (just joking, but not much) and beyond help.
    1) Believe it or not: The DLL is not present on the client's machine
    2) The DLL is actually present, but it is not registered. Use Regsvr32.exe
    the register the DLL
    3) There are more than 1 copies of the DLL on the development machine. An
    *old* copy was distributed to the client machine. The EXE wants the *new*
    copy
    4) There are more than 1 copies of the EXE on the development machine. An
    *old* copy was distributed to the client machine. The EXE wants the *old*
    copy of the DLL
    5) The error is based in another configuration difference between the
    dev and client machine.

    All in all, it shouldn't be too hard to crack this.

    hth
    huibert

  5. #5
    Willy Van den Driessche Guest

    Re: Type Mismatch error

    As a final addition, some components might fail to register due to
    insufficient user rights or missing dependent files.
    --
    Van den Driessche Willy
    For a work in progress :
    http://users.skynet.be/wvdd2/index.html



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