How to use difxapi.dll in delphi? [closed] - delphi

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 8 years ago.
Improve this question
I need to use difxapi.dll from my Delphi project (Pascal). I tried to import it as a type library in Delphi, but Delphi gave me an error with a long backtrace.
Maybe i am doing something wrong? How should i correctly add this lib to my Delphi project so i can use it? It's Delphi XE2 if it matters.

DIFxAPI is a standard 32-bit dynamic link library (DLL), not an ActiveX library. There is no type library to import for a normal DLL.
To use DIFxAPI.DLL in your application, you need to translate the DIFxAPI.h file to Delphi, and then call those imported procedures from your Delphi application. (You'll want to either import the W versions of the API functions, or use PAnsiChar instead of PChar in your imported functions, as XE2 uses Unicode.)
You can find more information on the MSDN pages in Linking an Installation Application to DIFxAPI.DLL

Related

Convert Delphi VCL Windows app or rewrite? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a Windows VCL app in Delphi XE5 that I'm looking to convert/rewrite for iOS. The current app uses a local Firebird database.
I'm looking for suggestions on whether to use a tool to convert the VCL app for iOS use, or whether rewriting is the best way to go.
You don't need to rewrite your application provided you made it using FMX (FireMonkey) instead of VCL. FMX was introduced with Delphi XE2. Old FMX (The one provided with XE5) will probably not work with recent iOS version. So upgrading Delphi to latest version is highly recommended.
If you wrote your application with VCL, then yes you have to rewrite it with FireMonkey (FMX). This could be not to much difficult as FMX components are close to VCL. The most difficult part is if you use 3rd party visual components. You have to get FMX version.

Modern view application with Delphi VCL. It's possibly? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I wanna modern view of my application on old systems like windows XP. How I can do it, without use FMX?
you can use VCL components with XE10, that provide you to use Native Extended Styles.
you can check this :
http://docwiki.embarcadero.com/RADStudio/Seattle/en/VCL_Styles_Overview
or
Delphi XE2 VCL styles tutorial - how to change the style at runtime
however be carefull of which version of Delphi you are using, because embarcadero change a little bit about how the TStyleManager apply styles (pre-load, at run time, ressource... there is few way to apply it).
example :
var
StyleResource : string; // filename of the style
begin
TStyleManager.LoadFromResource(HInstance, StyleResource);

What type of apps can we create within Linux using Swift (Open Source) [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 7 years ago.
Improve this question
With the announcement release of Swift as open source a question came to my mind. Apparently the language/compiler supports Linux besides the obvious Apple different operating systems, but what kind of apps can really be created in Linux?
What type of apps can we create within Linux using Swift, iOS, OSX, etc. apps or only Linux apps?
Or better yet, since this may be to early the question could be... what kind of apps are we going to be able to build in Linux in the future?
Swift is a programming language, not to be confused with a software library, such as UIKit, or an Integrated Development Environment (IDE), such as Xcode or Microsoft Visual Studio.
To put it succinctly, I think in the near future we can only expect to write in Swift the kind of applications we are able to write in C and C++ on Linux. The downside of Swift: it's tricky to integrate with C and C++ code. See, e.g., http://www.swiftprogrammer.info/swift_call_cpp.html and http://www.swiftprogrammer.info/callback_void.html. The advantage: it's simpler to use than C and C++.

how to make setup file containing a delphi exe and some other files [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 10 months ago.
Improve this question
I have written a utility in delphi 5 professional which requires the some files while executing. I want to make a setup file which installs my utility program along with the other required files.
You can use InnoSetup to create professional installers here is the download link ... http://www.jrsoftware.org/isinfo.php
I'd go with InnoSetup any time if using Microsoft Windows Installer is not a requirement. If you would like to use MSI, then I'd recomment diving into Windows Installer XML, which is relatively easy to use for simple setups.
Delphi 5 came with InstallShield Express that is useful for simple setups (and IIRC could also install the BDE...) and is simple to use - if you have a "legal" copy you should find it easily on the installation CD (it should also be offered by the installation app autoruns launches).

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