I have a dll in vc++ 9.0 Now I have to call the function of this dll in our c# application,but the problem is that we have to use .def file to export the functions.
EXPORTS
Abc @1 NONAME
Xyz @2 NONAME
We have to use only ordinal no of the function in c# aplication.
When you specify the DllImport attribute, you can specify the Ordinal of the function:
then you call MyFunc to call the ordinal 123.