当前位置:编程学习 > C#/ASP.NET >>

dllimport 调用delphi编写的dll问题 Not found the kernel or the kernel

调用方式如下:
    [DllImport("F:\\Bin\\debug\\VCode.dll")]
    public static extern int load(int a, int b, string c, string d);
   
    load(0, 0, "122121123", "12343");

但结果提示
Not found the kernel library or the kernel library isinvalid or the kernel library of 
this edition does not support DLL!

网上找了结果,当没解决。
我使用的是windows 2003操作系统,所以怀疑是否是我的操作系统内缺少了什么dll。 --------------------编程问答-------------------- 易语言编写出来的VCode.dll必须有易语言核心支持库(krnln.fne)

下面是比较简单的解决:krnln.fne的存放目录!

一个注册表文件即可!

 Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\FlySky\E\Install]
"Path"="C:\\Program Files\\klib\\"
 
当然,你的krnln.fne文件必须放在这个注册表指定的目录里,否则还是会提示出错!

krnln.fne 文件下载
http://www.wbsz.com/e/public/DownFile?fileid=8418

--------------------编程问答-------------------- 多谢lzsh0622的回复。但是,我使用的并不是 易语言 的东西。
这个只是名字雷同而已。

所以,起不到作用。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,