Edgar, I am surprised (und pleased!) that the compiler accepts multiple functions with similar declarations -- only the arguments change.
So the run-time is smart enough to use the 'correct' function call, given the parameter type? Wow! MfG / Roger --------------------------------- On the one hand you can have several declarations/imports of cmsDoTransform e.g.: public static class NativeMethods { [DllImport("lcms2.dll")] public static extern void cmsDoTransform( [In] IntPtr Transform, [In] byte[] InputBuffer, [Out] byte[] OutputBuffer, [In] UInt32 Size); [DllImport("lcms2.dll")] public static extern void cmsDoTransform( [In] IntPtr Transform, [In] ushort[] InputBuffer, [Out] ushort[] OutputBuffer, [In] UInt32 Size); [DllImport("lcms2.dll")] public static extern void cmsDoTransform( [In] IntPtr Transform, [In] double[] InputBuffer, [Out] double[] OutputBuffer, [In] UInt32 Size); } ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user