Just look at the Sqlite source and use the function code there as a template.

For a custome function look up the Sqlite API documentation on sqlite.org.

Mitchell Vincent wrote:
Hi Igor!

The only problem is my lack of understanding on how implementing
custom functions in SQLite works. I'm sure your idea is sound I just
don't know the details of implementing it. For instance, is this
something that has to be compiled into the DLL, or is it database file
specific?

Now that I know it's possible I'll I'm sure I'll have all my questions
answered as I read the documentation.

Thanks again!

On 4/6/07, Igor Tandetnik <[EMAIL PROTECTED]> wrote:

Mitchell Vincent <[EMAIL PROTECTED]> wrote:
> Yes, I know about creating a function but I'm wondering if I can hook
> into the already-existing Windows API function for it. Currency
> formatting is quite complicated (much more than just storing a
> currency "symbol") and Windows has already done the leg work - I just
> need to see gain access to the API function for it.

I don't understand. You can install a custom function into SQLite
engine - the function that you implement. This function can then be used
in any SQL statement. Within implementation of that function, you can
happily use GetCurrencyFormat or any other API. What again seems to be
the problem?

Igor Tandetnik


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------






-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to