[fpc-devel] FPC for minimal Win-32

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Fri Mar 25 00:17:48 CET 2011


Sven Barth wrote:
> On 24.03.2011 21:38, José Mejuto wrote:
>> Hello FPC,
>>
>> Thursday, March 24, 2011, 9:10:10 PM, you wrote:
>>
>> SB>  You don't need to rebuild FPC itself, but you need to modify the 
>> RTL.
>>
>> SB>  Three functions from oleaut32 are included for Windows compatible
>> SB>  widestring management. As FPC has a fallback mechanism you can 
>> disable that.
>>
>> Or simply create a dummy "oleaut32.dll" which exports the same
>> functions prototypes without doing nothing (empty functions) and drop
>> that DLL in the same folder as the exe.
>>
> 
> But then you must not use FPC for that DLL as the oleaut32 functions are 
> used in DLLs as well.

Ouch :-)

> Also if you follow this approach it might be safer to stay far away from 
> any function that takes a WideString (UnicodeString might work though).

Also since I'm tinkering with an OS of unknown completeness I think I'd 
rather steer clear of extra DLLs to start with.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list