C # call the DLL (C ++) missing export function

Directshow is frustrating wheels, but is the second time the preparation of related DLL.

I was going to use C # debug the DLL and report the results:  trying to load program with an incorrect format 

There has been accurately set the target platform. ( C # attempts to load malformed program )

So, eventually starting a compiled DLL tool quiz, but because of the complexity Depends walker DLL structure inexplicable suspended animation.

Back to nature with dumpbin / exports xx.dll a result of eating whale:
figure 1

I wrote a function of where to go?

This is the starting point to the back looked exported functions only on the project .h header file, the corresponding cpp file was removed because of obsessive-compulsive disorder. Compiled from the principle point of view, perhaps this is the problem. So create back .cpp file. do not forget to include the .h file to get going.

2

Regenerate it, dumpbin test finally normal. C # debugging is normal

Released three original articles · won praise 2 · Views 307

Guess you like

Origin blog.csdn.net/aldfaaa/article/details/99648719