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

luocolor1 2009-10-05 10:16:57
调用方式如下:
[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。
...全文
150 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
luocolor1 2009-10-06
  • 打赏
  • 举报
回复
多谢lzsh0622的回复。但是,我使用的并不是 易语言 的东西。
这个只是名字雷同而已。

所以,起不到作用。
lzsh0622 2009-10-05
  • 打赏
  • 举报
回复
易语言编写出来的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

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧