c++ application using automation via #import directive no longer compiles with new version of Outlook
up vote
0
down vote
favorite
I have a compilation issue that just recently arose on a machine with a more recent version of Outlook installed. Specifically, Outlook version is 1808 (build 10730.20102), I'm able to build with no issue on a machine with version 1803 (build 9126.2295).
These are the compile errors on the outlook v1808 machine:
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C2146: syntax error : missing ';' before identifier 'GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : warning C4183: 'GetPickerDialog': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C2146: syntax error : missing ';' before identifier 'CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : warning C4183: 'CreateContactCard': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2497: 'PickerDialogPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2143: syntax error : missing ';' before 'Outlook::_NameSpace::CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2497: 'ContactCardPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
This is the source code (it's from code project: https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook)
I've tried "excluding" the offending items to no avail.
Anybody have any ideas? Thanks.
c++ outlook automation
add a comment |
up vote
0
down vote
favorite
I have a compilation issue that just recently arose on a machine with a more recent version of Outlook installed. Specifically, Outlook version is 1808 (build 10730.20102), I'm able to build with no issue on a machine with version 1803 (build 9126.2295).
These are the compile errors on the outlook v1808 machine:
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C2146: syntax error : missing ';' before identifier 'GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : warning C4183: 'GetPickerDialog': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C2146: syntax error : missing ';' before identifier 'CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : warning C4183: 'CreateContactCard': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2497: 'PickerDialogPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2143: syntax error : missing ';' before 'Outlook::_NameSpace::CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2497: 'ContactCardPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
This is the source code (it's from code project: https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook)
I've tried "excluding" the offending items to no avail.
Anybody have any ideas? Thanks.
c++ outlook automation
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
1
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a compilation issue that just recently arose on a machine with a more recent version of Outlook installed. Specifically, Outlook version is 1808 (build 10730.20102), I'm able to build with no issue on a machine with version 1803 (build 9126.2295).
These are the compile errors on the outlook v1808 machine:
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C2146: syntax error : missing ';' before identifier 'GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : warning C4183: 'GetPickerDialog': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C2146: syntax error : missing ';' before identifier 'CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : warning C4183: 'CreateContactCard': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2497: 'PickerDialogPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2143: syntax error : missing ';' before 'Outlook::_NameSpace::CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2497: 'ContactCardPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
This is the source code (it's from code project: https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook)
I've tried "excluding" the offending items to no avail.
Anybody have any ideas? Thanks.
c++ outlook automation
I have a compilation issue that just recently arose on a machine with a more recent version of Outlook installed. Specifically, Outlook version is 1808 (build 10730.20102), I'm able to build with no issue on a machine with version 1803 (build 9126.2295).
These are the compile errors on the outlook v1808 machine:
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6759) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C2146: syntax error : missing ';' before identifier 'GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(6844) : warning C4183: 'GetPickerDialog': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C2146: syntax error : missing ';' before identifier 'CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(7068) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(7069) : warning C4183: 'CreateContactCard': missing return type; assumed to be a member function returning 'int'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetPickerDialog'
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28085) : error C2497: 'PickerDialogPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28085) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2143: syntax error : missing ';' before 'Outlook::_NameSpace::CreateContactCard'
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:win32contactsdebugmsoutl.tlh(28132) : error C2497: 'ContactCardPtr' : 'implementation_key' can only be applied to function declarations
1>d:win32contactsdebugmsoutl.tlh(28132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
This is the source code (it's from code project: https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook)
I've tried "excluding" the offending items to no avail.
Anybody have any ideas? Thanks.
c++ outlook automation
c++ outlook automation
asked Nov 22 at 15:45
Jana Andropov
346
346
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
1
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39
add a comment |
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
1
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
1
1
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53434390%2fc-application-using-automation-via-import-directive-no-longer-compiles-with-n%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you look at the tlh file to see what is missing?
– Dmitry Streblechenko
Nov 22 at 18:32
Yes. I compared them. In the v1808 msoutl.tlh file, this class struct __declspec(uuid("00063033-0000-0000-c000-000000000046")) _AppointmentItem : IDispatch has some new methods, but there's no differences between the 2 files on the lines specified for the compile errors.
– Jana Andropov
Nov 22 at 18:51
1
Seems that the (not posted) directives of importing mso.dll and msoutl.olb somehow mismatch. Either the paths are wrong or the renames/excludes.
– Öö Tiib
Nov 23 at 8:12
That was it. There were multiple instances of mso.dll on the machine in question, and the "wrong" one was being imported.
– Jana Andropov
Nov 26 at 19:39