Subject RE: [ib-support] DLLS, UDFs, and Firebird
Author Alan McDonald
Jonathon,
With Delphi we export the functions. Is there no "export" section in your
code?
Alan
-----Original Message-----
From: news@... [mailto:news@...]On Behalf Of
Jonathan M. Freedman
Sent: Tuesday, 8 October 2002 8:14
To: ib-support@yahoogroups.com
Subject: [ib-support] DLLS, UDFs, and Firebird


I have created a DLL, using C++Builder 6 on windows xp professional,
compiling it with the C option on and multithreaded option on, it compiles
fine...it still does not work with Firebird (1.5). The UDF installs, but
when i run it, it gives this error msg:

isc errorcode 335544343

invalid request BLR at offset 2, function ROUNDER is not defined...module
name or entrypoint could not be found.

the source code for the DLL follows:

#include <vcl.h>
#include <math.hpp>
#include "ibase.h"
#pragma argsused

extern "C" double _stdcall Rounder (int iPlaces, double dTarget)

{
double Holder ;
Holder = SimpleRoundTo(dTarget, iPlaces) ;
return(Holder) ;
//this code works fine in a console program
}

the DDL for the UDF is:

DECLARE EXTERNAL FUNCTION ROUNDER
INTEGER, DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'Rounder' MODULE_NAME 'MyUDF'




To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]