Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. error MIDL2025 : syntax error

error MIDL2025 : syntax error

Scheduled Pinned Locked Moved ATL / WTL / STL
helpc++com
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ganesh_T
    wrote on last edited by
    #1

    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"

    N 1 Reply Last reply
    0
    • G Ganesh_T

      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"

      N Offline
      N Offline
      Nathan Holt at EMOM
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups