1

I want to compile an IDL file and when I compile the idl there is error that say "syntax error : expecting a type specification near "exception" " I read these links:1,2 and 3 but they didn't help me my OS is windows 10 and my framework is MSVS2008 I tried my code in MSVS2006 and worked there if the problem is from my MIDL compiler how exactly I should fix it? which version of SDK should I install? I try some of them but didn't work.also I import "oaidl.idl" and "ocidl.idl" but didn't work.here is a part of my code:

//import "oaidl.idl";
//import "ocidl.idl";
module Quoter
{
  exception Invalid_Stock_Symbol {};

  interface Stock;

  interface Stock_Factory
  {

    Stock get_stock (in string stock_symbol)
      raises (Invalid_Stock_Symbol);
  };

  interface Stock
  {


    readonly attribute string symbol;

    readonly attribute string full_name;

    double price ();


  };
};
Community
  • 1
  • 1
afs_mp
  • 77
  • 1
  • 9

1 Answers1

1

This is legal CORBA IDL but this has to be compiled using a CORBA IDL compiler like from TAOX11, sounds that you are compiling it using MIDL which is not a CORBA IDL compiler. For TAO the IDL compiler is called tao_idl, maybe our free CORBA Programmers Guide will help.

Johnny Willemsen
  • 2,942
  • 1
  • 14
  • 16
  • In [this link](http://www.theaceorb.com/11a/releasenotes/bldgapps.html#68376) there a tutorial for compiling ACE/TAO with visual studio 2006 and like that I want to compile it in MSVS2008 – afs_mp Feb 04 '17 at 10:02
  • It seems that you are well experienced in ACE/TAO.Is it possible I have your Email for asking a few question about this subject.I really need help and I will be very grateful if you help me.@johnny – afs_mp Feb 04 '17 at 13:05
  • Check the ACE/TAO mailing lists as alternative support optio , direct support is only possible through the company I work for, see www.remedy.nl – Johnny Willemsen Feb 04 '17 at 17:15