![]() |
#1 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
LIT conversion (C#) developer
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). ![]() |
![]() |
![]() |
![]() |
#2 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
Shouldn't be too difficult if the original source is available (which I think it is).
But what for ? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
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. |
![]() |
![]() |
![]() |
#5 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
I C. Thanks for the clarification
![]() |
![]() |
![]() |
![]() |
#7 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
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...
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
Well I have never programmed in C#. But I did C++ and usually it was not an issue incorporating C code into C++.
|
![]() |
![]() |
![]() |
#9 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
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. |
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
May I ask you what you are working on? A project involving ConvertLit always sounds intriguing.
|
![]() |
![]() |
![]() |
#11 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
Off course. A reader for the lit format for windows mobile 5. Particularly, the code should be in the .net compact 2 framework and entirely managed code, meaning it ought work wherever mono or microsoft .net is. Possibly that .gnu variant too, whatever it is called though I won't bother with that.
It's just a hobby thing but I made quite some progress. |
![]() |
![]() |
![]() |
#12 |
Jah Blessed
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,295
Karma: 1373
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
|
P/Invoke?
Is it absolutely required to use only managed code? If not, why not compile the original CLit source as a DLL and call its functions using P/Invoke?
|
![]() |
![]() |
![]() |
#13 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
I require it to be completely managed, yes. Besides that, I do not want to use any of the original code. I merely use it as a reference.
|
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Avid reader
![]() ![]() Posts: 262
Karma: 132
Join Date: Mar 2005
Location: The Netherlands
Device: HTC Touch Diamond, iLiad Book Edition
|
To be honest, I have no idea. Right now it is a hobby thing. 'See if I can do it' thing. To be honest, I don't think I would make any sort of commercial thing out of it. If that is your worry.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion from LIT fails | JSWolf | Calibre | 1 | 01-22-2010 12:22 PM |
.lit conversion | bubulac | Calibre | 0 | 01-07-2010 11:33 PM |
lit conversion error | Gfinch | Calibre | 13 | 08-06-2008 03:13 AM |
lit conversion with the Kindle. | keving1701 | Amazon Kindle | 5 | 02-17-2008 06:25 PM |
.lit conversion question | uvholic | Sony Reader | 7 | 02-04-2008 10:26 PM |