How to open HTMLHelp (.chm) file from Borland C++ Application - c++builder

We have a legacy application developed in Borland C++ Builder. Now we have updated the help file to HtmlHelp (.chm) file, we want to click on the Help button in the legacy c++ application to open the .chm file. It seems that I cannot find a good way to do this? Can anyone help?

My application uses HTML Help but in a newer version of C++ Builder.
Here is a code snipit of how we include it in the main form.
//helpviewer
#include "HTMLHelpViewer.hpp"
#pragma link "HTMLHelpViewer"
In the formactivate
Application->HelpFile = "some drive letter:\\some directory\\somehelpfile.chm";
To display the help
Application->HelpCommand(HELP_CONTENTS,0);
Hope this is of some value

This has been asked and answered many times before, with full code snippets, in the Borland/CodeGear/Embarcadero forums. Search the archives at http://www.deja.com and http://forums.embarcadero.com.

Related

Delphi firemonkey OSX how to use NSPanel?

Due to issues with TOpenDialog/TSaveDialog, I intent to use NSPanel, but I cant find a documentation or examples in Pascal/Delphi.
Does anybody has a code snipped about how to use NSOpenPanel and NSSavePanel with file filter (setallowedfiletype)?

iOS Widevine with Xamarin

I am needing to use the widevine api in an ios app written in xamarin. From what I understand I need to make a wrapper for the library and such, but I have no idea where to start. Can anyone either explain in more detail what to do, or point me somewhere that explains it well?
Thanks, I am quite new to Xamarin, and rusty on C#
You definitely want to follow Jason's comment. In short, you need the .a (fat library) and the header files and then create a Xamarin.iOS binding project that exposes the native interface to C#. Access to the source code is not necessary.

Binding Tesseract as a static Lib in Xamarin

I am trying to add tesseract to my iOS-App. Im doing the App with Xamarin.iOS.
I tried creating a .dll with btouch and used for that the ported version of tesseract on github(https://github.com/gali8/Tesseract-OCR-iOS). I created the bindings of tesseractOCR.h with Objective-Sharpie and created a
.dll with the TesseractOCR.a file.
Everything worked fine but when trying to build my app with the .dll referenced it gives me the attached Errors.
https://www.dropbox.com/s/w9cvzozgw4gffdx/Screen%20Shot%202014-03-31%20at%2012.46.24.png
How can I fix them?
Thanks in advance
Alex
This seems a good question and I came here looking for Xamarin bindings for Tesseract library, but there was none on this page. After searching, I found that there are a couple of bindings already for Xamarin:
Classic
1. https://github.com/sraiteri/Xamarin-Tesseract-OCR-iOS
Unified
2. https://github.com/jherby2k/Xamarin-Tesseract-OCR-iOS-Unified
Xamarin Forms
3. https://github.com/halkar/Tesseract.Xamarin
Also, there seems to be an active and modern porting to swift, and can be found here:
https://github.com/WhitneyLand/SwiftOpenCV
This discussion on Xamarin forum seems also very useful for anybody interested in this question:
https://forums.xamarin.com/discussion/3673/help-adding-tesseract-as-a-ios-binding-project
Disclaimer: I have not tried any of them yet, just finished my research, now gonna start my experimentation :)
This is because Tesseract uses c++ and the binding needs to know this.
I would suggest creating a binding project as per the tutorial at Xamarin. Then this Xamarin forum post gives great information on how to add c++ to the LinkWith attribute.

Embedding Mono on iOS

I want to embed mono into my iOS application. I do not want to use MonoTouch. I want to embed mono manually like this:
http://www.mono-project.com/Embedding_Mono
I've have done this successfully on windows, using the above guide and various online examples, here's a good Windows one:
https://github.com/inkdev/Embedded-Mono-Sample
However I'm having trouble getting started on iOS. I know it can be done, companies like Unity3d use it to power their game engine tech. I can't work out how to compile and link mono for iOS nor can I find any good instructions to do so. I've not found any help using search engines, they exclusively seem to turn up articles about MonoTouch (Xamarin's own commercial wrapper around embedding mono into iOS).
Here's a few more noteworthy links:
http://www.mono-project.com/Mono:ARM
http://web.archive.org/web/20090106023130/http://mono-project.com./Mono:Iphone
Is there somewhere I can get precompiled libraries and headers for Mono for iOS, so in my C code I can simply link and include?
Could someone provide and example of how to compile mono for iOS ARM CPUs?
MonoTouch provides a great wrapper around all of the iOS Objective C APIs, however you don't necessarily need all of that, as I understand it should be possible to compile and then embed mono yourself and then use pInvoke to call the few native functions you will need.
Any help would be greatly appreciated, ty!
While not exactly what you are asking for, iOS 7 has added support for scripting with JavaScript. Many people finding this post may want to use this new capability to achieve what you are attempting. Link
As Rolf said, you need to read Mono Licensing document first. Embedding mono on iOS requires special permission from Xamarin.
You need to change several build settings from XCode, and here's what I did.
Open (or Create) iOS project
Add libmonoboehm-2.0.a to your project(You can use another version of .a file)
It's in Library/Frameworks/Mono.framework/Versions/{version}/lib folder
Project -> Build Settings -> Header Search
Add path: /Library/Frameworks/Mono.frameworks/Versions/{version}/include/mono-2.0
Project -> Build Settings -> Library Search
Add path: /Library/Frameworks/Mono.frameworks/Versions/{version}/lib
And, code like this in your iOS application
#include <mono/jit/jit.h>
#include <mono/metadata/mono-config.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/environment.h>
// ....
const char* dllFile = "ABSOLUTE_PATH_TO_DLL_OR_EXE";
domain = mono_jit_init(dllFile);
mAssembly = mono_domain_assembly_open(domain, dllFile);
// ... Do whatever you want :)
Please remember. You need to get license from Xamarin when embedding mono on iOS.
Enjoy :)

Delphi Spell Checker

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

Resources