Hi Dotnetjunky,
Platform Invocation is the right way to go. Normally people called it P/Invoke.
Keyword used: DllImport
1 short example calling a custom made C Dll:
// Entrypoint here means ordinal. To know the ordinal, use dependency walker to
// check. It is part of visual studio 6.0.
[DllImport("abc.dll", EntryPoint="#5", CharSet=CharSet.Unicode, ExactSpelling=true)]
private extern static int CallValue(ushort u16Port, ref ushort pHandle);
It will work with win32 dlls. Just you had to be careful what kind of data types of be used.
Hope it helps.
--
Regards,
Chua Wen Ching :)
[quoted text, click to view] "Dotnetjunky" wrote:
> Hi experts,
>
> Can anyone show me how to call a function defined in a normal Win32.dll ?
>
> Thanks in advance
>