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.










share|improve this question






















  • 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















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.










share|improve this question






















  • 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













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo