Solved

using VC++ midl.exe

Posted on 2000-03-09
4
497 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

770 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