Click here to Skip to main content
15,122,003 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
VB
Private Declare Sub Test_Outlook Lib "C:\Addins\Outlook_Automation.dll" ()


VB
Sub Test()
    Call Test_Outlook
End Sub


C++ code
MIDL
void _stdcall Test_Outlook() {
}


UPDATE:
Solved by OP himself. Posted as a comment.
Posted
Updated 17-Mar-11 9:24am
v3
Comments
Piccadilly Yum Yum 17-Mar-11 12:00pm
   
i suggest to put your dll in windows/system folder... try.
T2102 17-Mar-11 12:21pm
   
Thanks. That didn't work, but I figured out that it was a project setting issue. I put the code inside another project and it worked.

1 solution

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.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900