运行时错误49,坏DLL调用约定 [英] Runtime Error 49, Bad DLL calling convention

查看:129
本文介绍了运行时错误49,坏DLL调用约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Q值。每当我的加载项被加载(运行时错误49,坏DLL调用约定)

Q. Excel keeps throwing the following error, whenever my addin is loaded (Runtime Error 49, Bad DLL calling convention)

对话框每次都会弹出,没有指示错误在哪里,尽管绝对没有外部DLL参考。

The dialog starts to pop up everytime with no indication of where the error is, despite having absolutely no external DLL references.

OR

Q。

如何修复?

推荐答案

这个错误可能是因为编译器错误而发生的。
最简单的解决方案就是做一个小的代码更改和重新编译。
我通常做的是,

This error is probably occurring because of a compiler-bug. The easiest solution to this, would be to make a small code-change and recompile. What I usually do is,

1 - >添加一个私人枚举类型到顶部加载中的任何模块

1 -> Add a Private Enum type to the top of any module in the addin

Private Enum Something
    member = 1
End Enum

2 - > 编译加载项

2 -> Compile the addin

3 - >重新启动excel

3 -> Restart excel

4 - >删除所做的代码更改。不再需要。

4 -> Remove the code change made. It is no longer necessary.

这篇关于运行时错误49,坏DLL调用约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆