Strange compile error

  • Thread starter Thread starter TonyJ
  • Start date Start date
T

TonyJ

Hello!

I have downloaded a project from the site "The code project" but I get the
following 3 compile error.

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(548): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.nLength'

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(550): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.lpSecurityDescriptor'

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(551): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.bInheritHandle'

Here is the code where the error appears.
#region Comments
/// <summary>
/// Security Attributes structure.
/// </summary>
#endregion
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
{
public int nLength; // this and the next two is
it a complaint about
public IntPtr lpSecurityDescriptor;
public bool bInheritHandle;
}

How you any idea how I get rid of these compile errors?

//Tony
 
Hi,

TonyJ said:
How you any idea how I get rid of these compile errors?

It happens when you want to generate a XML file for your code, I don't quite
remember how to get rid of it. I DO KNOW for sure if you google the error
message "Missing XML comment for publicly visible type or member" you will
get a solution (it was what I did)
 
Hello!

I have downloaded a project from the site "The code project" but I get the
following 3 compile error.

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(548): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.nLength'

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(550): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.lpSecurityDescriptor'

C:\tony\IPC\AppModule.NamedPipes\NamedPipeNative.cs(551): Missing XML
comment for publicly visible type or member
'AppModule.NamedPipes.SECURITY_ATTRIBUTES.bInheritHandle'

Here is the code where the error appears.
#region Comments
/// <summary>
/// Security Attributes structure.
/// </summary>
#endregion
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
{
public int nLength;
public IntPtr lpSecurityDescriptor;
public bool bInheritHandle;

}

How you any idea how I get rid of these compile errors?

//Tony

/// <summary>
/// Security Attributes structure.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
{
/// <summary></summary>
public int nLength;
/// <summary></summary>
public IntPtr lpSecurityDescriptor;
/// <summary></summary>
public bool bInheritHandle;
}

....and technically they're compiler _warnings_. You should still get
working code out of the compiler, even if it gives you these warnings.
 

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

Back
Top