Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 24th, 2005, 06:57 AM
1andy1 1andy1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 18 1andy1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 18 sec
Reputation Power: 0
Send a message via ICQ to 1andy1
Question How to write UDF in C++

Hi all,

could anybody give me an example of code in C++ of function declared like following.

DECLARE EXTERNAL FUNCTION Translate
CSTRING(100), CSTRING(100), CSTRING(100)
RETURNS CSTRING(100) FREE_IT
ENTRY_POINT 'Translate' MODULE_NAME 'Utils';

How does the declaration look like in C++.

I have a problem that if I call the function I get an error.

fmSQLEditor.Query:
Invalid token.
invalid request BLR at offset 63.
function TRANSLATE is not defined.
module name or entrypoint could not be found.

Thanks.

Reply With Quote
  #2  
Old February 8th, 2005, 03:10 PM
Turboman Turboman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Thailand
Posts: 4 Turboman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 21 sec
Reputation Power: 0
any error when change
from 'Translate' to 'TRANSLATE'?

Reply With Quote
  #3  
Old February 15th, 2005, 09:54 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 274 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 12 m 34 sec
Reputation Power: 9
there is one udf library written in c++ on sf.net

http://rfunc.sourceforge.net/
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > How to write UDF in C++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway