Greg Keogh wrote:
Folks, I've got some DLLs written in Borland C++ with functions that I have to import for use in some C# code. I can see the functions inside the DLLs using depends.exe, but I can't get the signatures correct and I get "unbalanced stack" errors runtime due to mismatching signatures. Is there some technique I can use to convert the DLL functions into correctly matching methods with [DLLImport]? The weak link at the moment is the human one, me. Greg K

Solution is to destroy the weak link! Use a robot!

Have you tried this: https://clrinterop.codeplex.com/ It's *meant* to do make things easier.

Another thought: Could it be that your app is expecting 64-bit integers from a 32-bit dll?

Cheers,
--
Les Hughes
[email protected]


Reply via email to