Mikse Posted December 2, 2008 Share Posted December 2, 2008 (edited) Hi there,I'm trying to access a DLL file which is connected to at public Queue System....I don't understand how to interact with this dll.I have tried somethingh like this:$dll = DllOpen("NQMedia.dll")$result = DllCall($dll, "int", "StartNQMedia")DllClose($dll)Lot of errors / crashBut to be honest i don't know how to access, so is there someone there could give me an example howtooget data from NQGetMediaDataRegardsMichaelHere is what the manufactor says about the dll.Starting up the NQMedia.dll. This will allocate memory and open up the connection to NQClientor NQCashier.SyntaxInt StartNQMedia ( struct TStartNQMediaRecord StartNQMediaRecord);Parameters StartNQMediaRecord Out struct TStartMediaRecord {Int Handle; Handle of customer application mainwindow. Used to retrieve a windowsmessage from dll.Int Array [5] Reserved; For future use.};Return Value=1 Success<> 1 FailureNQGetMediaDataRetrieving information data from NQMedia.dll whenever windows message Hex 6F3 has beensent from NQMedia.dll to customer application main window.Syntaxstruct TNQMediaDataRecord NQGetMediaData ();ParametersnoneReturn ValueNQMediaDataRecord (on stack)In struct TNQMediaDataRecord {Char Letter; Letter on ticketInt TurnNumber; Ticket numberInt Zeros; Number of significant numberson ticket.Int QType; Customer type$0B {11} = Office Main Q$0A {10} = Office Secondary Q$09 {9} = Office Booked Q$01 {1} = Servicetype Main Q$02 {2} = Servicetype Sec. Q$0C {12} = Servicetype Bok. Q$05 {5} = Cashier Main Q$03 {3} = Cashier Secondary Q$0D {13} = Cashier Booked Q$06 {6} = User Main Q$04 {4} = User Secondary Q$0E {14} = User Booked Q$0F {15} = RecalledInt ServiceType; Servicetype customers wasforwarded fromInt Cashier; Cashier customer wasforwarded fromInt User; User customer was forwardedfromInt Array [98] Reserved; For future use.}; Edited December 2, 2008 by Mikse Link to comment Share on other sites More sharing options...
Zedna Posted December 2, 2008 Share Posted December 2, 2008 Look at DllSctructCreate()and also here at post about DllCall:http://www.autoitscript.com/forum/index.ph...&hl=dllcall Resources UDF ResourcesEx UDF AutoIt Forum Search 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