Discussion:
DLL file access from dBase Plus
(too old to reply)
Dan Lancour
2008-10-15 21:03:56 UTC
Permalink
Can a DLL file with headers designed for use with VB be used by dBase Plus ? How much work would it be to convert the header files ?

I would appreciate any ideas.

Thanks in advance

Dan Lancour
Geoff Wass [dBVIPS]
2008-10-16 04:43:47 UTC
Permalink
Post by Dan Lancour
Can a DLL file with headers designed for use with VB be used by dBase Plus ? How much work would it be to convert the header files ?
I would appreciate any ideas.
Thanks in advance
Dan Lancour
Dan,

How about posting a sample? That will make the question much easier to
answer.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Dan Lancour
2008-10-16 14:08:54 UTC
Permalink
Dan Lancour Wrote:

Geoff,

I was looking at purchasing a DLL library that included header files for VB. At this time, that is all I know about it. I was hoping that someone had experienced this header conversion process to dBase and could give me some ideas.

Dan Lancour
Post by Geoff Wass [dBVIPS]
Post by Dan Lancour
Can a DLL file with headers designed for use with VB be used by dBase Plus ? How much work would it be to convert the header files ?
I would appreciate any ideas.
Thanks in advance
Dan Lancour
Dan,
How about posting a sample? That will make the question much easier to
answer.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Marc VdB
2008-10-16 14:31:57 UTC
Permalink
Hi Dan,
Post by Dan Lancour
I was looking at purchasing a DLL library that included header files for VB. At this time, that is all I know about it. I was hoping that someone had experienced this header conversion process to dBase and could give me some ideas.
There are two types of DLLs, that can be used with dbase, those that
contain the implementation of a COM object (like activex or
oleautoclient). Normally you don't need a header file for these (but
there are exceptions). If it is an activex DLL, you should first make
sure, that the activex works with dbase.

And those, that contain functions that can be used within other
programming languages (like the windows DLLS). Normally these DLLs come
with a header file.
The header file contains the constant declaration and more important,
the signature of the functions in the DLL. That is what type of
parameter they await and what type of return value.

The header file can not be used without changes (the constants are easy
to adapt but the declaration of the external functions needs some
experience, because some of the VB types must match the dbase types)

There is only one sort of parameter, that can not be used with dbase:
the pointer to a callback function. It is not possible (yet) to use such
a function in a DLL.
All other functions should give no problems...

HTH, Marc

Loading...