[Warning] Project1.dpr(25): Symbol 'INDEX' is specific to a platform 仅仅是一个警告,不是编译真的出错了... 不碍事的... 我很多组件都是这样的
是吗?谢谢了,不过我还有个问题。就是我要在d6里建一个引用程序,我不知道 放在那里! unit scnimport; interface function setdisplaymode(pwidth,pheight:integer):longint; function getscreenwidth():longint; function getscreenheight():longint; implementation function setdisplaymode(pwidth,pheight:integer):longint; external 'setscn' index 1; function getscreenwidth():longint;external 'setscn' index 2; function getscreenheight():longint;external 'setscn' index 3; end. 谢谢了
我的mail是:[email protected]
在DELPHI 的 IDE中, 按如下顺序:
File->New->(New Item)DLL->OK
就建好了一个 DLL 工程.然后把你的程序覆盖掉所有DELPHI自己创建的内容!再点菜单的Project-> Compiter 或 Ctrl-F9
仅仅是一个警告,不是编译真的出错了...
不碍事的...
我很多组件都是这样的
放在那里!
unit scnimport;
interface
function setdisplaymode(pwidth,pheight:integer):longint;
function getscreenwidth():longint;
function getscreenheight():longint;
implementation
function setdisplaymode(pwidth,pheight:integer):longint;
external 'setscn' index 1;
function getscreenwidth():longint;external 'setscn' index 2;
function getscreenheight():longint;external 'setscn' index 3;
end.
谢谢了
我还‘要应增加函数外部引用单元,写出dll中函数的索引值‘
问题再最上面!