Cobol to Delphi [closed] - delphi

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
everybody!
I need to develop an application, in Delphi, to show some data from a COBOL file.
Example: A software made at Cobol has a file of customers with some attributes (ID, NAME AND PHONE). I need to show this data file in a DBGrid of my Delphi program. Is it possible? If yes, how can i do my Delphi program comunicate with COBOL file?
Thanks!

Typically data written by COBOL programs is done from a "struct" defined in a COBOL "copy book".
You need to get your hands on the copybook; it defines the content and the layout of the data. That data will be written in an encoding specific to the machine on which the COBOL program ran; it may be a mainframe, so string data may be EBCDIC (not ASCII), and there may be other differences.
You'll have to learn enough about COBOL, copybooks, data encoding, and bit patterns to do this. Welcome to computing.
With an understanding of the data layout and encoding, you can write a Delphi program to read the binary data and interpret it properly.

Related

How to decompile ex4 file to mq4 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 17 days ago.
Improve this question
How can someone decompile ex4 file to mq4 file. I want to view the source code. Or rather how can you change the name of a expert adviso
Now that ex4 are compiled programs and not byte code, it is much more difficult to decompile.
Of course, the main purpose of delivering an EX4 file and not the source is the source is closed and the developer doesn't want to disclose it. EX4 to MQ4 converters are used to circumvent this "protection".
To gain access to the source code of EX4 file, you should first contact its developer. Most EAs for MetaTrader are distributed without source code.
Decompilation of EX4 file to get the source code for educational purposes is possible in principle. However, this is a very time consuming process.
Also, according to MetaTrader developers, this is not legal in most countries.
There are plenty of decompilers out there that can produce some source code that might run using MT4. One of them is IDA Pro another NSA Ghidra, you just need to make sense in cryptography and binary decompilation. Another option is to look for more complex decompilers that decompile some code on processor level. You are going to get some binary code that is almost impossible to read for humans or decrypt using any online decryption tool. You should be resilient and have a compiled ex4 containing all the functions of MQL4. After matching the binaries you might be able to reconstruct the source code into semi-readable MQL4 code. You should note that after decompilation you will get an obfuscated code, which means that even after decompiling you can't get into changing things inside of the EA, Indicator or Script of some kind. This means that after decompilation you should also deobfuscate the code to understand all underlying algorithms inside of it.

Convert shp file or geojson to isobus iso-xml ISO 11783-10 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
has anyone had any experience with ISOBUS Iso-XML (ISO 11783-10)?
I would like to convert some geojson and/or shapefiles (.shp) to this format but am having trouble finding any information.
The specification of ISO 11783-10 is not free. You can buy the specification (google for "ISO 11783-10"), the documentation is high quality and affordable (I'm not affiliated in any way). The bought documents are distributed with some "license" and will be marked with your name, so buyers will be reluctant to share them. There are many concepts involved and details are cryptic, therefore you really need the specification to work with this format.
If you write source code encoding/decoding this format, it will depend on the specification. Distributing your source code + documentation might or might not infringe on the IP/license (I'm not a lawyer). Publishing detailed responses on this subject in open fora on the internet might or might not infringe.
There are quite some developers writing code which deals with ISO 11783-10, but I think the scarcity of freely available source code (e.g. on github) and open discussions on internet is a direct effect of the specification publication policy. It's sad because this domain is complex, has high impact, has many details which are very instance-specific (e.g. for a specific vehicle-manufacturer, accidental complexity), so open discussions and source code could improve productivity for many.
Agleader software SMS Basic has the option to export shapefiles to ISOBUS format.

How can I convert an .rtf or .doc document to LaTeX? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program.
What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keeps my formatting).
I am using Mac OS 10.5.8.
Open Office can. Download it.
See the fmtconv question on the UK TeX FAQ, or, more specifically, the page on Converters from PC Textprocessors to LaTeX - Overview, which is specifically about this question and has many many examples. This general list of word-processor filters may help too.
UnRTF claims to be able to convert RTF to LaTeX as well as other formats (e.g. HTML). It claims to support HTML best, so perhaps RTF->HTML->LaTeX (e.g. with html2latex) might work better. I haven't actually tried any of this though.
Make your rtf/doc document into docx, and convert it using docx2tex.
You need the System.IO.Packaging .NET class to get this to work, which is no problem if you are using Windows, and is in principle supported by Mono if you are not. If anyone has success doing this with Mono, I'd like to hear of your experiences: this didn't work a year or so ago, but their implementation of that class has improved since then.
I say more about the utility in an answer at tex.stackexchange. Suffice it to say that I consider this by far the cleanest, most Latex-friendly option out there.

Modeling software for network serialization protocol design [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am currently designing a low level network serialization protocol (in fact, a refinement of an existing protocol).
As the work progress, pen and paper documents start to show their limits: i have tons of papers, new and outdated merged together, etc... And i can't show anything to anyone since i describe the protocol using my own notation (a mix of flow chart & C structures).
I need a software that would help me to design a network protocol. I should be able to create structures, fields, their sizes, their layout, etc... and the software would generate some nice UMLish diagrams.
Sorry to say, everything I've seen so far (various serial protocols for embedded devices/networks) has used Word documents, with plain old tables showing allocations of fields to the bytes in the message. Alternatively, I've seen it done in Excel documents! It works, and people can read it.
Unfortunately, that's not helpful for automatic code generation, unless you have a very strict format in e.g. an Excel doc that you can then parse with a tool to generate some code. It would be good to have a notation that can be easily machine parsed, as well as human readable.
For showing message handshaking and sequences, a UML sequence diagram is good of course. There are lots of tools readily available to help you with that part of it.

YAML parser in Delphi? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Are there any YAML parsers or YAML Serialization libs in Delphi?
I have recently started a Delphi-YAML project on BitBucket:
https://bitbucket.org/OCTAGRAM/delphi-yaml
At least, I've got something running, but there are many tests missing and there are probably many bugs hiding.
I don't know about a full YAML implementation, but JSON (a subset) is getting pretty popular and there are even some Delphi libraries listed on the JSON site. Delphi 2009 is even using (a slightly modified version of?) JSON in DataSnap.
http://sourceforge.net/projects/lkjson
http://www.progdigy.com/?page_id=6
http://sourceforge.net/projects/is-webstart/
May be it is high time to implement a YAML parser in Delphi...
Copy code from PyYAML (but Python is a dynamically typed language)
Or take a look at SnakeYAML which is written in a statically typed language (Java)
Free Pascal also has some json libs.
I garbled up something like this to interface with PHP once. Here is the code:
http://www.stack.nl/~marcov/phpser.zip
Note that it is more proof of concept than an usable lib.
This open source C# YAML parser looks like it could be a starting point for a Delphi implementation:
YamlDotNet - A .NET library for parsing and emitting YAML

Resources