Re: [fpc-pascal] fp universal library ?

2014-02-02 Thread hinst
02.02.2014, 02:45, Fred van Stappen fi...@hotmail.com: Yep, thanks Michael. Hum, may i export dynamic array ? No, you'll need to export these as (typed) pointers and a count. Regards, Sven Re-Argh, ok, (and i understand now why the library-examples are so simple :-) ). Many

[fpc-pascal] Use environment variables in configuration file?

2014-01-29 Thread hinst
I want to use an environment variable in FPC configuration file; is this not possible?I created sample project which demonstrates the problem. I have one main source file and one unit which is located in subdirectory.I try to compile my program with this bash script: #!/bin/bashexport

Re: [fpc-pascal] Use environment variables in configuration file?

2014-01-29 Thread hinst
29.01.2014, 14:36, Michael Van Canneyt mich...@freepascal.org: On Wed, 29 Jan 2014, Michael Van Canneyt wrote:  On Wed, 29 Jan 2014, hinst wrote:  I want to use an environment variable in FPC configuration file; is this  not possible?  I created sample project which demonstrates the problem

Re: [fpc-pascal] Pure FPC ?

2014-01-27 Thread hinst
27.01.2014, 15:02, Fred van Stappen fi...@hotmail.com: Date: Mon, 27 Jan 2014 08:53:25 +0100 From: xhaj...@hajny.biz To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Pure FPC ? On Mon, January 27, 2014 01:38, Fred van Stappen wrote: Ok, i will try to explain better. When

Re: [fpc-pascal] Can Delphi load a small function of a shared lib written in Free Pascal 2.6.2?

2014-01-17 Thread hinst
I suggest you use COM interfaces to use FPC objects from Delphi code. While FPC class instance memory layout differs from Delphi class instance memory layout, COM interface instances should have identical memory layouts; so they should be accessible from Delphi code 17.01.2014, 04:31,

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-14 Thread hinst
I identified the problem Take a look at the function declaration plz: Function GetProcAddress(Lib : TlibHandle; const ProcName : AnsiString) : Pointer; // from dynlibs It internally uses this function: Function GetProcedureAddress(Lib : TLibHandle; const ProcName : AnsiString) :

Re: [fpc-pascal] Load .NET dll (or bootstrap CLR to be precise) from FPC

2014-01-10 Thread hinst
  10.01.2014, 11:19, "leledumbo" leledumbo_c...@yahoo.co.id:I'm writing a web app hosting several tasks in FPC, however one of the taskis calling a function residing in a .NET dll. I've made a flat C interfacefor the dll (so that I can call it from FPC easily), and it works just fineIF the dll is