Solved

using VC++ midl.exe

Posted on 2000-03-09
4
505 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

710 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