Mobileread
LIT conversion (C#) developer
#1  Jaapjan 08-30-2005, 08:15 AM
Is there anyone out there who ever tried to port the CLit code to c# instead?

Just trying to meet up or talk a bit with other such developers who tried or thought about it (with reasonable expectations of having succes).

Reply 

#2  dpierron 08-30-2005, 08:37 AM
Shouldn't be too difficult if the original source is available (which I think it is).
But what for ?
Reply 

#3  Jaapjan 08-30-2005, 09:38 AM
I see you haven't actually looked into it yet (at all?)

It would be fairly complex in fact. It is not a simple format.
Reply 

#4  doctorow 08-30-2005, 09:58 AM
Jaapjan, what's complex about it? The sources can be easily compiled with Microsoft Visual C and any other GNU C compiler. Shouldn't it be straightforward to transform C code into C# ?
Reply 

#5  Jaapjan 08-30-2005, 10:21 AM
The trouble is that the code is not object oriented, scattered about through many files and using a great deal of macro's.

Accurately deducing what a the more complex parts do precisely is ... not easy.
Reply 

#6  doctorow 08-30-2005, 10:22 AM
I C. Thanks for the clarification
Reply 

#7  Jaapjan 08-30-2005, 10:23 AM
It's not a problem to explain. Feel free to verify my statements. I love to hear you find it very easy, because I could ask all the tough questions to you then...
Reply 

#8  doctorow 08-30-2005, 10:24 AM
Well I have never programmed in C#. But I did C++ and usually it was not an issue incorporating C code into C++.
Reply 

#9  Jaapjan 08-30-2005, 10:32 AM
Yes, C and C++ aren't very different and you can intermingle said variants of the C language without any sort of worry. This is not the case with C# though, which is entirely object oriented.

In fact, c# doesn't even have support for pointers, nor macro's. It's not as much a thing of porting but of rewriting based on the original C code.
Reply 

#10  doctorow 08-30-2005, 11:53 AM
May I ask you what you are working on? A project involving ConvertLit always sounds intriguing.
Reply 

  Next »  Last »  (1/4)
Today's Posts | Search this Thread | Login | Register