I wanted to call the following two C DLL methods from C# code.
BOOL FAR PASCAL GetData (char * pszName, int *pnAge, char *pszAddress, char *pcType,
long *plDOB, float *pfSal, double *pdSal, UINT *puPhone, byte *byData, BOOL *pbVal);
void FAR PASCAL SetData (char * pszName, int nAge, char *pszAddress, char cType,
long lDOB, float fSal, double dSal, UINT uPhone, byte cData, BOOL bVal);
I know that to call unmanaged DLL methods from managed code, we need to defined DLLImport attributes.
My question is how to define it for the above two methods
If someone can give the actual code snippet that defines the DLLImport attributes for the above two sample methods will be very much appreciated.
Thanks in advance for your help.