type mismatch error in debug of compiled dll


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: type mismatch error in debug of compiled dll

  1. #1
    christopher morgan Guest

    type mismatch error in debug of compiled dll


    i have a compiled dll i am calling from another project, and all works fine.
    if i run the dll for debugging i get a type mismatch error when i try to
    CreateObject("dll.class").
    also, this only happens if i dim the object with
    dim myObj as dll.class
    if i use
    dim myOjb as object
    it works fine.

    any help?
    thank you


  2. #2
    Willy Van den Driessche Guest

    Re: type mismatch error in debug of compiled dll

    Your dll was not compiled with binary compatibility. You probably compiled
    your dll, then your exe and then once again the dll. If the dll isn't
    binary compatible with the previous version, the EXE will fail with a type
    mismatch. I've tried to explain this at :
    http://users.skynet.be/wvdd2/Compili...nary_compatibi
    lity.html

    --
    For a work in progress :
    http://users.skynet.be/wvdd2/
    "christopher morgan" <cmorgan@mavricc.com> schreef in bericht
    news:3e2309c8$1@tnews.web.devx.com...
    >
    > i have a compiled dll i am calling from another project, and all works

    fine.
    > if i run the dll for debugging i get a type mismatch error when i try to
    > CreateObject("dll.class").
    > also, this only happens if i dim the object with
    > dim myObj as dll.class
    > if i use
    > dim myOjb as object
    > it works fine.
    >
    > any help?
    > thank you
    >




  3. #3
    christopher morgan Guest

    Re: type mismatch error in debug of compiled dll


    actually it turns out the original dll's were compiled under win2000, my machine
    is xpPro. the binary compatibility was pointing to a 2000 file. by pointing
    it to a file compiled under xp, the problem was solved.

    "Willy Van den Driessche" <wvddwebcomments@skynet.be> wrote:
    >Your dll was not compiled with binary compatibility. You probably compiled
    >your dll, then your exe and then once again the dll. If the dll isn't
    >binary compatible with the previous version, the EXE will fail with a type
    >mismatch. I've tried to explain this at :
    >http://users.skynet.be/wvdd2/Compili...nary_compatibi
    >lity.html
    >
    >--
    >For a work in progress :
    >http://users.skynet.be/wvdd2/
    >"christopher morgan" <cmorgan@mavricc.com> schreef in bericht
    >news:3e2309c8$1@tnews.web.devx.com...
    >>
    >> i have a compiled dll i am calling from another project, and all works

    >fine.
    >> if i run the dll for debugging i get a type mismatch error when i try

    to
    >> CreateObject("dll.class").
    >> also, this only happens if i dim the object with
    >> dim myObj as dll.class
    >> if i use
    >> dim myOjb as object
    >> it works fine.
    >>
    >> any help?
    >> thank you
    >>

    >
    >



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