JohnOne Posted February 7, 2014 Posted February 7, 2014 OK, how do you import it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
madhutm Posted February 7, 2014 Author Posted February 7, 2014 this is how import in c# [DllImport("BCRBTLib.dll", EntryPoint = "BCRBT_Disconnect",CharSet = CharSet.Auto)] [return: MarshalAs(UnmanagedType.I1)] public static extern bool Disconnect();
FireFox Posted February 7, 2014 Posted February 7, 2014 This should work : DllCall("BCRBTLib.dll", "bool", "BCRBT_Disconnect") Br, FireFox.
FireFox Posted February 7, 2014 Posted February 7, 2014 Can you post the DLL (or by PM) ? There's obviously something wrong here. Br, FireFox.
madhutm Posted February 7, 2014 Author Posted February 7, 2014 the same functuion works fine from c#.if somthing wrong in dll how come it's work from c#.and i dont have source code of dll. ths Madhu.
FireFox Posted February 7, 2014 Posted February 7, 2014 I didn't say post the source code of the DLL, just the DLL file.
madhutm Posted February 7, 2014 Author Posted February 7, 2014 i got following error while trying to upload my dll Error You aren't permitted to upload this kind of file
madhutm Posted February 10, 2014 Author Posted February 10, 2014 hi is it possible to get image colour while recording. madhu
madhutm Posted February 11, 2014 Author Posted February 11, 2014 hi sry i dont have permission to gave my dll.in side my dll c++ function is like this. bool BCRBT_Control(int control,LPBYTE datain,int lenin,LPBYTE dataout,int* lenout) from c# i am calling this function like this. int ctl=0xf901; str_in=1E. byte[] inData = new byte[0]; byte[] outData = new byte[0xff]; int outLen = 0; inData = ConvertHexStringToByteArray(str_in); Control(ctl, inData, inData.Length, outData, ref outLen) please help me how to call this function from autoit
madhutm Posted February 12, 2014 Author Posted February 12, 2014 solved my problem here's the code Local $input = GUICtrlRead($hInput) Local $dd = StringFormat("%X",$input) Local $outLen = 0; Local $ctl =0xf901;DllStructCreate Local $tStruct2 = DllStructCreate("byte[" & 0xFF & "]") $inLen =0; Local $tStruct = DllStructCreate("byte[1]") DllStructSetData($tStruct,1,'0x'&$dd) Local $dll = DllOpen("C:UsersMadhu.V4bcr200btv4_runtimeBCRBTLib.dll") Local $tl1 = DllCall($dll,"boolean:cdecl","BCRBT_Control","int", $ctl, "struct*", $tStruct, "int", DllStructGetSize($tStruct), "struct*", $tStruct2, "int*", $outLen) Local $tt = DllCall($dll,"boolean:cdecl","BCRBT_Connect") Thanks everyone .
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