MIDL: different generations in different directories

MIDL: different generations in different directories

Post by Gerry Jacob » Fri, 14 Jan 2000 04:00:00



Hi there,

I noticed something strange in the generation of the stubs.
When I put the IDL and the ACF files in a subdirectory, MIDL generates
the stubs differently than when I put them in the same directory of the
sources.
For example:
  1) IDL and ACF are located in C:\Project\RPC.
     When I run "midl c:\project\RPC\file.acf" from the C:\PROJECT
     directory, I don't see the declarartion of a handle_t variable in
     my client stub code.
  2) IDL and ACF are located in C:\Project
     When I run "midl c:\project\RPC\file.acf" from the C:\PROJECT
     directory, I see the declarartion of the handle_t variable in my
     client stub code (just below the GUID comment)

Is this a bug or have I forgotten a parameter? The only extra parameter
I use is the out parameter. I don't use other parameters.
It seems that the stub code is correctly generated when I run the midl
command in the same directory where the ACF and IDL files are located.
The MIDL compiler has version 5.01.0164 and is part of MS VC++60.

Gerry

Sent via Deja.com http://www.deja.com/
Before you buy.