您的位置:首页 > 编程语言 > C#

string类型函数 bcb做dll,c#调用

2010-04-15 12:40 309 查看
BCB:


C#:

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace ConsoleApplication1
{
class Program
{
[DllImport("C:\test.dll")]

public static extern StringBuilder _importStr(String str1);

static void Main(string[] args)
{
Console.WriteLine(_importStr("hello world1").ToString());
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: