main logo
Subject: Re: Help with data types needed
Author: Derek Kalweit
Posted: 2005/09/30 10:04:48
 
View Entire Thread
New Search


To make sure things work best, it's good to know what function you're
calling, but I'd try:
INTVAL=INTEGER
STRVAL=STRING
INTREF=@INTEGER
STRREF=@STRING
LONGREF= (at) INTEGER
LONGVAL=INTEGER
You hae to be careful with the REF types-- sometimes these API's want a
32-bit integer pointer to pre-allocated memory .D.OT To do this, you probably
need to DECLARE some memory-management API calls like malloc() and free()--
those are the calls I use, anyways...
If this is a Win32 call, post which one it is, and I'll help you
translate-- also check http://www.news2news.com/, as they may already have
it for you. If it's not a win32 call, post the documentation and I'll try to
help. Thanks.
--
Derek

On 9/30/05, John Weller <john@wessexcomputers.co.uk> wrote:
>
> Hi Guys,
>
> I need help again! I've been asked to do a job which involves calling API
> functions from a supplied DLL. I've never had to use the DECLARE statement
> from scratch before, I've always been able to blag someone else's code
> <g>.
> The prototype in the dll documentation refers to INTVAL, STRVAL, INTREF,
> STRREF, LONGREF and LONGVAL. The help file for DECLARE refers to INTEGER,
> SINGLE, DOUBLE, LONG and STRING. Which should I use for what?
>
> TIA
>
> John Weller
> Wessex Computer Solutions
> Devizes, Wilts
> 01380 728880
> 07976 393631
>
>
>
[excessive quoting removed by server]


 
©2005 Derek Kalweit
<-- Prior Message New Search Next Message -->