error MIDL2025 : syntax error
-
Hi, I am having an issue compiling the ATL/Com dll; I have Three classes and their interfaces in a com dll as: 1- IMailInterface 2- IMyInterface1 3- IMyInterface2 Now,MFC application uses these interfaces. My application will never directly deal with 2nd and 3rd interface. Everything will be done with the help of IMainInterface. I want to add a method to IMainInterace as GetMyInterface1(IMyInterface1** ptr); which will retrun the IMyInterface1 pointer But while comiling getting an error error as: D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18):error MIDL2025 : syntax error : expecting a type specification near "IMyInterface1" D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation Error executing midl.exe. I tried adding header file but it didn’t worked. Thanks.
"A winner is not one who never fails...but the one who never quits"
-
Hi, I am having an issue compiling the ATL/Com dll; I have Three classes and their interfaces in a com dll as: 1- IMailInterface 2- IMyInterface1 3- IMyInterface2 Now,MFC application uses these interfaces. My application will never directly deal with 2nd and 3rd interface. Everything will be done with the help of IMainInterface. I want to add a method to IMainInterace as GetMyInterface1(IMyInterface1** ptr); which will retrun the IMyInterface1 pointer But while comiling getting an error error as: D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18):error MIDL2025 : syntax error : expecting a type specification near "IMyInterface1" D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation Error executing midl.exe. I tried adding header file but it didn’t worked. Thanks.
"A winner is not one who never fails...but the one who never quits"
Ganesh_T wrote:
But while comiling getting an error error as: D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18):error MIDL2025 : syntax error : expecting a type specification near "IMyInterface1" D:\Work_ganesh\MPlusSrvOpticalDevice\Work In Progress\Ganesh\Samples\DemoCOM\DemoCOM.idl(18) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation Error executing midl.exe.
Could you post the actual idl code? That would tell me much more about what went wrong. Nathan