|
Maybe he wants to create *an* assembly, maybe
|
|
|
|
|
I guess that's possible. I mean, it's hard to tell, isn't it ?
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 )
|
|
|
|
|
I used Array.Sort to sort my string array.For example
string[] ss=new string[]{
AA,aA,aa,Aa,BB,Ba
}
Array.Sort(ss);
Now the result of ss is
AA
Aa
BB
Ba
aA
aa
but i need it sort likes dictionary.
aa
aA
Aa
AA
Ba
BB
How can i do this ?
thank=)
|
|
|
|
|
Basically .NET tries to follow the sorting rules of the current culture, so the first thing to do is to make sure the sorting is done wit hthe correct cultures.
If you are still not happy with the way it is done, you can provide your own comparison rules to the sorting methods.
|
|
|
|
|
The default sorting is based on the ascii values where you are getting 'BB
' entry before 'aA'.
In your case you will have to write your own way of sorting the array.
|
|
|
|
|
Hi -
Dots (....) are coming in place of spaces in my C# Express editor. The code is looking like this.
using.System;
using.System.Text;
namespace.Exilant.Exility.HtmlGenerator
{
....internal.class.ListPanel.:.DisplayPanel
....{
........private.static.readonly.string[].FIELD_NAMES =
How do I get rid of this?
|
|
|
|
|
see menu Edit/Advanced/View White Space
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello,
I want to send log-data to a client over TCP/IP and UDP. As data format I think the best way is to use XML. Now I search a possibilty to make a well formed Xml file from the data. I have found some solutions with External entities. But here I have the problem that I have an live stream and I don't want to make allways a new file of the stream.
What is the best solution to do this?
It would be great If in the future I have the possibilty to open the log-server with an internet explorer...may be someone can give me some hints...
Best regards
Hansjörg
|
|
|
|
|
Wrap the input XML with a 'psuedo' root element, and use XML deserialization. I have done this quite successfully a few years back implementing a Jabber client on .NET.
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
How I can provide a pseudo root element?
|
|
|
|
|
imagine a situation while person A running the application if person B update the database how person A get to know about the updated inlformation with out refreshing the db connection.
|
|
|
|
|
There's really no easy way to do this. This is known as Stale Data. At some point, a connection to the database is going to exist to get this data out.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
One solution is to have person B post on a forum that the value is updated so person A knows to refresh the data. Unfortunately he post it with a meaningless subject, so no one reads it.
|
|
|
|
|
try to use sensible subjects for yours posts
In VS2005 you can write C# code in your stored procs. This could be used to broad cast a change, if you had to do it.
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 )
|
|
|
|
|
could you plz point out the stored proc.. because i want to do this with out worring how difficult it is..
|
|
|
|
|
prasadbuddhika wrote: because i want to do this with out worring how difficult it is..
|
|
|
|
|
I've never used .NET code in a proc, because I've never needed to. Either way, if you want to always write stuff without 'worrying about how difficult it is', it seems you've chosen the wrong profession.
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 )
|
|
|
|
|
prasadbuddhika wrote: could you plz point out the stored proc.. because i want to do this with out worring how difficult it is..
What? Notifications (of whatever description) are a complex area that requires a fairly high level of knowledge. This would indicate that you need to have a deep understanding of what you are trying to do and how the solution works before you even attempt it. You cannot approach this with anything other than respect for the difficulty.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i want to show a pop up msg through my application when the application detect that the database has got updated relevent to the a particular client .how can i perform this task?
|
|
|
|
|
What king of message or popup?
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
something like a form which pop up from the notification area
|
|
|
|
|
You need to take a look at something like SQL Notification Services/SQLDependency. This is a very complex topic so it's beyond the scope of a forum answer to detail how this works.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This is way more complex to do than for example writing a subject on a forum post. As you clearly do not have the faintest idea about how to write such a subject line, I recommend you simply give up learning to program for now.
Once you have mastered writign a subject, feel free to start posting again.
|
|
|
|
|
Hello,
I have a treeview control in one form, and another empty form with a panel on it. On the first form with the treeview, I can select multiple nodes. But now I want to drag'ndrop the selected nodes.
I use this:
// FIRST FORM WITH TREEVIEW
<br />
void boom_MouseMove(object sender, MouseEventArgs e)<br />
{<br />
if (e.Button != MouseButtons.Left) return;<br />
<br />
foreach (TreeNode n in boom.SelectedNodes)<br />
{<br />
boom.DoDragDrop(n, DragDropEffects.Move);<br />
}<br />
}<br />
So the selected Items are made dragdrop. But now I want to display the text (or something related to the node) on the second form. But when I do that, only the first node is dropped, not the rest?
// SECOND FORM
<br />
void Template_DragDrop(object sender, DragEventArgs e)<br />
{<br />
if (!e.Data.GetDataPresent(typeof(TreeNode))) return; <br />
TreeNode node = (TreeNode)e.Data.GetData(typeof(TreeNode));<br />
MessageBox.Show(node.Text);<br />
}<br />
How can I show the multiple nodes?
Thank you at advance
|
|
|
|
|
Someone knows an answer?
Thank you
|
|
|
|