can't find "unknown.idl" 
Author Message
 can't find "unknown.idl"

I try to manually create a IDL file, and add it to the project, like below:

[object, uuid(12345678-a612-1234-1234-123112343123)]
interface sayhello :IUnknown{
 import "unknown.idl";
 HRESULT SayHello(void);

Quote:
}

However, upon compiling, I got this error:

midl : command line error MIDL1001 : cannot open input file unknown.idl

how can i do then?



Mon, 04 Oct 2004 02:45:03 GMT  
 can't find "unknown.idl"
The file you need is unknwn.idl (note omitted 'o'). Typically, you use

import "oaidl.idl";
import "ocidl.idl";

at the top of your IDL outside the library block, and

 importlib("stdole32.tlb");
 importlib("stdole2.tlb");

at the top of your library block. This brings in all the standard OLE
interfaces.
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
> I try to manually create a IDL file, and add it to the project, like
below:

> [object, uuid(12345678-a612-1234-1234-123112343123)]
> interface sayhello :IUnknown{
>  import "unknown.idl";
>  HRESULT SayHello(void);
> }

> However, upon compiling, I got this error:

> midl : command line error MIDL1001 : cannot open input file
unknown.idl

> how can i do then?



Mon, 04 Oct 2004 02:50:57 GMT  
 can't find "unknown.idl"
First off, why on earth do you import an IDL file in the middle of
an interface definition?

As for the mising IDL, it has never existed in the first place. Are
you by chance looking for unknwn.idl?

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

Quote:

> I try to manually create a IDL file, and add it to the project, like below:

> [object, uuid(12345678-a612-1234-1234-123112343123)]
> interface sayhello :IUnknown{
>  import "unknown.idl";
>  HRESULT SayHello(void);
> }

> However, upon compiling, I got this error:

> midl : command line error MIDL1001 : cannot open input file unknown.idl

> how can i do then?



Mon, 04 Oct 2004 02:53:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. IDL question - import "msxml2.idl";

2. Help with compiling a "canned" program

3. Displaying binary data as ascii "1"'s and "0"'s

4. Displaying binary data as ascii "1"'s and "0"'s

5. '.', '::", "->"

6. Debugger can't "Find Source"

7. can't find "regsvr32.exe"

8. Where to get "xmldom.idl" included in "MsXml.idl"???

9. RPC "Unknown protocol" error

10. "unknown size" error

11. WinSock function "connect" returns unknown error

12. Unknown Error "Application timed out"???

 

 
Powered by phpBB® Forum Software