Click here to Skip to main content
15,893,814 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which button was pressed... Pin
Heath Stewart11-Aug-03 2:48
protectorHeath Stewart11-Aug-03 2:48 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 10:31
eggie511-Aug-03 10:31 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:01
Csharp™11-Aug-03 0:01 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:57
Csharp™11-Aug-03 0:57 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 10:31
eggie511-Aug-03 10:31 
Generalreading serialized java Hashtable Pin
misterbear10-Aug-03 21:07
misterbear10-Aug-03 21:07 
GeneralRe: reading serialized java Hashtable Pin
Frank Olorin Rizzi11-Aug-03 1:42
Frank Olorin Rizzi11-Aug-03 1:42 
GeneralRe: reading serialized java Hashtable Pin
Heath Stewart11-Aug-03 2:34
protectorHeath Stewart11-Aug-03 2:34 
Keep in mind that the objects in the hashtable were also serialized. For the most part, if you were to use simply objects in a Java hashtable and save that to a file (I'm thinking just a simple test class with String members), you could also reverse engineer it. That wouldn't be so hard using your favorite hex editor. Depending on the complexity of the objects within it, though, that's another story.

If nothing else and worse comes to worse, you could always use the JNI concepts I cover in my article, Embedding .NET Controls in Java. The content of the article doesn't apply so much as the concept does - using JNI to bridge the gab between .NET and Java. A JNI Win32 DLL (not a managed assembly - Java won't know how to load it) to use Java calls to deserialize a hashtable and pass the members to .NET, or could even use late binding and the unmanaged CLR methods to get your .NET assembly to serialize the hashtable. Basically, this idea would be a one-time conversion utility (I recommend not overriding the old file though, or you should at least back it up).

Obviously, deserializing the hashtable would be preferred (and most likely not hard to do), but the latter idea could be handy in a worse-case scenario.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: reading serialized java Hashtable Pin
misterbear11-Aug-03 4:22
misterbear11-Aug-03 4:22 
GeneralGetting all of the items in a list box.. Pin
eggie510-Aug-03 18:29
eggie510-Aug-03 18:29 
GeneralRe: Getting all of the items in a list box.. Pin
Meysam Mahfouzi10-Aug-03 21:12
Meysam Mahfouzi10-Aug-03 21:12 
GeneralRe: Getting all of the items in a list box.. Pin
eggie511-Aug-03 0:21
eggie511-Aug-03 0:21 
GeneralDynamic TextBoxes Pin
deanoA10-Aug-03 16:27
deanoA10-Aug-03 16:27 
GeneralRe: Dynamic TextBoxes Pin
Nick Seng10-Aug-03 17:42
Nick Seng10-Aug-03 17:42 
QuestionCan I make this? Pin
deanoA10-Aug-03 16:02
deanoA10-Aug-03 16:02 
AnswerRe: Can I make this? Pin
Nish Nishant10-Aug-03 16:13
sitebuilderNish Nishant10-Aug-03 16:13 
GeneralRe: Can I make this? Pin
deanoA10-Aug-03 16:25
deanoA10-Aug-03 16:25 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 17:50
sitebuilderNish Nishant10-Aug-03 17:50 
GeneralRe: Can I make this? Pin
Anonymous10-Aug-03 17:58
Anonymous10-Aug-03 17:58 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 18:04
sitebuilderNish Nishant10-Aug-03 18:04 
GeneralRe: Can I make this? Pin
Kannan Kalyanaraman10-Aug-03 19:01
Kannan Kalyanaraman10-Aug-03 19:01 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 23:11
sitebuilderNish Nishant10-Aug-03 23:11 
GeneralRe: Can I make this? Pin
Kannan Kalyanaraman10-Aug-03 23:52
Kannan Kalyanaraman10-Aug-03 23:52 
GeneralMemory Issue Pin
tkemory10-Aug-03 1:58
tkemory10-Aug-03 1:58 
GeneralRe: Memory Issue Pin
tkemory10-Aug-03 2:00
tkemory10-Aug-03 2:00 

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.