Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I have a dll developed in MFC. I need to use its functions inside a c# project.
I would like know to what all are things need to be done in c# code, to use dll without errors.
Posted
Comments
Richard MacCutchan 28-May-14 7:00am    
As far as I am aware, you cannot call MFC class functions direct from C#. P/Invoke uses native C linkage, so you need to provide a C/C++ front end.

1 solution

Check this from the homesite,
use of MFC C Dll in C#[^]

All the best:)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900