Jump to content

help for dllcall


Guest pezz
 Share

Recommended Posts

Guest pezz

my experience in programming is very small, can anybody tell me which data types (or pointers?) I have to take for this function:

function oziConvertLL2Grid(GridNumber:integer;lat,lon:double;var Datum:pchar;var Zone:pchar; var Easting,Northing:double;Lat0,Lon0,Lat1,Lat2,K0,X0,Y0:double):integer;stdcall;

details here: http://64.71.184.220/oziapi/oziapi_docs.html

thanks!

pezz

Link to comment
Share on other sites

function oziConvertLL2Grid(GridNumber:integer;lat,lon:double;var Datum:pchar;var Zone:pchar; varĀ  Easting,Northing:double;Lat0,Lon0,Lat1,Lat2,K0,X0,Y0:double):integer;stdcall;

according to the help file there is no support for floating point variables. So, sorry you can't use this function, as you will need some "double" values.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

I found an example in vb, the declaration:

Declare Function oziConvertLL2Grid Lib "oziapi" ( _

ByVal GridNumber As Long _

, ByVal Lat As Double _

, ByVal Lon As Double _

, ByRef Datum As String _

, ByRef zone As String _

, ByRef Easting As Double _

, ByRef Northing As Double _

, ByVal Lat0 As Double _

, ByVal Lon0 As Double _

, ByVal Lat1 As Double _

, ByVal Lat2 As Double _

, ByVal K0 As Double _

, ByVal X0 As Double _

, ByVal Y0 As Double) As Long

Is there really no way to use this function in autoit?

there also isnt a BOOL. its just int.

maby you can just use LONG instead of Float ?

(maby DllStruct* commands will also help you)

<{POST_SNAPBACK}>

how could I use DllStruct* ?

thanks

peter

Link to comment
Share on other sites

Is there really no way to use this function in autoit?

I'm sorry, the answer is NO, until somebody implements "float" parameters

for DLLCall.

@w0uter: And you can't use "long" in the DLLCall, as "long" is 4 Bytes and "double" is 8 bytes.

how could I use DllStruct* ?

You can't, as the function does not expect a structure.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...