[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My experience with a DLL



PureBytes Links

Trading Reference Links

At 09:38 AM 9/23/99 -0400, you wrote:
>
>I finally took the time to master the PowerBasic 16 bit DLL compiler and
>I generated a test DLL for TS 4.0.  I coded the Tillson T3 moving
...
>
>But, there was a problem that I had to work around and would like to
>resolve.  I had no problem passing floats from TS to the DLL, but could
>not pass a float from the DLL function back to TS.  I could however pass
...
>
>BUT, I still want to use either the FLOAT or LPFLOAT transfer to TS in
>DefineDLLFunc: or understand why they don't work.  So, here are
>questions:
>
>1)   I assume I can use FLOAT or LPFLOAT without needing to activate
>TS_KIT.DLL.  Is this correct?

I am.

>2)   I programmed my DLL function to output a 32 bit pointer for the
...
>I know that many of you are wizards at C++ version 1.52.  I am a very

I'm just learning to interface 32 bit DLLs with TS2000 with MS's VC++ 5.0.

I haven't had trouble getting floats back or forth.  I'd be willing to
provide (part of) my source code as an example, but it sounds like it's not
what you're needing.

>Lastly, the PowerBasic 16 bit compiler is proving to be an excellent
>accessory to TS4.  It is damn fast, generates lean code, and has all the
>amenities of a structured high level language:  Functions, subroutines,
>huge multi-dimensional arrays, global and local variables, array
>sorting, etc.  And, program and data size is unlimited.  I will be
>moving math stuff and some conditional testing into DLL's from now on.

Just out of curiousity, who's the vendor?


Dave