Click here to Skip to main content
12,399,561 members (50,169 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VC6 C++ C#
Hello Experts,

I have tried to register the dll but unable to register. Error like entry point not found.

How to call vc++ dll in C# application?

Is there any other way to use vc++ dll in C# application?



Regards,

Purnananda Behera
Posted 16-Mar-12 3:06am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Google "interop services".
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

If you know the function names then you can use pinvoke [^]to call them

Have a look here, shows you how to use dumpbin to view the DLL and how to declare the functions for pinvoke


Step by Step: Calling C++ DLLs from VC++ and VB - Part 2[^]

It's a VB article, bu the concept is exactly the same for c#
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 16 Mar 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100