|
I'm trying to compile test code with VS 2005 so that it generates xml documentation, however, only part of the tags are being generated. Why?
Math.cs:
// Math.csnamespace Wrox.ProCSharp.Basics{////// Wrox.ProCSharp.Basics.Math class./// Provides a method to add two integers.///public class Math{////// The Add method allows us to add two integers//////<returns>Result of the addition (int)///<param name="”x”" />First number to add///<param name="”y”" />Second number to addpublic int Add(int x, int y){return x + y;}}}
Command prompt:
C:\temp>csc /t:library /doc:Math.xml Math.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
C:\temp>dir
Math.xml
- <doc>
- <assembly>
<name>Math
<members>
Also, IE prompts me that it has blocked ActiveX controls when it loads this file. Why?
Jon
|
|
|
|
|
Please modify your post and check that "Ignore HTML tags in this message"
jon_80 wrote:
Also, IE prompts me that it has blocked ActiveX controls when it loads this file. Why?
I believe it enables the thingy that allows you to expand/collapse xml nodes when viewed in IE.
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Use the "Ignore HTML" option when you are posting markup code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
the structured comments that optionally get collected into an XML documentation file
need some special keywords, such as summary, returns, remarks.
Furthermore at least one of the Visual Studio versions has a bug, resulting in the
omission of all comments on properties.
|
|
|
|
|
|
Hi.
I saved a wav file in a resource file in VS in binary.
Now how can I play it with media player object (ax)?
media player only give url to play.
Best wishes
|
|
|
|
|
I don't think you can, without making a local copy.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi.
When adding eventhandlers to events, what's the difference between:
foo.SomeEvent += Bar.OnSomeEvent;
...and...
foo.SomeEvent += new EventHandler ( Bar.OnSomeEvent );
?
Thanks.
|
|
|
|
|
In the first case the compiler type checks that Bar.OnSomeEvent has the same delegate type as SomeEvent and inserts the Delegate.Combine call with the inferred delegate type.
In the second, you're doing part of the compilers work yourself by explicitly telling it the delegate type.
The msil code for both will be identical.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
OK, thanks. So why are most of the samples I see written the second way? The first way is leaner. Is this some sort of leftover from older coding practices or something? Maybe .NET 1.x?
Thanks again.
Mike
|
|
|
|
|
It's a left over from 1.0 or 1.1, can't remember when they changed it.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
It is only C# 2.0 (hence .NET versions >= 2.0) that support the shorthand notation.
|
|
|
|
|
How do applications get permission to create keys hkey_classes_root?
Using Registry.ClassesRoot.CreateSubKey(...) I am able to add registry keys, however I wasn't able to until I messed around with the permissions in the registry. But I've installed other applications from the very same account before without changing permissions and those applications were able to add their owns keys to classes_root.
So the question is how do they do that? What code do I need to add to be able to let my program write to classes_root without the user who installs the program having full access?
|
|
|
|
|
I am strugling with creating an Options Window (like how you go to Tools > Options and a window pops up with options in it).
Does any one know of a way to create this type of windows? Any Ideas, link to an article / white paper etc will be highly appreciated.
Thanks.
|
|
|
|
|
Just create a new form with the options, and from your main form button/menu item click/whatever, call it up. Nothing much really to it.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
The window's not hard, you do that like any other window. What you need to decide is what all you will show, how you will store choices, and how the rest of you app reads and responds to those choices. I assume that's what you're talking about.
I don't know of an article specificly dealing with that, though many may have something like that built into articles about other topics.
Personally, I'd use XML serialization: decide what options to offer, build an XML structure to house them, make your options form address those options, read your config, and write to it. Then I'd probably have the host form show it as a dialog [optwin.ShowDialog() ], and make it expose your XML serializable config object as a property so that the host can get the options directly from the options form. And make your host form look for the config on load to initially respond to saved options. But there are a number of things to consider and work out with this. Clear as mud?
|
|
|
|
|
The window's not hard, you do that like any other window. What you need to decide is what
all you will show, how you will store choices, and how the rest of you app reads and responds to
those choices. I assume that's what you're talking about. Yes I am.
Clear as mud? pretty much!!
I have the settings for my applications stored in the MyApp.settings file. Would that be a bad idea?
Also, when the settings are changed i.e. user has changed some stuff in the options window, the parent form doesn't autmatically apply the changes. For it to apply changes does it have to be "refreshed" or "reloaded"?
|
|
|
|
|
There's nothing wrong with using app.settings.
For the app to take advantage of setting changes, you can have the host form get the settings from the options form before it is disposed, or read them from your app.settings file after the options form is closed.
private void ChangeSettings() {
MyOptionsForm mof = new MyOptionsForm();
if (mof.ShowDialog() == DialogResult.OK) {
}
}
That help?
|
|
|
|
|
I Need to books and resources about how search engines Work and also resources about text recognition , speech recognition and artificial Intelligent if it possible
Thanks
Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
And I need another 20k per year. At least you have Google to help you out.
|
|
|
|
|
BoneSoft wrote: And I need another 20k per year.
Is that all?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
It'd keep me happy for a while.
|
|
|
|
|
BoneSoft wrote: It'd keep me happy for a while.
Same here.
BoneSoft wrote: Try code model generation tools at BoneSoft.com
I will go and take a look
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Lemme know what you think. Basically an entity code generator that builds from sample XML, XSD, my little language, or database.
|
|
|
|
|
Dont worry, you will make 20k before he has read half of what Google will throw at him...
|
|
|
|