C#中如何实现Delphi中的
function StrMove(Dest: PChar; const Source: PChar; Count: Cardinal): PChar,
StrMove方法详细是怎么替换的?Cdelphi
function StrMove(Dest: PChar; const Source: PChar; Count: Cardinal): PChar,
StrMove方法详细是怎么替换的?Cdelphi
解决方案 »
- 全部偶数的集合与全部自然数的集合相等?
- How to open top window (include the frameset) in parent window? Thanks a lot!
- ASP.NET新手未入门
- 请问 A窗体上有label控件,B窗体继承了A窗体,怎么去访问这个label控件?
- 多谢sanmao0126,请来接分~(他人免进)
- 为何我局域网用udp传送的文件都会损坏?文本文件能正常打开
- 我想在C#调用GDI里的SetPixel和GetPixel的HDC结构怎么处理啊??
- 用VS.Net在Win XP下开发应用程序,BUTTON按钮为什么不是XP风格的?
- 应该不难的问题,20分!!
- 我怎么不能add web reference! 帮忙看看!
- GPRS传输,socket接收,存入数据库问题
- Socket编程-如何关闭服务端?
public string StrMove(string Dest, string Source, int count)
{
if (count > Source.Length)
{
Dest = Source;
return Dest;
} if (count >= Dest.Length)
{
Dest = Source.Substring(0, Dest.Length);
return Dest;
} Dest = Source.Substring(0, count) + Dest.Substring(Dest.Length - count);
return Dest; }
http://www.cnblogs.com/del/archive/2008/05/13/1194648.html
public static extern string MemCopy(string dest, string src, int count);