Link to home
Start Free TrialLog in
Avatar of frize
frizeFlag for Algeria

asked on

convert from C into Pascal ( Delphi )

Hi , can someone convert this project from C to Pascal .

many thanks .
project.zip
Avatar of Geert G
Geert G
Flag of Belgium image

why not explain what you want as project, maybe there is allready a delphi project ?
frize,
THe basic answer is, "Yes, I can; however, no offense intended but this is the sort of thing that I and every Delphi developer that I know usually charge for."
What you are asking is not really a "question" per se but for someone to do work for you and that is what usually involves some sort of contractual relationship and remuneration for efforts expended (in other words, you pay some one for them doing the work ;-).
Avatar of frize

ASKER

Thank you 8080_Diver , i will think about this ( i promise ) .


sir Geert_Gruwez    ( why not explain what you want as project .... ) no i don't think so .

take a look at the Project and you will see .


many thanks
frize,
All this appears to be is a Boyer-Moore search algorithm.  
http://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm
This has been done and done again in many languages including Pascal.
It is far more likely that you will find what you need by searching for it rather than hoping someone here will take the time and effort to do what you ask.
I found a free delphi project that does this here:
http://www.programmersheaven.com/download/4292/download.aspx
I think the VCL string searching routines were optimized to use Boyer-Moore algorithm a while back.
why do you want to delete this question ?
All experts's answer were making me think i will not have a Solution .
You did get a solution, but maybe not the one you liked.
It may require some more fine tuning on your part but that's programming ... and this site !

give a good reason for deletion, otherwise i object to deleting this question
I object to the delete request for the following reasons:
* not enough time has elapsed since the (Friday) posting of the question
* the discussion is active
I've looked at the C code.  

* I'm now sure how the GNU license of the C code might affect any language conversion.

* This C code does a memory scan for the Conflicker worm/virus.

====================
@frize

1. Have you looked at this C-to-Pascal project?
http://c2pas.sourceforge.net/

It should be a good first step.  Since it expects you to have 'good' Delphi knowledge, you should start with this translation result and ask our help to supplement your work.

2. You can use this JEDI project utility to convert the header file (.h)
ftp://ftp.delphi-jedi.org/darth/HeadConv.zip

Nice article:
http://www.drbob42.com/delphi/headconv.htm

3. How about this converter:
http://www.filedudes.com/C_2_Delphi_Converter-download-49816.html

4. How about the converters on this Torry page:
http://www.torry.net/pages.php?id=1518
I believe that there have been sufficient suggestions for resolving this question so that the author should assign points, either individually or on a shared basis.  The discussion has provided answers to the direction to take and, to follow a strict interpretation of the terminology of "answering a question", the original question ("Hi , can someone convert this project from C to Pascal ."), has, indeed, been answered in that, yes, someone can tdo that.
I, too, object to the question being deleted (even though I rather expect that other will get the points ;-).
@8080_Diver

I think it is too early to assign points and close this question.  

Note: frize has about 20% of his questions in deleted status.  I would like to keep this question out of that category.  I would also like to make the closing of this question a resource for future readers and, maybe, the rest of the IT world affected by Conflicker.
Avatar of frize

ASKER

Ok , i'm really sorry , But sometimes One can think he will not get a Solution ( that's human he always wants to get what he 's planned to get ) .

Again sorry .

The problem now is : How could i splite all these points for all of you ( really you all worth them )

any suggestion for that ?.
@frize

As I wrote to 8080, it is a bit early to close this question.  You should first attempt to use some of the conversion/translation utilities and then post comments (prefereably with converted code snippets) for any problems you might have with the Delphi code or some C++ code that did not convert.  

Please be patient and stick with this question.  We are here to help you, but you will need to do some of the leg work.
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of frize

ASKER

Ok , aikimark ( many thanks for advice ) .

I will do some C-to-Delphi conversion  and put them here .

I think this Question will concern every one as we're leading With Conficker .

So we will help each other .

again many thankd for all of you  .

Yours frize .
Avatar of frize

ASKER

I think i will increase Points not For the Sake of getting a Solution but because we are leading with Conficker , So help each other .

what do you think EXPERTS .
leading with Conficker ...
you mean suffering from the Conficker virus ?
Avatar of frize

ASKER

yes , i mean suffering from the Conficker virus
Avatar of frize

ASKER

sorry i wrote leading ....  but i meant dealing ....
Avatar of frize

ASKER

many thanks
@frize

Thanks for the points.  Did your Delphi code catch some conficker-infected systems?