Solved

using VC++ midl.exe

Posted on 2000-03-09
4
490 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
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
What errors did it give?
0
 

Author Comment

by:tekel
Comment Utility
// 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
Comment Utility
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
Comment Utility
that helped .. why did I need to have those 4 lines above when compiling with midl.exe and not with idltojava?

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now