Sign in to follow this  
Followers 0
ning

Pass non-integers to & from DLL functions

2 posts in this topic

Hello,

I've got a VBA project (in Excel) which calls a DLL function, and one of the parameters (the important one, naturally) is a double-precision floating point number. The actual code used to declare the function looks like this:

Declare Function FastRPC Lib "Z:\WINDOWS\SYSTEM32\FastRPC.DLL" (ByVal parameter As String, ByVal Property As String, ByVal mode As Integer, DataPtr As Any, ByVal ItemCount As Long) As Long

The DataPtr is the argument I'm referring to. This is passed by reference and is a Double in the implementation of the function elsewhere in the code. How can I reproduce this code using DllCall in AutoIt? There seems to be no mention of a 'double' (or any non-integer) datatype in the documentation for DllCall. Any ideas?

ben

Share this post


Link to post
Share on other sites



The DLLStruct* functions in the beta release allow you to construct custom data structures, including DOUBLE type members.


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0