holjeron508 Posted August 14, 2009 Share Posted August 14, 2009 See snipet... Func _LVComDllTest() Local $hdl_lvComDll, $stringIn Local $A[16] = ["0"] Local $B[16] = ["0"] $hdl_lvComDll=DllOpen("Q:\LV85Projects\builds\COMDLL\COMDLLrc1\lvcom.dll") $A=DllCall($hdl_lvComDll,"none:cdecl","Func_CfgSerial_init", "str", $hdl_lvComDll, "str", "19200", "str", "none", "str", "", "int", 16) $stringIn=GUICtrlRead($input_0) $B=DllCall($hdl_lvComDll,"none:cdecl","Func_Serial_TxRx", "str", $A[4], "str", $stringIn, "str", "250", "str", "", "str", "", "int", 16, "int", 16) $junk=DllClose($hdl_lvComDll) GUICtrlSetData($lbl_0, $B[4] & $B[5]) Return 0 EndFunc What am I doing wrong here I keep getting the following error when I run this script: C:\Documents and Settings\phyoung\Desktop\HXStuff\HX_Test.au3 (70) : ==> Subscript used with non-Array variable.: $B=DllCall($hdl_lvComDll,"none:cdecl","Func_Serial_TxRx", "str", $A[4], "str", $stringIn, "str", "250", "str", "", "str", "", "int", 16, "int", 16) $B=DllCall($hdl_lvComDll,"none:cdecl","Func_Serial_TxRx", "str", $A^ ERROR I attached the whole script. Thanks, holjeron508HX_Test.au3 Link to comment Share on other sites More sharing options...
Yashied Posted August 14, 2009 Share Posted August 14, 2009 (edited) From the code that you showed, I see you have a very vague understanding of what you have written here, and how it works. To start, read this, please.EDIT:Ah, welcome to the forum. >_< Edited August 14, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Valuater Posted August 14, 2009 Share Posted August 14, 2009 (edited) A very good effort for a 1st post phil... follow Yashied's lead and you will do fine 8) Edited August 14, 2009 by Valuater 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