Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

using VC++ midl.exe

Posted on 2000-03-09
4
Medium Priority
?
519 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 210 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

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 …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

963 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