Error in C++ DLL init when called from VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Error in C++ DLL init when called from VB

  1. #1
    Stephen Mather-Lees Guest

    Error in C++ DLL init when called from VB


    Hi -
    I have created a DLL in VC++ version 5 as a layer between a VB6 app and a
    device driver (the DDK requires VC++ version 5). I get a failure in the C
    run time init right after a good exit from the second call to DllMain (which
    successfully calls _CRT_INIT, no other init is needed), before my actual
    DLL routine gets called. This is impossible to debug (no source from MS!),
    and I have tried a lot of different things with the compiler/linker. Is there
    a problem with VB6 and VC++ version 5? What am I missing? Any ideas? I can
    send code & C++ workspace info if that helps. I have searched MSDN, and the
    C++ docs quite thoroughly, also various lists.

    TIA, Stephen M-L

  2. #2
    Roy iroyaol.com Guest

    Re: Error in C++ DLL init when called from VB


    "Stephen Mather-Lees" <stephen@totaldgtl.com> wrote:
    >
    >Hi -
    >I have created a DLL in VC++ version 5 as a layer between a VB6 app and

    a
    >device driver (the DDK requires VC++ version 5). I get a failure in the

    C
    >run time init right after a good exit from the second call to DllMain (which
    >successfully calls _CRT_INIT, no other init is needed), before my actual
    >DLL routine gets called. This is impossible to debug (no source from MS!),
    >and I have tried a lot of different things with the compiler/linker. Is

    there
    >a problem with VB6 and VC++ version 5? What am I missing? Any ideas? I can
    >send code & C++ workspace info if that helps. I have searched MSDN, and

    the
    >C++ docs quite thoroughly, also various lists.
    >
    >TIA, Stephen M-L


    Stephen,
    I think you missing what we all are: VB7.
    Just wanted to make you smile. But if seriously, once I did quite similar
    app and ran into same thing. Never got an answer. Sory for not been helpfull.

    Regards, Roy.


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