Hi I am looking for a free spell checker to use with Delphi 7 -2010 could anyone please give me a pointer to one
I would like to add the HunSpell library we used in our SynProject editor.
It's included in the source code of this GPL tool.
http://synopse.info/fossil/wiki?name=SynProject
http://synopse.info/forum/viewforum.php?id=16
The .dll, and the dictionaries, are bundled to the main executable as zipped resource.
http://synopse.info/forum/viewtopic.php?pid=314#p314
Related
I got an API for a lib file.
With that lib file .h files were supplied.
Now i want to call the lib file within the Delphi, and use its functionality.
how does the lib file get connected to the Delphi?
update: ok allot of work around is needed, what if i get a dll? how do i link that into the Delphi?
You can't use a lib file to link to a DLL from Delphi. The .lib file would be used by C or C++ clients of the DLL.
In Delphi you need to manually translate the .h header file into a Pascal import unit using the external keyword. An example of this of the Windows.pas unit in the Delphi source. The fact that you can't use the .lib file is actually not a big issue because you have to translate the .h file no matter what.
In certain cases it is possible to extract members of a .lib file using tools like the object file converter from Agner Fog (see http://www.agner.org/optimize/?e=0,34,36) to .obj files.
The syntax is
objconv.exe libname.lib -lx
to extract all members.
By extracting all members you can ensure that there are no members missing. However, if there are further dependencies (to other .lib files) these won't be resolved and must be resolved manually.
Also translating the header files is still required.
Note: The object file format can also be converted. Delphi only understands OMF, while Intel compilers (for exampl) spit out only COFF. Thus a conversion is required, which can be done by the tool as well.
As said this only works in certain cases and it surely need some expertise in this area, because the compiler won't help much with error messages (often the messages are irritating and misleading).
When compiling a OpenCV 2.3 project in Builder I get multiple errors starting with "_fm_atan2l is not a member of 'std'" and continuing with other math related errors in that form. I also get "Multiple declaration of '_Ctraits::_Isnan(double)' and other similar errors. This happens after I simply include the OpenCV header files and thus seems unrelated to anything I have done in the application itself.
The only file I have included so far is "cv.h" in OpenCV's include directory. Am I doing it wrong already or is there maybe something else I have to set up first?
You can download simple project combining 2.3.2 and c++ builder xe2 from my site:
http://www.compvision.ru/forum/index.php?showtopic=763
There are fixed headers for builder, and lib converter in archive.
There are also .lib files in archive, but it'll be better if you make them by yourself from original .lib files contained in your opencv distribution using LibConverter.exe utility.
And there is some strange thing: some dll files need to be renamed to something like .dl or .d. Compiled program will prompt you about it.
you can correct OCV atan2 issue with bcc32, including fastmath in std namespace (for more info see: https://forums.embarcadero.com/message.jspa?messageID=363384 [^]).... but more other issues are there after ...
Until now I'm unable to build OCV 2.3.1 with CBuilder XE2 :(
I'm currently porting a rather big project from C++ Builder 5 to the newest version, C++ Builder XE. It's my first experience with C++ Builder. I'm stuck with an error in a file, but I don't want to include this file anyway (it's code of a component not required anymore). I was not able to find out where and how this file is included, however. The compiler error does not give any hint at all apart from the error itself. How do you usually find out where a file is included?
The preprocessor is perfect for this. Right click on the cpp file which gives you the error in the project manager then choose "preprocess"
The output from this tells you every file and line number in the order they are processed. You can then search for the file in question, and the line above it is the file that included it.
This could conceivably be another header file as well, so it could be a long chain, but you can determine exactly where it comes from.
In the Project Options, enable the compiler's general messages. When the compiler encounters an error, you will be able to see the chain of includes that lead to the erroneous code.
If the files in question are rather sizable, a tool like Doxygen can be helpful in showing you the include dependencies (as well as call paths, etc.).
If it's just once or twice you'll have to do this, David Dean's suggestion of the preprocessor is golden.
I need
understand how work some(5-6) exported function - for easy codejumping
if code base is full I build it -and using browsing
but code base not full so compiling fail.
one road from many: add proxy unit wich include all proxed(thouse that implimentation I not have)(by hands or part auto) function,type,const,ets THEN build as full - that path 1.
may be exist tool that can linked all source and gen some output(html or other -not is defined) for jumping in code from using some identificator to it definition and vica-versa?
UPD1. find Ctags,OpenCTags for Notepad++ . All is good, only one silly little mis: jump to interfase part of defenition , but I wonna to implimentation part (for C/C++ it like goto .h and not to .c/.cpp) any help?
I think you're asking about a pascal dependency analyzer, such as Peganza, discussed here:
Tool that shows unit dependencies for Delphi 2010 or Delphi 7 program
Is there any Library in Delphi to handle LZMA (or 7zip)files including creating self extracting EXEs
There are some sources code at 7zip.orgin (c++ java c#) but i want them in delphi
BUT i want something which is stand alone (No DLLs)
there are two solutions:
1) use the into native pascal translated sdk:
Pascal LZMA SDK
Source Download
2) you can compile the c version of the sdk into obj files and link them to your delphi project. this one requires a translation of the header files to delphi and it requires lots of c knowledge.
LZMA SDK
Inno setup have delphi source code to encode and decode lzma.
http://www.jrsoftware.org/isdl.php
you could also simply use inno setup to create your self extractor.
try http://www.progdigy.com/?page_id=13 it might be what you need
JCL has JclCompression library which support 7zip and there's Delphi 7 Zip API both of them are open source project.
A patch for Delphi Zip that support both LZMA and Zip64 is ready: delphi-zip