投稿日 | : 2006/02/24(Fri) 18:20 |
投稿者 | : gt |
URL | : |
タイトル | : 構造体配列転送 |
お世話になっています、dtです。
VB上で構造体配列をCのDLLへ転送しようと思っていますが、
やり方がわかりません。
VB側:
Public Type SysData_PolygonDfm
Laye As Integer ' PolygLaye
Bcode As Integer ' PolygBcode
Type As Integer ' PolygType
Name As String ' PolygName
End Type
Public SDPolyDfm() As SysData_PolygonDfm
bytC3 = Use_SetDFM_PolyDLL(PolygonDfmAllID, SDPolyDfm(0))
DLL側:
BYTE _stdcall Use_SetDFM_PolyDLL( int PolygonDfmAllID, SysData_PolygonDfm* SDPolyDfm)
{
for(int j=0; j<PolygonDfmAllID; j++){
int dd=SDPolyDfm[j].Bcode;
}
return (0);
}
コンバイルしてエラーが出ました。
どう対処すればいいでしょうか。
よろしくお願いします.