Using the old C++ library

Posted on 2007-10-09
Last Modified: 2013-11-26

I have a C++ library (pxxx.dll & pxxx.lib) on hand and I would like to add reference to my project in 2005 and got an error said that dll file is not a valid COM component, how can I use it in my project? I have a  VB 6 project can use this library through the API but in .Net, it can't be used, please help me
Question by:mephist
    LVL 39

    Accepted Solution


    did you try copying the dll files in to your bin folder and use the api declarations as same as in vb 6 project and use it in your project?

    other option is you know how to work with the dlls in vb6. create a wrapper dll in vb6 and use it in
    LVL 39

    Assisted Solution

    check this, i think using dllimport method will sole the problem.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    A short article about problems I had with the new location API and permissions in Marshmallow
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now