Solved

using VC++ midl.exe

Posted on 2000-03-09
4
503 Views
Last Modified: 2006-11-17
I wrote a Hello.idl and compiled it with idltojava and it worked fine.  When I try to compile Hello.idl with Microsofts Visual C++'s midl.exe it gave me errors.  Why is this so?  I thought i should  be ablt to converted idl files to either java or C++.
0
Comment
Question by:tekel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 2600738
What errors did it give?
0
 

Author Comment

by:tekel
ID: 2600836
// commmand
:\>midl hello.idl

// error
..\hello.idl(2) : error MIDL20797 : no [uuid] specified : [ Interface 'Hello' ]
0
 
LVL 86

Accepted Solution

by:
jkr earned 70 total points
ID: 2600849
What does your .idl file look like? It should be sth. like

[ uuid (53D5C100-25F6-11D1-B64C-000012df6b3e),
  version(1.0),
  pointer_default(unique)
]
interface Hello
{
}
0
 

Author Comment

by:tekel
ID: 2600899
that helped .. why did I need to have those 4 lines above when compiling with midl.exe and not with idltojava?

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question