注:以下程序在delphi7+oracle9i中测试通过
【程序编程相关:Create a menu item i】 【推荐阅读:Create a simple Delp】1.首先用delphi编制一个dll程序,当然用vb,vc其它语言也可以, 【扩展信息:Shutdown reboot logo】 本人最近常用delphi,所以以下dll采用delphi程序编制: //////////////////////////////////////////project1.dpr 工程文件 library project1; uses sysutils, classes, unit1 in unit1.pas; {$r *.res} exports dlltest; begin end. ///////////////////////////////////////////unit1.pas 接口函数实现文件 unit unit1; interface function dlltest(a,b:double): double; cdecl; //接口函数 implementation function dlltest(a,b:double): double; cdecl; //接口函数 begin result:=a*b; end; end. 2.将编译生成的project1.dll 拷贝至$oracle_home/bin路径下,本人$oracle_home=c:\oracle\ora92 所以将project1.dll拷贝至c:\oracle\ora92\bin\路径. ... 下一页