apm,
You can only do this in .NET 2.0. You can apply the
UnmanagedFunctionPointer attribute to the delegate.
In .NET 1.1 and before, you would have to pass your delegate to an
unmanaged piece of code which has the signature of the delegate, and pass
that to your function.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"apm" <Co*********@AdsorptionProcessModeling.com> wrote in message
news:wCgUe.3641$nq.3584@lakeread05...
Is there a way to change the calling convention of a delegate to Cdecl?
Is it possible to define a callback function in C# that used the Cdecl
convention?
Thanks in advance.