From: dave@powerbasic.com (Dave Navarro)
Subject: Re: passing doubles to a PB .DLL
In article <33F8E23B9399AAA0.E79908A89937612D.1A4500561EF3D5FD@library-
proxy.airnews.net>, salinon1@airmail.net says...
> Hi-
>
> I have the PB DLL compiler v1.5 and I'm using VB4/16 bit. How can I
> pass double precision variables to and from a PB DLL sub? It doesn't
> seem to work like passing integers and my manual only shows how to do it
> via functions NOT subs.
> ex. Call PBSUB(D1, D2) 'where D1, D2 are doubles
SUB PBSUB (d1 AS DOUBLE, d2 AS DOUBLE) EXPORT
' your code here
END SUB
'VB Declare
Declare Sub PBSUB Lib "PB.DLL" (d1 As Double, d2 As Double)
--Dave
*** QwkNews (tm) v2.1
* [TN11.1] Internet Newsgroup: alt.lang.powerbasic
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)
|