By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

ComClass Public Function Comments

P: n/a
Lou
How do I add comments to my public functions so the show up in the object
browser?

Something like in the Object viewer:
Function IsMissing(ArgName) As Boolean
Member of VBA.Information
Returns True if an optional argument has not been passed (- How Do I
add these comments)
-Lou
Oct 3 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
>How do I add comments to my public functions so the show up in the object
>browser?
If you mean the helpstring stored in the exported type library for a
COM object, you apply the System.ComponentModel.DescriptionAttribute.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 3 '07 #2

P: n/a
Lou
How?
Is there a menu item like in VB6 to add these?

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
How do I add comments to my public functions so the show up in the object
browser?

If you mean the helpstring stored in the exported type library for a
COM object, you apply the System.ComponentModel.DescriptionAttribute.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Oct 3 '07 #3

P: n/a
"Lou" <lo********@comcast.netwrote in message
news:Oe**************@TK2MSFTNGP02.phx.gbl...
How?
Is there a menu item like in VB6 to add these?

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>How do I add comments to my public functions so the show up in the
object
browser?

If you mean the helpstring stored in the exported type library for a
COM object, you apply the System.ComponentModel.DescriptionAttribute.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
In a line immediately above the function type three single quotes. The
environment then puts a series of place holders in place and you simply add
your own comments. These comments will now appear in intellisense etc.
Oct 3 '07 #4

P: n/a
"Lou" <lo********@comcast.netschrieb:
Is there a menu item like in VB6 to add these?
In addition to the other reply: No, there is no special UI for this purpose
included in VS.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Oct 3 '07 #5

P: n/a
>AFAIK, the System.ComponentModel.DescriptionAttribute value is used only
in Properties window to describe properties of your control or
component. Again, you can add it automatically with VSdocman.
It's also used for type library help strings when you expose an
assembly as a COM server, which is what I thought we were taling about
(since the OP mentioned ComClass in the subject).
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 4 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.