Re: Generate C++ code from existing IDL [message #54418 is a reply to message #54410] |
Mon, 11 June 2007 04:54  |
James Kuyper
Messages: 425 Registered: March 2000
|
Senior Member |
|
|
vedran.bra...@gmx.net wrote:
> Hi,
>
> I was given an IDL file and was asked to implement it.
>
> How can I create a Project with VS2005, load the IDL somehow and let
> VS2005 generate the classes with empty methods.
>
> After that I just have to implement each method.
>
> That should actually be possible, because all the information about
> the classes already exists in the IDL-file, right?
It might in principle be correct, but in practice the many fundamental
differences between IDL and C++ make any kind of automatic conversion
between them very difficult. I won't say it's impossible - I've seen
people accomplish many things that I would have thought were
impossibly difficult. But I'll be very surprised if anyone has
automated this process. To do this conversion, you need someone who is
an expert in both IDL and C++, and that person is going to have to
design the C++ program from the ground up, using the design of the IDL
as a guideline.
|
|
|