473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to add struct comments?

I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #1
3 1658
Do you get comments displayed for any classes or methods in that particular
assembly?

You need to make sure you have the XML file bearing the same name as the
assembly in order for the comments to appears.

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:

/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
public struct Server
{
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Tracker=@"someserver\CORE_SQL_TEST_1";
/// <summary>
/// someserver\CORE_SQL_TEST_1
/// </summary>
public static string Project=@"someserver\CORE_SQL_TEST_1";
}

None of the above will appear as it does for classes and methods. Is
this a limitation on structs?

Thanks,
Brett

Dec 9 '05 #2
There isn't an XML file there. I just comments on another class and
see they don't come through in projects that are referencing that
class. It also doesn't have an XML file.

I've added the XML file to all of my projects and rebuit each.
However, I still don't see the comments coming through. I think the
problem is more the project not refreshing its DLL references. For one
particular project, it does have the latest version of a DLL, yet the
comments are coming through. Any suggestions?

Thanks,
Brett

Dec 9 '05 #3
Seems I had to delete both my bin and obj folders before the update
came through. That's the only way I see changes in the DLLs.

Dec 10 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jimjim | last post by:
Hello, Any help will be much appreciatted. My problem is as follows: I declare as global variables: typedef struct _Node{ ..; ..;}Node; Node *Graph; in a function called initiallise(), I...
12
by: Dennis Schulz | last post by:
hi alle, ich bin blutiger C Anfänger und hier ist mein Versuch ein Strukt in eine Datei zu schreiben, bzw anzuhängen. Leider wird die datei zwar angelegt aber nichts reingeschrieben. Besonders...
15
by: dutchgoldtony | last post by:
Hi all, I was just wondering if this is possible. I'm trying to implement a viterbi decoder in C and am creating an array of nodes (the struct), and an array of pointers to nodes (the member...
10
by: emma middlebrook | last post by:
Hi I discovered that if you declare a structure (and not 'new()' it) you can then separately initialize its members and the compiler counts those separate statements as a full initialization....
20
by: ma0001yu | last post by:
Hi, all. I feel confuse about below struct definition: typedef struct TAG { comments.... }; What my confusion is: is typedef extra??why we not just use
5
by: Bill Pursell | last post by:
Suppose I have a structure with many members, and I pass a pointer to that structure to a function. I'd like the prototype of the function to specify that it will only be changing certain members...
28
by: Bill | last post by:
Hello All, I am trying to pass a struct to a function. How would that best be accomplished? Thanks, Bill
12
by: Milux | last post by:
Hi All, This question has to do with interface design. Suppose I have an translation tool. It can translates structs from type "general" to other types and then does some processing. Example:...
10
by: Raman | last post by:
Hi All, Is it valid: struct test{ }; I mean, Can we have a struct containing no members? Is this a an
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.