?
Solved

Using the old C++ library

Posted on 2007-10-09
2
Medium Priority
?
190 Views
Last Modified: 2013-11-26
Hello,

I have a C++ library (pxxx.dll & pxxx.lib) on hand and I would like to add reference to my vb.net project in vs.net 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
0
Comment
Question by:mephist
  • 2
2 Comments
 
LVL 39

Accepted Solution

by:
appari earned 1500 total points
ID: 20039168

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 vb.net project?

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

Assisted Solution

by:appari
appari earned 1500 total points
ID: 20039190
check this, i think using dllimport method will sole the problem.
http://msdn2.microsoft.com/en-us/library/172wfck9(VS.80).aspx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

807 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