H
HansvB69
Guest
Hi,
Ik have a pascal dll which has a function that returns a Widestring.
Now i want to use the dll in C# like this:
[DllImport(@"Test.dll", CallingConvention = CallingConvention.StdCall)]
public static extern string GetOne();
private void button1_Click(object sender, EventArgs e)
{
try
{
textBox1.Text = GetOne();
}
catch (Exception ex)
{
string tmp = "Just to read the exception when debugging";
}
}
I get this warning: Test.exe has triggered a breakpoint.
How to imprt a string from a Pascal DLL?
Continue reading...
Ik have a pascal dll which has a function that returns a Widestring.
Now i want to use the dll in C# like this:
[DllImport(@"Test.dll", CallingConvention = CallingConvention.StdCall)]
public static extern string GetOne();
private void button1_Click(object sender, EventArgs e)
{
try
{
textBox1.Text = GetOne();
}
catch (Exception ex)
{
string tmp = "Just to read the exception when debugging";
}
}
I get this warning: Test.exe has triggered a breakpoint.
How to imprt a string from a Pascal DLL?
Continue reading...