[已解决]使用“规则和应用程序"运行调用C ++ dll的Outlook脚本.快讯 [英] [Solved] Run Outlook script calling C++ dll using Rules & Alerts

查看:57
本文介绍了[已解决]使用“规则和应用程序"运行调用C ++ dll的Outlook脚本.快讯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个在Outlook中运行脚本的规则.
收到有关特定主题的消息时,我要运行任务,然后将包含结果的电子邮件发送给发件人.

当我尝试运行C ++ dll时,显示未找到文件.您知道问题是什么吗?请注意,C:\ Addins也位于该路径中,我已经仔细检查了文件名.

Outlook VBA声明

I created a rule to run a script in outlook.
When a message is received with a certain subject, I want to run a task and then send an email to the sender with the results.

When I try to run the C++ dll, it says file not found. Do you know what the issue is? Note that C:\Addins in also in the path and I''ve double checked the file name.

Outlook VBA declaration

Private Declare Sub Test_Outlook Lib "C:\Addins\Outlook_Automation.dll" ()





Sub Test()
    Call Test_Outlook
End Sub



C ++代码



C++ code

void _stdcall Test_Outlook() {
}



更新:
由OP自己解决.



UPDATE:
Solved by OP himself. Posted as a comment.

推荐答案

回答它以将其从未答复的列表中删除.

正如OP所说:
我发现这是一个项目设置问题.我将代码放在另一个项目中,并且可以正常工作.
Answering it to remove it from unanswered list.

As OP said:
I figured out that it was a project setting issue. I put the code inside another project and it worked.


这篇关于[已解决]使用“规则和应用程序"运行调用C ++ dll的Outlook脚本.快讯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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