473,320 Members | 2,117 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,320 software developers and data experts.

ComClass Public Function Comments

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
5 1363
>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
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
"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
"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
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Banaticus Bart | last post by:
I wrote an abstract base class from which I've derived a few other classes. I'd like to create a base class array where each element is an instance of a derived object. I can create a base class...
10
by: Zap | last post by:
Widespread opinion is that public data members are evil, because if you have to change the way the data is stored in your class you have to break the code accessing it, etc. After reading this...
3
by: DaveLessnau | last post by:
In a book on Data Structures that I'm reading, the authors are describing various linked lists and trees. In these, they start with some form of node class. What's driving me crazy is that they...
20
by: Lars Eighner | last post by:
I believe it was here that I recently saw a discussion that pointed out that the language in the public identifier of a DTD referes to the language in which the DTD is written and has no bearing...
8
by: WindAndWaves | last post by:
Hi everyone Why do you use the word public in a function, when the function is fully accessible without the word public in front of it. I read the help, but did not really get it. Cheers ...
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
6
by: Alvin Bruney [MVP] | last post by:
Before I go shooting my mouth I'd like to find out why a new language like C# does not have the ComClass attribute that is available in Visual Basic. For context, the absence of the ComClass...
1
by: Martin Arvidsson | last post by:
Hi! I have done a couple of ComClasses in vb, and from now on i want to code ComClasses in C# is there an equilent of this in c#? If not how to proceed to get the same functionallity to be able...
3
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I have one question base on a choice of having a public interfcace access compare to public class member. IN other word let say that I have a public interface named ImyInterface with...
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...
1
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.