JohnOne Posted February 7, 2014 Share 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. Link to comment Share on other sites More sharing options...
madhutm Posted February 7, 2014 Author Share 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(); Link to comment Share on other sites More sharing options...
FireFox Posted February 7, 2014 Share Posted February 7, 2014 This should work : DllCall("BCRBTLib.dll", "bool", "BCRBT_Disconnect") Br, FireFox. Link to comment Share on other sites More sharing options...
madhutm Posted February 7, 2014 Author Share Posted February 7, 2014 no it's not working. Madhu. Link to comment Share on other sites More sharing options...
FireFox Posted February 7, 2014 Share Posted February 7, 2014 Can you post the DLL (or by PM) ? There's obviously something wrong here. Br, FireFox. Link to comment Share on other sites More sharing options...
madhutm Posted February 7, 2014 Author Share 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. Link to comment Share on other sites More sharing options...
madhutm Posted February 7, 2014 Author Share Posted February 7, 2014 pls anybody help me. ths Madhu. Link to comment Share on other sites More sharing options...
FireFox Posted February 7, 2014 Share Posted February 7, 2014 I didn't say post the source code of the DLL, just the DLL file. Link to comment Share on other sites More sharing options...
madhutm Posted February 7, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
FireFox Posted February 7, 2014 Share Posted February 7, 2014 Then ZIP it Link to comment Share on other sites More sharing options...
madhutm Posted February 10, 2014 Author Share Posted February 10, 2014 hi is it possible to get image colour while recording. madhu Link to comment Share on other sites More sharing options...
madhutm Posted February 11, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
madhutm Posted February 12, 2014 Author Share 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 . 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