Hello,
We build a C# dll to use the SendInBlue's API (https://www.sendinblue.com/)
We want to call the function from PowerBuilder 2019 build 2170.
We pass as argument a string array that contains a list of recipients.
When we check the contents of the array in the function of the DLL, it contains only the first row, whereas we have an array that contains 4 records.
Here is how we declared the function in PB :
Function String SendMail(string senderMail, string senderName, ref string destMail[], ref string destName[], ref string subMail[], ref string msgMail[]) Library "SendInBluePB.dll" Alias For "SendMail;Ansi"
Here is how we declared the function in VisualStudio :
public static string SendMail(string senderMail, string senderName, string[] destMail, string[] destName, string[] subMail, string[] msgMail)
{
...
int i = destMail.Length; // Always return 1
...
}
We are new to C#, so could you tell us what we did wrong in the declaration of the functions please ?
Here is the list of all the packages we use in VisualStudio :
For the time being, we are looking for the cheapest solution.