Hi Aleks ,
Good day! Welcome to Q&A forum.
I understand you're working on creating an excel.idl file with oleview.exe so you can access enabled Excel objects. However, single is considered an invalid data type within the MIDL language, and this is what forces the compiler to stop its process. I've run a test to recreate a similar error scenario and edited this .IDL file by replacing all instances of "single with "float". Please give this change a try and see how it works for you:
- Open a text/code editor you're familiar with (like Notepad, Notepad++, Visual Studio Code, etc.).
- Open the EXCEL.IDL file: Go to File > Open > EXCEL.IDL (this is the file generated by oleview.exe when viewing EXCEL.EXE).
- Find all instances of the word single and replace them with float: Use the Find and Replace feature (single => float).
- Save the file.
- Re-run the midl.exe command to compile.
If you've already applied this change but are still encountering issues or if a different error has come up, would you be able to provide a screenshot of the error message you're currently seeing? I'll do my best to assist you as quickly as possible
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.