Subject Fwd: UDF not working in Firebird 32bit on Windows 7 x64
Author truesaint
Seems that the first one didn't get through. Resending.
My Apologies if this shows up twice.

-------- Original Message --------
Subject: UDF not working in Firebird 32bit on Windows 7 x64
Date: Tue, 25 May 2010 15:06:54 +0700
From: truesaint <truesaint@...>
To: firebird-support@yahoogroups.com

Hello everyone,

Background information:
- Windows 7 x64
- Firebird 2.1.1 x86(32bit)
UDFAccess is left as default
- RFunc UDF (rfunc.dll)
placed in C:\program files (x86)\firebird\firebird_2_1\UDF

Whenever we reference RFunc UDFs, it shows the following error message:
...
Invalid token.
invalid request BLR at offset 2039.
function EXTRACTDAY is not defined.
module name or entrypoint could not be found.
...

From inside IBExpert, the UDFs are shown to be registered correctly.
...
DECLARE EXTERNAL FUNCTION EXTRACTDAY
TIMESTAMP
RETURNS INTEGER BY VALUE
ENTRY_POINT 'fn_day' MODULE_NAME 'rfunc';
...

Tried and installed the "Microsoft Visual C++ 2008 Redistributable
(x86)" , with the same result.

The exact same database can be accessed in Windows XP without problems.
Please help.

Thank you very much in advance,
t.s.