|
Hello,
I have a strange problem in dotnet framework 2.0. When I want to serialize a class which has a member property from type DateTime then I get a NullReferenceException. The DateTime object has an valid value...
<br />
SoapFormatter serializer;<br />
<br />
serializer.Serialize(ms, logMessage);
What I have to do, so that I can serialize an DateTime object with the SoapFormatter?
Best regards
Hansjörg
|
|
|
|
|
Hi,
Does anybody know a good reference documentation/tutorial/code where we can learn how to manipulate excel sheets using C#/VB.Net? Like filling cells with values, cut, copy paste rows/columns, formatting cells, adding charts to the excel sheet, etc.
Thanks
Anil
|
|
|
|
|
|
|
|
Thanks man! it was helpful.
|
|
|
|
|
in what way should i write new file in .wav format to be played as a .wav music.currently data hiding is success but the file is not playing.
|
|
|
|
|
What have you done, and what do you hope to do ? Where is the data coming from that you hope will play as a wav ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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'm hiding a text file in wav file.problem in saving the file after hiding the text.sound is not playing
|
|
|
|
|
nikhilvrm wrote: i'm hiding a text file in wav file
You'll have to be more descriptive than that. How, exactly, are you hiding the text file. I mean, are you just writing out a text file but putting a wav file extension on it. I'd hope you were being more sophisticated than that. Are you ensuring the WAV header isn't being corrupted by your hiding process? Are you hiding the data in a way that is still compliant with the codec in which the audio information is encoded?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
OK - so you want to hide a text file, so the wav still plays ? Sounds like your core approach is broken and you need to better understand the wav file format, to learn how to hide data in there non destructively.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 checked the header of newly created file.it is same as the original wave file.i'm writing the new file in bytes.its playing but no clarity in sound
|
|
|
|
|
Well, what did you expect, when you changed the sound file to have some text shoved in there ? I'd expect changing a wav to be much harder than hiding text in an image.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
|
Hey guys,
I need to add about 7000-14000 items to a listview.
But listing all the items is far too slow.
Do you have any idea how to make it faster?
thank you very much!
I use the following method:
private void trvLeft_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
{
DataRow[] rows = new DataRow [PnlSelect.pMCPTVARIABLEDESC .Rows.Count ];
System.Windows .Forms .ListView .ListViewItemCollection itlist= new System.Windows .Forms .ListView .ListViewItemCollection(lsvLeft);
try
{
lsvLeft.BeginUpdate ();
Cursor.Current =System.Windows .Forms .Cursors .WaitCursor;
//Clear old content:
lsvLeft.Clear ();//lsvLeft is my ListView
pTrvLeftTag=(TrvLeftTag)e.Node.Tag ;
rows=PnlSelect.pMCPTVARIABLEDESC .Select ("VARGROUPID='"+pTrvLeftTag.vargroup +"' AND CONNECTIONID='"+pTrvLeftTag.connection +"'");
foreach(DataRow row in rows)
{
itlist.Add(row["VARIABLENAME"].ToString ());
}
//add images
foreach( ListViewItem it in lsvLeft.Items )
{
it.ImageIndex =6;
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message );
}
finally
{
lsvLeft.EndUpdate ();
Cursor.Current =System.Windows .Forms .Cursors .Default;
}
}
|
|
|
|
|
Leia2011 wrote: I need to add about 7000-14000 items to a listview.
Well, that's not really a sensible UI. You probably need to show a filtered view. How is someone going to navigate these 10000 odd items ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
7000-14000 items?? Why on earth would anyone want to go through that many items? I think you have a bit of a design flaw in your UI.
|
|
|
|
|
hi,
It is important to show all those items, it should not be a design flaw.
My Listview should contain all variables of a industrial plant.
the user should select about 10 variables from that listview and these 10 variables will be shown in an configurable protocol afterwards.
I reading my data out of an SQL-table which is filled by the Siemens visualization software WinCC.
The problem is that there are so many variables.
I have decided to use a listbox now. I doesn't look as good as a listview and has not that much option, but those 100000 items are there in a minute...
i do not have other ideas...
kind regards
|
|
|
|
|
Leia2011 wrote: it should not be a design flaw.
Actually, it IS a desgin flaw, on your part. Noone is going to go through a list of 14,000 items to pick 10 of them.
Redesgin you interface so the items are seperated into logical groups so the user can narrow down the list to just the items in a particular group.
If you put 14,000 items into a list view and expect someone to look through them all, I guarantee you the users will hunt you down and shove the installation CD where the sun don't shine.
|
|
|
|
|
.AddRange() ?
But, yeah, that's a lot of stuff. Some sort of filter would be good.
|
|
|
|
|
Hi,
I will not discuss if it is reasonable to display that much lines - you say you need it's ok for me.
I bump in a similar problem , I needed to add lines (trace lines) on a screen as fast as possible.
I made several experiment : listBox , listView, richTextBox , (even webBrowser ...)
It turns out that richTextbox was the fastest , and that the speed to add new line was constant , whatever was the numer of lines already added.
Of course in this case you shouldn't add lines one by ones , but all in one call.
Just set the rtb not to be editable.
Even handle the line selection by yourself.
And you will get a super fast , super basic ListBox
Hope it helps
|
|
|
|
|
Hi girm,
thanks for your answer,
yes, sometimes it is necessary to add as many lines as mentioned.
I think Listbox ist the best option to use in this case.
my code snippet:
this.ListBox1.DisplayMember ="column";
this.ListBox1.DataSource =dt;//dt: DataTable
regards
Leia2011
|
|
|
|
|
Hello
I want to use some VC++ classes in C#... is it possible ???
If it is possible, then how ???
Thanks
Devesh Mishra
|
|
|
|
|
If you rewrite them as C++/CLI classes, it is. Otherwise, you have to convert to C#, or put them in a dll and you can then use methods in the dll, but not classes as such, via p/invoke.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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
Try the following link on how to marshal c++ class
We have a similar concept that works at production environment
http://www.codeproject.com/csharp/marshalCPPclass.asp
|
|
|
|