Hi, I'm trying to compile a login function using ADSI, but I keep getting the
following error:

D:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\Iads.h(502) : fatal error C1001: INTERNAL
(compiler file 'msc1.cpp', line 2701)

I am currently using .NET 2003. The offending line of Iads.h is:

typedef class Path Path;

Currently, the only work around we have is to use the Iads.h file from our
install of visual studio 6.0. Can anyone help?

Gary Chang[MSFT]

Hi Jamie,

Based on my understanding, the problem is that you get a C1001 error when
your program includes the header file "Iads.h" from the VC7
(..\Vc7\PlatformSDK\Include\), and the IAds.h from the VC6 would be OK.

Please let me know if I have misunderstood anything.

Before we proceed, I need to repro the error on my side first. I test a
simple console program in VC7, which includes the IAds.h from the
\Vc7\PlatformSDK\Include\ directory, but I could not repro the C1001error.
So in this situation, would you please tell us what's the repro steps to
reproduce this problem or just upload a small self-alone sample
project(zipped) to us, if it is not inconvenient to you? (please remove the
"online" of my email address)

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!

This posting is provided "AS IS" with no warranties, and confers no rights.


Hi Gary, you are correct, IAds.h from vc6 works, yet we encounter the error
using the iads.h from vc7 (PlatformSDK\Include). We should have a sample
project ready for you sometime next week.

Thanks for your help,


Carl Daniel [VC++ MVP]

barchamb said:
I am having this exact same problem. Is there any solution?

Reduce the code that's producing the C1001 error down to the minimum case
(usually it's possible to get it down to 10-20 lines of code, but not

Post that code here, contact Microsoft Product Support, or open a bug report

If you post the code, someone might be able to find a way to re-structure
the code to get around the error.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question