etienne_marais
Honorary Master
I have successfully used various c/c++ 3'rd party library functions by using dllimport and extern
Example:
[DllImport("ThirdPartyLibrary.dll ")]
internal static extern Int16 CreateRFIDCard(double parameter1);
Problem is that the libary now contains functions with TDateTime which seems incompatible with .NET CLR DateTime:
[DllImport("ThirdPartyLibrary.dll ")]
internal static extern Int16 CreateRFIDCard2(double parameter1, DateTime parameter2);
What do I need to do to pass a c# DateTime to the c/c++ function CreateRFIDCard2 (or better expressed, what is the c# type I need to use to corresponde to c/c++ TDateTime?)
Thanks
Example:
[DllImport("ThirdPartyLibrary.dll ")]
internal static extern Int16 CreateRFIDCard(double parameter1);
Problem is that the libary now contains functions with TDateTime which seems incompatible with .NET CLR DateTime:
[DllImport("ThirdPartyLibrary.dll ")]
internal static extern Int16 CreateRFIDCard2(double parameter1, DateTime parameter2);
What do I need to do to pass a c# DateTime to the c/c++ function CreateRFIDCard2 (or better expressed, what is the c# type I need to use to corresponde to c/c++ TDateTime?)
Thanks