|
Visio Professional does add a toolbar to VS.NET for reverse engineering your projects as well, yes.
For a better documentation generator, see NDoc[^] - a free documentation generator that produces many different output formats similar to the MSDN Library / .NET Framework SDK documentation, and is used by many large companies.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I just tried the "Build Comment Web Pages", and it doesn't seem to include that stuff. You can definitely use NDoc to do this, though. It'll generate MSDN-style documentation (or you can pick another style), and you can browse the generated help file in the way you need.
Regards,
Jeff Varszegi
EEEP!
|
|
|
|
|
Oops - we posted this at the same time!
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Yep. I was pretty amazed not to find the feature built in, but then I thought I'd try to make things as easy on him as possible. I think it's a good idea for everybody to learn how to use NDoc, I guess.
I wonder why the structure and formatting of the "comment web pages" is so bad. If you were developing that feature, wouldn't you have made them look just like the MSDN documentation? It would've made projects like NDoc unnecessary for most people. Or is there some way to provide your own custom documentation formatter plugin in VS .NET?
Regards,
Jeff Varszegi
EEEP!
|
|
|
|
|
Thank you guys, that helps a lot
Adi
|
|
|
|
|
Hi Adi,
The best tool which is used is Reflector.Net [1]. It solves most of the functionality which vs.net object browser does not.
[1] http://www.aisto.com/roeder/dotnet/
|
|
|
|
|
Hi!
How can one convert a byte array to a string when the encoding method of the byte array is unknown?
Background: I am trying to download files from the web (like this) and get a byte array as result. Now I want to get this somehow into a string object.
Any way to do this?
Thanks in advance and best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Something like this:
byte[] outData =blah blah;
StringBuilder s = new StringBuilder();
for(int i=0 ; i<outData.Length;i++)
{
s.Append(outData[i]);
}
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
I haven't tried this yet, but are you sure that this will support UTF-8 encoding for example? You explicitely add each byte as character to the string (Append function), wouldn't this destroy the UTF-8 encoding (treating a two-byte-or-more encoded character as several different ones)?
Thanks for your reply,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Use System.Text.Encoding.UTF8.GetString(byte []).
You can use other encodings, too, see the System.Text.Encoding class help for this.
Due to technical difficulties my previous signature, "I see dumb people" will be off until further notice. Too many people were thinking I was talking about them...
|
|
|
|
|
To get the content encoding from the response from the server, you can use the HttpWebResponse.ContentEncoding parameter. You can then conditionally use the appropriate Encoding class that Daniel mentioned to get the string from the byte[] array.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Ahh, now that's a solution Thanks Heath!
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Dominik Reichl wrote:
Any way to do this?
Just anothing way:
string str = "Hello";
byte[] buffer = System.Text.ASCIIEncoding.GetBytes(str);
- Nick Parker My Blog | My Articles
|
|
|
|
|
Does anyone know of a simple example of securing a webservice client and server. I need to pass a username and password from the winform client to the web service, but I don't want them sent in plain text xml.
Thanks
|
|
|
|
|
Search for SoapHeader and Cryptography[^] to see how encrypt/decrypt datas and passing them to web service.
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
Or even easier, just setup an SSL certificate on your web server and communicate with your web service via the SSL port (default is 443). This encrypts everything for you.
Instead of the SOAP headers (which doesn't encrypt anything), see the System.Security.Cryptography.Xml namespace in the .NET Framework SDK. I also cover the signing portion of this (to see an example of that part of it, which is similar to what you need to do for encrypting the SOAP message) in my article, Using XML Digital Signatures for Application Licensing[^]. The WS-Security specs (of which WS-Signatures and WS-Encryption is part) are also an industry standard.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks. Is WS-Security a standard yet?
|
|
|
|
|
Hi All,
let me first say how impressed i am with the resources avaliable on this website, its been making life easier with all the help on the tutorials avaliable. Good Job!
Ok well my question Im quite new to C# i come from a VB background (so bare with me)
Right I have created my own custom contol, a button, and a pannel, the pannel allows stongly typed collections in this case is the button im basically at the stage where i can go into the properties of my pannel and start adding my buttons (via the collections properties), add the buttons, but it does not store the information all it does is generate the following code:
this.pannelbutton1 = new InfoData.Components.Pannel.pannelbutton();
I know i have missed something off put i dont know, if anyone has any good examples or point me in the right direction that will great help.
-
David
It something takes long to do its worth doing.
|
|
|
|
|
Try using the DesignerSerializationVisibilityAttribute on the property set to DesignerSerializationVisibility.Content . See the aforementioned attribute documentation in the .NET Framework SDK for more information. You may also have to implement a CodeDomSerializer , which you can find more information and an example in the .NET Framework SDK documentation[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi
Well I really need a dummy's manual about ComboBoxColumn in a Datagrid, I try to do it, but still doesn't work, I made this:
1 - I added a ComboBoxColum class from MSDN.
2 - I added a TableStyle to my datagrid, this datagrid's datasource is a dataview. The MappingName is empty??
3 - I made a instance of the ComboBoxColum class, and I added it to the TableStyle.
4 - I binded the ComboBoxColum to a table.
In theory is all, or no?? And what it doesn't work???
Thanks
----
hxxbin
|
|
|
|
|
Refer to following article....it might help
http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp
Thanks
Ruchi
|
|
|
|
|
|
Yeah, I try this too, but I look my problem is with the MappingName, into my TableStyle I can't choose anything, and if type something the datagrid isn't works, like I know the MappingName is the table to used (a DataMember), but I'm working with a DataView, so don't use DataMember, and I can't use a Mapping Name
I must try to develop the datagrid form again from zero or what??
----
hxxbin
|
|
|
|
|
try
tableStyle.MappingName = dataView.Table.TableName;
|
|
|
|
|
I got it, I made the datagrid works with a DataTable
Now I will try with the DataView
Thanks, I'll try your comment.
----
hxxbin
|
|
|
|