Re: Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Mon, 27 Mar 2006 19:14:08 +0200
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: VC++ 7.1 Winform App & Callback from Unmanaged Static MT Library
- Next by Date: Re: Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures
- Previous by thread: Re: Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures
- Next by thread: Re: Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures
- Index(es):
Loading