question

amos-4878 avatar image
0 Votes"
amos-4878 asked RLWA32-6355 commented

AllocConsole() fails on Office365

I have an XLL that calls AllocConsole() which creates a console within Excel applications. It works on a machine with Excel 2016 installed but fails on a machine with Office 365. The value from GetLastError() was 87. I tried running the command within VBA and I see the same behaviour.

Is there something introduced in Office 365 that killed the console? Or is this an administrative setting introduced in Office 365?

c++
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Also on the machine with Office 365, it used to run Excel 2016 and the xll/console was working.

0 Votes 0 ·

Error 87 mean that you are using invalid parameter . I don't have office 365 but you can check it by function signature also make sure that you are using corresponding library (kernel etc).

Thanks

0 Votes 0 ·

The modern Office applications does not seem to represent classical desktop applications, where AllocConsole is available. Maybe there is an alternative. Why do you need this function?


0 Votes 0 ·

We use it to print out debug statements from my XLL when calling our user defined functions in excel.

0 Votes 0 ·
Show more comments

1 Answer

SimpleSamples avatar image
0 Votes"
SimpleSamples answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.