有一个用vc++写的显示地图的ocx控件,其中显示点的函数声明如下,
void CMapCtrl::DrawKeyPoint(long PointID, short Symbol, BSTR FAR* szName, BSTR FAR* Point, short Size, long dwColor)
{
PPOINTEX pp = (PPOINTEX)Point;
},其中//PPOINTEX为一自定义结构体,szName为一字符串。我将这个ocx控件,拖放到vs2005 C#中,其中的DrawKeyPoint的声明变为如下:
public virtual void DrawKeyPoint(int pointID, short symbol, ref string szName, ref string point, short size, int dwColor)现在的问题是,在C#中,这个ref string point如何值。
void CMapCtrl::DrawKeyPoint(long PointID, short Symbol, BSTR FAR* szName, BSTR FAR* Point, short Size, long dwColor)
{
PPOINTEX pp = (PPOINTEX)Point;
},其中//PPOINTEX为一自定义结构体,szName为一字符串。我将这个ocx控件,拖放到vs2005 C#中,其中的DrawKeyPoint的声明变为如下:
public virtual void DrawKeyPoint(int pointID, short symbol, ref string szName, ref string point, short size, int dwColor)现在的问题是,在C#中,这个ref string point如何值。
解决方案 »
- MDI 接口函数问题
- 如何用IP建立Ftp连接
- 如何取到程序运行的当前路径?
- 想让鼠标在ListView控件(Detail方式)的某一项上悬停时,用ToolTip显示项的内容,遇到了困难
- 简单问题,来接分拉拉拉拉
- 请问编译 Dxperience 8.2.2源代码步骤是怎么样的?
- 对于.net的安全构架和SLL Socket实现比较熟悉者,望指教
- 请教如何将excel表中的记录导入access数据库
- 怎样new 一个image/bitmap,设定它是256级灰度和指定大小?(在线等)
- 如何设置datagrid行背景颜色?
- UDP通信中 怎样自动发送和接收数据??
- 如何初始化结构体数组(泛型)???
szName = point = string.Empty;
DrawKeyPoint(int pointID, short symbol, ref string szName, ref string point, short size, int dwColor)
但参数在传入函数体之前需要先初始化.
将ocx导入工程后变为了
DrawKeyPoint(int pointID, short symbol, ref string szName, ref string point, short size, int dwColor)。
结构体怎么的string进行转换?