News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to build IDL files

Started by xzminx, September 30, 2011, 02:53:24 PM

Previous topic - Next topic

xzminx

Hi guys, I need help building .idl file.

It is supposed to create .h and .cpp files but I'm having problems figuring this out in C::B.

Any help is appreciated.

PS: I found only 1 topic mentioning IDL files and the user there (so it seems) did manage to build those files so it can be done.

MortenMacFly

Quote from: xzminx on September 30, 2011, 02:53:24 PM
It is supposed to create .h and .cpp files but I'm having problems figuring this out in C::B.
As C::B is an IDE driving object compilers and has nothing to do with "IDL files" you are actually in the wrong forum.

However, I can tell from experience that you'll need an IDL compiler (which has nothing to do with an object compiler btw.) which will generate the interface for you. MSVC ships with one which might work. I am not aware of any MinGW/GCC based IDL compiler.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

xzminx

Yes, indeed it is so. I only thought it was supported (shipped with) C::B, just not supported by default.
I'm now downloading MS idl compiler and see it from there. Thanks for your help.

reckless

QuoteI am not aware of any MinGW/GCC based IDL compiler

Widl part of the wine project but also ported to win by the reactos team.
You can also get it from mingw64 trunk. Its syntax is loosely based on the microsoft midl compiler so not to hard to start with if you are used to that.