Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting the computer's location using the Regional Settings. Pin
Alper Camel18-Dec-06 0:26
Alper Camel18-Dec-06 0:26 
AnswerRe: Getting the computer's location using the Regional Settings. Pin
Nader Elshehabi18-Dec-06 0:27
Nader Elshehabi18-Dec-06 0:27 
QuestionWorking with mp3's --> Crossfading... Pin
Goerlandt17-Dec-06 23:51
Goerlandt17-Dec-06 23:51 
AnswerRe: Working with mp3's --> Crossfading... Pin
Amsville18-Dec-06 0:21
Amsville18-Dec-06 0:21 
GeneralRe: Working with mp3's --> Crossfading... Pin
Goerlandt18-Dec-06 0:36
Goerlandt18-Dec-06 0:36 
Questionvb.net to c# Pin
Nitin198117-Dec-06 23:51
Nitin198117-Dec-06 23:51 
AnswerRe: vb.net to c# Pin
Guffa18-Dec-06 0:04
Guffa18-Dec-06 0:04 
GeneralRe: vb.net to c# Pin
Nitin198118-Dec-06 2:06
Nitin198118-Dec-06 2:06 
Hi Guffa! Thanks for replying. I've already done this. It don't seem to work. This is the code.

void WriteBinary(String FileName, DataSet ds)
{
ds.RemotingFormat = SerializationFormat.Binary;
IFormatter myFormatter = new Formatters.Binary.BinaryFormatter();
Stream myStream = new FileStream(FileName, FileMode.Create);
myFormatter.Serialize(myFormatter, ds);

}

These are the errors

Error 1 The type or namespace name 'Formatters' could not be found (are you missing a using directive or an assembly reference?) d:\Nitin\Serialization1\Serialization1\Serialization1\Form1.cs 58 42 Serialization1


Error 2 The best overloaded method match for 'System.Runtime.Serialization.IFormatter.Serialize(System.IO.Stream, object)' has some invalid arguments d:\Nitin\Serialization1\Serialization1\Serialization1\Form1.cs 60 13 Serialization1


Error 3 Argument '1': cannot convert from 'System.Runtime.Serialization.IFormatter' to 'System.IO.Stream' d:\Nitin\Serialization1\Serialization1\Serialization1\Form1.cs 60 35 Serialization1


Thanks

Don't Quit

AnswerRe: vb.net to c# Pin
Guffa18-Dec-06 3:50
Guffa18-Dec-06 3:50 
GeneralRe: vb.net to c# Pin
Nitin198118-Dec-06 18:30
Nitin198118-Dec-06 18:30 
GeneralRe: vb.net to c# Pin
Guffa19-Dec-06 2:19
Guffa19-Dec-06 2:19 
GeneralRe: vb.net to c# Pin
Nitin198119-Dec-06 20:13
Nitin198119-Dec-06 20:13 
GeneralRe: vb.net to c# Pin
Guffa19-Dec-06 21:05
Guffa19-Dec-06 21:05 
GeneralRe: vb.net to c# Pin
Nitin198120-Dec-06 2:25
Nitin198120-Dec-06 2:25 
AnswerRe: vb.net to c# Pin
Guffa20-Dec-06 4:13
Guffa20-Dec-06 4:13 
GeneralRe: vb.net to c# Pin
Nitin198121-Dec-06 1:42
Nitin198121-Dec-06 1:42 
Questionhow to know the obscuring window Pin
muharrem17-Dec-06 23:13
muharrem17-Dec-06 23:13 
QuestionFileCopy with ftp path Pin
Martin#17-Dec-06 23:09
Martin#17-Dec-06 23:09 
AnswerRe: FileCopy with ftp path Pin
Pete O'Hanlon17-Dec-06 23:36
mvePete O'Hanlon17-Dec-06 23:36 
GeneralRe: FileCopy with ftp path Pin
Martin#17-Dec-06 23:42
Martin#17-Dec-06 23:42 
AnswerRe: FileCopy with ftp path Pin
Shajeel17-Dec-06 23:37
Shajeel17-Dec-06 23:37 
GeneralRe: FileCopy with ftp path Pin
Martin#17-Dec-06 23:43
Martin#17-Dec-06 23:43 
Questionhow to set the value to exception object? Pin
babutkchn17-Dec-06 23:05
babutkchn17-Dec-06 23:05 
AnswerRe: how to set the value to exception object? Pin
Guffa17-Dec-06 23:18
Guffa17-Dec-06 23:18 
GeneralRe: how to set the value to exception object? Pin
babutkchn17-Dec-06 23:35
babutkchn17-Dec-06 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.