Re: About my project

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jason Gade wrote:

with regard to...
> > atom rid_dbOpen
> > rid_dbOpen = define_c_func(dbSQL, "dbOpen", {C_POINTER}, C_LONG)
> > 
> > global function dbOpen(sequence sPath)
> >     atom text_ptr, nResult
> >     text_ptr = allocate_string(sPath)
> >     nResult = call_func(rid_dbOpen, text_ptr)	-- zero=fail
> >     return nResult
> > end function
> 
> You need c_func() instead of call_func(). call_func() is for Euphoria
> functions,
> c_func() is for C functions.
> 
> <a
> href="http://www.rapideuphoria.com/lib_c_d.htm#c_func">http://www.rapideuphoria.com/lib_c_d.htm#c_func</a>
> 
> Hope that helps!

What a bonehead I am.  Yes, that got me moving forward again.

I still have issues to work through, but that certain did help.

Thanks, ken.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu