Lazarus UnicodeToCP857 conversion - lazarus

i'm developing wince application with Lazarus.
How can i convert string UnicodeToCP857 (MS-DOS Turkish)?
Lazarus dosn't provide for me. How do i convert it?

Related

How to use System.Drawing. Common package in Xamarin

I am using System.Drawing.Common (https://www.nuget.org/packages/System.Drawing.Common/) package in .NET Core application to create bitmap image using GDI+. When I use the same package in Xamarin application which throws PlatformNotSupported exception.
Is anyone know when Xamarin support will be provided for this package?
I don't think it will ever be supported. GDI+ is very specific to the Windows platform. If you need any drawing library, you could have a look at SkiaSharp, which is supported by Xamarin.
You can replace System.Drawing.Common with Aspose.Drawing that has the same API and truly cross-platform. (I'm one of the developers.)

Connect Delphi XE OSX Firemonkey application with SQLite database

I need to convert applications wrote in Delphi XE3 to use it on a Mac OSX.
I use for this applicatiopn database SQLite but i cannot found firemonkey compatible components that i can use to connect with my databases.
How can i do?
Thank you
If you are talking about the high-level Delphi database components, then I cannot help you, but if it is about low level database access, without using the Delphi database components, here is what I did:
There is a SQLite interface included with Firemonkey. Include "System.Sqlite", in your uses section. I have only focused on iOS, which does not allow dynamic libraries, so the Firemonkey implementation comes in handy, as it automatically links the SQLite libraries into the executable.
I re-used and modified the SQLite3Wrap.pas, from my previous SQLite wrapper, to use the Firemonkey library and to make it work with NEXTGEN. So far it seems to work.
If you need to connect from Delphi XE3 to SQLite on Mac OSX, then you can use LiteDAC for this because these components are fully compatible with Firemonkey and support Mac OSX.

Delphi Firemonkey Cross Platform - Generic way to pass a Windows Handle

I'm knee deep in my second Firemonkey app for Windows and OSX and slowly converting my library of functions to handle cross platform issues. I am trying to create a generic SelectDirectory function that will run platform specific code for Windows or OSX. I have SelectDirectory working great for both platforms called individually, but the Windows specific one requires a hwndparent handle to run.
This is being run in a IFDEF MSWINDOWS directive (just as the OSX one is in its compiler directive). How can I pass a generic handle to this function or how can I reference Application.MainForm or something that can be cast into a Windows handle inside this function? I am hoping to avoid using Firemonkey specific units in the uses clause of this library. I would rather pass in a THandle somehow and cast it into a TWindowHandle inside the function, but after an hour of working on it, I don't see how to do it without compromising the usefulness of my library.
Any help appreciated.
Use WindowHandleToPlatform to get the Windows-specific TWinWindowHandle which has the Wnd property. This is the native window handle (HWND).

what is the GTK# equivalent of a control from C#?

I have recently transferred from C# to GTK# because my computer doesn't support C#. I am trying to write a program and i keep getting an error. does anyone know what the GTK# equivalent of a control is?
The entire architecture is a bit different than most of the other C# UI libraries. The closest equivalent to "Control" would likely be Gtk.Widget, which is the (eventual) base class of most of the "controls" in GTK#.

manipulation docx for windows phone 7

I want to manipulate docx files in wp7,c#. In windows I always use : http://docx.codeplex.com/ but it can't be added as a reference to a wp7 project.
Is there any control or alternative dll? Or is there any simple documentation about making doxc file? I read msdn documentation and I just got confused!
As far as I know there isn't a library for editing docx files for WP7 / Silverlight. However, the DocX library you link to is only dependant on the ./NET 4.0 framework. As DocX is most likely composed of non-UI code, there is a good chance that if you place the code into a WP7 Silverlight class library, you will be able to compile it.
Independentsoft has set of Office APIs compiled as Portable Class Library. It works on Silverlight, Windows Phone 7/8 and .NET Windows Store Apps.

Resources