Line Number and Absolute Path in a generated IDL

  • Thread starter Thread starter Kevin Liu
  • Start date Start date
K

Kevin Liu

Attribute Programming generates IDL file automatically.

The IDL looks like

import "C:\Program Files\Microsoft Visual Studio
..NET\Vc7\PlatformSDK\include\prsht.idl";
import "C:\Program Files\Microsoft Visual Studio
..NET\Vc7\PlatformSDK\include\mshtml.idl";
import "c:\program files\microsoft visual studio
..net\vc7\platformsdk\include\dimm.idl";
import "C:\Program Files\Microsoft Visual Studio
..NET\Vc7\PlatformSDK\include\mshtmhst.idl";
import "c:\program files\microsoft visual studio
..net\vc7\platformsdk\include\docobj.idl";
import "C:\Program Files\Microsoft Visual Studio
..NET\Vc7\PlatformSDK\include\exdisp.idl";
import "C:\Program Files\Microsoft Visual Studio
..NET\Vc7\PlatformSDK\include\objsafe.idl";

[
object,
uuid(D9F5BF5F-55D8-4843-B06D-43788AAFED80),
dual,
helpstring("IATL72class Interface"),
pointer_default(unique)
]
#line 17 "e:\\test\\atl72\\atl72class.h"
interface IATL72class : IDispatch {
#line 19 "e:\\test\\atl72\\atl72class.h"
[id(1),helpstring("method getTest")] HRESULT getTest();
};

How can I remove line number and the absolute path of import library
when the IDL is generated.
 
Hello Kevin,

It's by design that the compiler add the #line directives to the .IDL file
and, based on my resesarch, I did not find an option to disable it.

In the meantime, the #line directives are present to enable better
diagnostic messages. Please refer to the following MSDN documentation:

The #line Directive
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html
/_predir_the_.23.line_directive.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
Back
Top