Click here to Skip to main content
16,018,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bucket Head Pin
Sean Winstead24-Feb-03 18:54
Sean Winstead24-Feb-03 18:54 
GeneralRe: Bucket Head Pin
eggie524-Feb-03 19:00
eggie524-Feb-03 19:00 
GeneralRe: Bucket Head Pin
Brian Olej28-Feb-03 7:11
Brian Olej28-Feb-03 7:11 
Generali have some problem with StartCap and EndCap Pin
chiou24-Feb-03 16:27
chiou24-Feb-03 16:27 
QuestionConverting a string to an int? Pin
monrobot1324-Feb-03 7:43
monrobot1324-Feb-03 7:43 
AnswerRe: Converting a string to an int? Pin
Chad Young24-Feb-03 7:47
Chad Young24-Feb-03 7:47 
AnswerRe: Converting a string to an int? Pin
leppie24-Feb-03 9:54
leppie24-Feb-03 9:54 
GeneralSerialization Question Pin
Marcus Spitzmiller24-Feb-03 7:38
Marcus Spitzmiller24-Feb-03 7:38 
Here's the deal - I have two programs. One is a utility program used to create objects and serialize them to disk. The second program is the real application which, in time, will be able to deserialize these objects and use them.

When I serialize and deserialize within the utility program, I have no problems. However, when I try to deserialize within the main program, I get an error that looks like:

"Type is not resolved for member MyNameSpace.MyClass, MyNameSpace."

I was getting a different error earlier, but I was able to make it further by setting the assembly names to be the same in each program. Is that necesarry and the correct thing to do?

Storing code, roughly:
<br />
Stream myStream = File.OpenWrite(m_sFileName);<br />
if (myStream != null)<br />
{<br />
  BinaryFormatter formatter = new BinaryFormatter();<br />
  formatter.Serialize(myStream, m_object);<br />
}<br />


Loading code for both programs, roughly:
<br />
if (myStream != null)<br />
{<br />
  BinaryFormatter formatter = new BinaryFormatter();<br />
  m_object = (MyObject)formatter.Deserialize(myStream);<br />
  myStream.Close();<br />
}<br />


Any help is appreciated!




Marcus Spitzmiller

"Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer
GeneralRe: Serialization Question Pin
Davide Icardi24-Feb-03 7:47
Davide Icardi24-Feb-03 7:47 
GeneralRe: Serialization Question Pin
Marcus Spitzmiller24-Feb-03 11:52
Marcus Spitzmiller24-Feb-03 11:52 
GeneralRe: Serialization Question Pin
Marcus Spitzmiller25-Feb-03 14:34
Marcus Spitzmiller25-Feb-03 14:34 
QuestionIssue an HLT instruction from C# ? Pin
Andrew McCarter24-Feb-03 5:20
Andrew McCarter24-Feb-03 5:20 
GeneralHelp needed!! Capturing key in for loops. Pin
Karman24-Feb-03 5:11
Karman24-Feb-03 5:11 
GeneralRe: Help needed!! Capturing key in for loops. Pin
Paul Riley24-Feb-03 5:20
Paul Riley24-Feb-03 5:20 
QuestionCast to a type obtained with GetType??? Pin
Don Miguel24-Feb-03 4:36
Don Miguel24-Feb-03 4:36 
AnswerRe: Cast to a type obtained with GetType??? Pin
leppie24-Feb-03 5:58
leppie24-Feb-03 5:58 
GeneralRe: Cast to a type obtained with GetType??? Pin
Don Miguel24-Feb-03 6:03
Don Miguel24-Feb-03 6:03 
GeneralRe: Cast to a type obtained with GetType??? Pin
leppie24-Feb-03 6:27
leppie24-Feb-03 6:27 
GeneralRe: Cast to a type obtained with GetType??? Pin
Don Miguel24-Feb-03 6:44
Don Miguel24-Feb-03 6:44 
GeneralRe: Cast to a type obtained with GetType??? Pin
leppie24-Feb-03 6:49
leppie24-Feb-03 6:49 
GeneralProperty Browser: How to add more than one Property Tab Pin
Umair Ahmad24-Feb-03 3:20
Umair Ahmad24-Feb-03 3:20 
QuestionHow to use IHtmlPainter,IElementBehavior with C# Pin
gxuqin24-Feb-03 2:19
gxuqin24-Feb-03 2:19 
GeneralCommand in VS.NET Addin problem Pin
mfa24-Feb-03 1:03
mfa24-Feb-03 1:03 
Questionhow to move the shape from one position to another. Pin
chiou23-Feb-03 22:50
chiou23-Feb-03 22:50 
AnswerRe: how to move the shape from one position to another. Pin
Furty23-Feb-03 23:47
Furty23-Feb-03 23:47 

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.