Guest pezz Posted July 9, 2005 Share Posted July 9, 2005 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.htmlthanks!pezz Link to comment Share on other sites More sharing options...
/dev/null Posted July 9, 2005 Share Posted July 9, 2005 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.CheersKurt __________________________________________________________(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 More sharing options...
w0uter Posted July 9, 2005 Share Posted July 9, 2005 there also isnt a BOOL. its just int. maby you can just use LONG instead of Float ? (maby DllStruct* commands will also help you) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Guest pezz Posted July 10, 2005 Share Posted July 10, 2005 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 LongIs 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* ?thankspeter Link to comment Share on other sites More sharing options...
/dev/null Posted July 10, 2005 Share Posted July 10, 2005 Is there really no way to use this function in autoit?I'm sorry, the answer is NO, until somebody implements "float" parametersfor 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.CheersKurt __________________________________________________________(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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now