如题:
解决方案 »
- GDI+用TGPBitmap.Create(300,300,PixelFormat1bppIndexed)创建单色位图
- word加水印的宏代码转换成Delphi代码
- *******请问如何判断字符串的有效性***********
- 打印票据时如何使用canvas输出一个图片!急!急!
- 做过"通过COM组件访问服务器"的大哥大姐进来一下吧
- websnap的问题?
- 日期型数据怎么样用ADOQUERY添加到数据库中
- 动态创建按钮
- help workshop 帮助文档快速制作索引的问题
- 在decision query1中为何不能用substr(rq,1,6)或substring(rq from 1 for
- 为什么我的可执行程序fc.exe放到其他机器上不能运行阿,数据库是oracle817,用的是ADO连接,大家有没有碰到这种情况阿??
- 两个应用程序间传递数据
{声明一个句柄}
handle1: Thandle;
{声明一个将要使用的函数,调用参数及返回值要正确说明}
myAdd:function(a1: Integer; a2: Integer): Integer;stdcall;begin
{装入链接库}
handle1:=loadlibrary('{要调用的函数所在的动态链接库}');
{判断是否装入成功}
if handle1<HINSTANCE_ERROR then
begin
Application.MessageBox('装入动态链接库失败','错误');
end
else
begin
Application.MessageBox('装入动态链接库成功','信息');
{取入口}
@myAdd :=GetProcAddress(handle1,'myAdd');
if not (@myAdd=nil) then
{ok,你可以调用它了……}
begin
Application.MessageBox('取入口地址成功','信息');
{……调用……}
end
else
Application.MessageBox('取入口地址失败','错误');
{不用了,记得释放}
freelibrary(handle1); end;
end;
var
{声明一个句柄}
handle1: Thandle;
{声明一个将要使用的函数,调用参数及返回值要正确说明}
myAdd:function(a1: Integer; a2: Integer): Integer;stdcall;begin
{装入链接库}
handle1:=loadlibrary('{要调用的函数所在的动态链接库}');
{判断是否装入成功}
if handle1<HINSTANCE_ERROR then
begin
Application.MessageBox('装入动态链接库失败','错误');
end
else
begin
Application.MessageBox('装入动态链接库成功','信息');
{取入口}
@myAdd :=GetProcAddress(handle1,'{此处是要取入口地址的函数名}');
if not (@myAdd=nil) then
{ok,你可以调用它了……}
begin
Application.MessageBox('取入口地址成功','信息');
{……调用……}
end
else
Application.MessageBox('取入口地址失败','错误');
{不用了,记得释放}
freelibrary(handle1); end;
end;