S
sy0116
Unregistered / Unconfirmed
GUEST, unregistred user!
VC中:<br>PrintMap(int DelphiMAP[][9])<br>{<br> int x = 0,y = 0;<br> for (x = 0 ;x < 9 ;x++)<br> { <br> for (y = 0;y < 9 ;y++)<br> {<br> if (Map[x][y] < 'B')<br> {<br> DelphiMAP[x][y] = '0' + Map[x][y];<br> }<br> else<br> {<br> Map[x][y] = 'X';<br> }<br> }<br> }<br>}<br><br>Delphi中:<br>Type<br> TMap=array [0..8,0..8]of Integer;<br> Map:TMap;<br>procedure PrintMap(DelphiMap:TMap);external 'fordelphi.dll';<br><br>然后这样调用:<br>PrintMap(map);<br>但是报错,请问各位高手要怎样才能正确调用这个DLL的导出函数呢?或者怎样修改VC写的DLL来让Delphi可以调用它呢?