Re: Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures




Make sure the exported entry points have non-mangled names (e.g.
SetTest instead of _SetTest@8)

or

Set the EntryPoint property of the DllImport attribute to the actual,
mangled name with which the function is exported.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.


Loading