|
I'm trying to save a file by putting all the file information in a class and serialize it then deserialize that file in another program. When I open the file in the same program that created it it's fine but when I try to open it in the other program with the exact same code it gives me an error because it appears that the serializer includes assembly info and those of course don't match in different programs.
So my question how can I get around this problem or is there anything equivelent to serialization that won't give me these problems?
thanks,
Mike
|
|
|
|
|
The problem is in the second program. Try to deserialize your class in an object variable. if it's working then the problem might be in the way you defined the class structure in the second program. if the solution of the "object variable" didn't work then the problem might be in the code!
wish this help!
|
|
|
|
|
|
Since it sounds like you have control over both applications, the simplest solution would be to just pull that class out into a common library and have both programs reference that shared library. Then the class would be from the same assembly in both applications.
|
|
|
|
|
Hi Guys,
I've got a little mechanism that handles Command Codes and Guard checks, and i'm wondering at the best way to handle the menu / button / toolbar controls that invoke them.
The basic principle is to loop through the menu items and test the Command Code associated with them, enabling / disabling as appropriate.
For MenuItems this is done on Opening, but i'm not sure what to do about UI Components that are always visible, such as buttons and ToolStrips. I don't really want to be turning them on and off from a different part of the application as they should be managing themselves. The only option i can think of is to have a timer that will trigger a loop through of the guard conditions, but that seems a bit clunky.
Any thoughts?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Could you use a delegate for that. Objects could have event handlers for the delegate and event would be raised whenever surrounding conditions change. Then it's up to the object (button, menu item etc) to investigate what it's status should be.
Mika
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I've added a GuardInvalidated event to my class and everything which depends on the guards will need to handle it.
Cheers for the thoughts!
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi,
I am preparing a crystal report which considers two tables from the data base,One of the table contains duplicate values,i want to sum those values and display it in crystal report in a single column.
Now using these column values i calculate the profit or loss in percentage.
I got the profit and loss calculation part but could not get how to sum up similar values in the database.
Weather i should write a query,how can i link this to my crystal report.
Can any one help..pls..
Regards,
Anu
|
|
|
|
|
There are several choices. Some of them:
- you sum the values before you send the data to crystal
- in crystal use formulas to calculate the sums and show the results of the formulas
- place the original rows in detail section and create a group for summed values. If detail rows are not needed, set detailes section to invisible.
Hope this helps.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I have grouped it by name but i am not getting the correct sum of similar row.
Can i use sm formula on these group fields,if yes how can i do it.
|
|
|
|
|
The easiest way is to first use Group Expert to create a grouping section and then use Summaty on that group to add summing field.
You can create a formula also. Simply add a new Formula Field and use Sum-function. After that place the formula on group section.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hello,
I have to use a smoothing algorithm in my COde. I am using Visual C++ .Net 2008 with 3.5 framwork.
I am reading a data through serial port from a target device and this data is store into a XML file. I have to display(plot) this data on the window. For ploting the waveform, i read the data from the XML file, and draw(Plot) the point using "Drawline" function. but the curve generated is not in Smooth shape. It shows some noise(like steps).So in this case I want to use smoothing algorithm but dont know how to use it.So plz can anyone tell me how to use smoothing algorithm? its urgent so plz help me out.
Thanks and Regards,
Abhijit
|
|
|
|
|
Microsoft Sync Framework v1.0 is now RTM and is now available to download[^].
Sync Framework Highlights
- Add sync support to new and existing applications, services, and devices
- Enable collaboration and offline capabilities for any application
- Roam and share information from any data store, over any protocol, and over any network configuration
- Leverage sync capabilities exposed in Microsoft technologies to create sync ecosystems
- Extend the architecture to support custom data types including files
Microsoft Sync Framework is a comprehensive synchronization platform that enables collaboration and offline scenarios for applications, services and devices. Developers can build sync ecosystems that integrate any application, any type of data, using any protocol over any network.
The Microsoft Sync Framework provides a platform for taking web services and databases offline. In addition, it provides optimized P2P sync of any type of file including contacts, music, videos, images and settings. The extensible framework includes built-in support for synchronizing databases, NTFS/FAT file systems, FeedSync compliant feeds (formerly known as Simple Sharing Extensions), devices and web services.
|
|
|
|
|
That's a bit puzzling as i thought it had been RTMed about two months ago. I upgraded to SyncToy 2.0 then and it said it was based on Sync Framework 1.0.
Kevin
|
|
|
|
|
now I still create a syntax editor(just like vb.net) using VB.Net 2005. but its for general programming language. but I have some trouble! , The control work very slowly when colorize more then 30 lines. I use RichTextBox to create this control. Any one can help me?????
|
|
|
|
|
Errrm. You seem to be jumping about a bit here. First it's a web browser, next a syntax editor. These are both fairly ambitious tasks. What, exactly, are you trying to accomplish with these tasks? Are you relatively new to programming and looking for something to teach yourself on? If so, please pick something simpler as you are heading towards trouble.
If you are serious, then you need to be manipulating the raw RTF. One way to do it is to use a separate thread to perform the text manipulation on.
|
|
|
|
|
Thanks for Ure sugestion!, I'll try it!
|
|
|
|
|
Pete O'Hanlon wrote: First it's a web browser, next a syntax editor. These are both fairly ambitious tasks.
Good God, what's next? Some super secure OS?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I want to create a new web browser without using windows component!
any one know how to create the web browser basicly?
and also I wana create a web editor(WSWYG)!
|
|
|
|
|
That's one hell of an ambitious undertaking. Good luck, and we'll see you back here in 3 years when you've finished the basics.
|
|
|
|
|
Pete O'Hanlon wrote: That's one hell of an ambitious undertaking
Yes, it is.
Pete O'Hanlon wrote: we'll see you back here in 3 years when you've finished the basics.
Yes, and whatever "neat" functionality he puts into it, will probably be so last year
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
There's entire teams of people out there who devoted YEARS of their lives comming up with Mozilla and FireFox, and you want to create your own?? Does that fact tell you anything about how long it's going to take a single person to do??
|
|
|
|
|
Dave Kreskowiak wrote: devoted YEARS of their lives comming up with Mozilla and FireFox, and you want to create your own?? Does that fact tell you anything about how long it's going to take a single person to do??
Shhhhhhh. Don't burst his bubble
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Good luck, you're going to need it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
rio_p wrote: I want to create a new web browser without using windows component!
Yeah! And you could call it something like..."Chrome"!
Oh wait...d*mmit!!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|