日期:2014-05-18 浏览次数:21194 次
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication1
{
internal class Program
{
private static void Main(string[] args)
{
StringBuilder sb1 = new StringBuilder(100);
StringBuilder sb2 = new StringBuilder(100);
StringBuilder sb3 = new StringBuilder(100);
GX_GetFskCallerID(MESSAGE_HAVE_CID_FSK, sb1, sb2, sb3);
Console.ReadKey(true);
}
[DllImport("TheCppLib.dll")]
public static extern double add(ref double a, ref double b);
public const int MESSAGE_HAVE_CID_FSK = 0;
[DllImport("TheCppLib.dll", EntryPoint = "GX_GetFskCallerID",CharSet = CharSet.Ansi)]
public static extern ushort GX_GetFskCallerID(ushort ChannelNo,
StringBuilder DateTime,
StringBuilder TelNo,
StringBuilder Name);
}
}