 |
|
 |
I tried to insert the current code into the specified sample macro but I got the following error:
"Line 3 expected end of statement: Dim Header, prms As String". . Also I don't understand why you don't use .DSM file instead of overwriting the SAMPLE Macro.
Michael
MikeTheProgrammer
|
|
|
|
 |
|
|
 |
|
 |
I love that feature, about the only thing I miss when I go back to doing C++ code in VC6.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
 |
|
 |
>> Something VB.NET doesn't support.
Just no, o.k. nothing build-in. I´ve seen someting for vb.net on http://vbxmldoc.tor-erik.net/
But i havent used it cause i only do it in c#.
Daniel
# THIS CODE AND INFORMATION ARE PROVIDED
# "AS IS" WITHOUT WARRANTY OF ANY
# KIND, EITHER EXPRESSED OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO THE
# IMPLIED WARRANTIES OF MERCHANTABILITY
# AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
 |
|
 |
Have you tried " ''' " above a method in VB.NET?
-= HaDeS5k =-
Christopher
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I agree with others that the article needs some improvement. However, I will offer constructive criticism.
I think an example of the input and output would help to avoid abrupt conclusions about the worth of this article. I have not tried the macro yet (I'm at work) but I looked at the code, it generates C++ comments using a VB macro.
VB is not my native language but the output is something like this (based on the code void Foo(int bar)):
I suggest moving this article to “Macros and Add-ins.” Also, a more descriptive title would help others to locate it better (e.g. “Generate a Function Comment Header from the Function Definition”).
|
|
|
|
 |
|
 |
I'm sorry guys.
Perhaps the article should be rephrased better.
Yet, I believe that it can help any VC++ developer (VC++ NET environment) in a way that she never needs to add any comments to the function.
To make things clear, Henry did right by using this sample, so please have a look what he got.
Based on the C++ function he wrote which is
void Foo(int bar)
He has now, this comments above his function header:
// ********************************************************************
// Function name : Foo
// Description :
// Return type : void
// Argument : bar
//
// Date : 1:10PM 12/13/2002
// Author : henry
// ********************************************************************
Isn't it great?
oferudi
|
|
|
|
 |
|
 |
First, let me say that (after the rewrite), you did a good job for an article, and I (having myself not posted any article yet) appreciate your support of this site.
But:
oferudi wrote:
Isn't it great?
Well, it might be help if you are obliged (e.g. by company policy) to document every function that way.
But it will not help in writing a description that is not in the header, nor does it add meaningful descriptions to the parameter. (How could it? No one would have expected this.)
But this is the hard part with documenting: Getting the meaning of your code transported, the reasons for your algorithm choice, the limitations the algorithm has and the constraints on the parameter values.
So, I think that this macro will have a bad effect on the documenting style of many user (a least on me it would have): With running the macro one thinks: "Well, now I have made a documentation for it, so this one is finished."
But it is not! The real job has just started.
--
"My opinions may have changed, but not the fact that I am right."
Found in the sig of Herbert Kaminski
|
|
|
|
 |
|
 |
But to add a comment in VB, don't you just type ' ?
<SARCASM>
BTW your article rocks my world
and is far too advanced for this site!
</SARCASM>
|
|
|
|
 |
|
 |
Yes. In fact, it's so advanced, it should really go here[^]
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
 |
|
 |
Hi,
can you do it please, because it's not very good to read. And include a sample of what your function does.
Ciao Matthias
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Uwe Keim wrote:
Would you trust in someone telling you something about "code usability" who even cannt format his own article?
LOL
|
|
|
|
 |