Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Outlook
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++ code
void _stdcall Test_Outlook() {
}
 
UPDATE:
Solved by OP himself. Posted as a comment.
Posted 17-Mar-11 6:41am
T21024.3K
Edited 17-Mar-11 9:24am
v3
Comments
Piccadilly Yum Yum at 17-Mar-11 12:00pm
   
i suggest to put your dll in windows/system folder... try.
T2102 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.150302.1 | Last Updated 17 Mar 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100