Sebby Posted January 9, 2007 Share Posted January 9, 2007 here is my code :#include <GUIConstants.au3> ; Create a simple GUI for our output GUICreate ( "CTDX9 ActiveX", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Obj1 = ObjCreate("CTDX9.CTDx9Ctrl.1") $Obj1_ctrl = GUICtrlCreateObj($Obj1, 176, 88, 380, 274) $GUI_Button_Connect = GuiCtrlCreateButton ("Connect", 10, 420, 100, 30) GUISetState () ;Show GUI ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Connect $Obj1.ConnectSvr("test", "test", "0", "sebby.dyndns.tv", 1002, 1, 1, 1) EndSelect Wend GUIDelete () ExitIt looks like my $Obj1.ConnectSvr("test", "test", "0", "sebby.dyndns.tv", 1002, 1, 1, 1) line is not ok...Auto it says the requested action on this object failed.Manual Says : void ConnectSvr(LPCTSTR id, LPCTSTR pwd, LPCTSTR mac, LPCTSTR addr, short port, short mode, short ch, short aopt); for C++and S151AXCtrl1.ConnectSvr("test", "test", "0", "sebby.dyndns.tv", 1002, 1,1,1); works ok in javascriptI must say i'm totally lost on this!if someone can help i'd be very gladhttp://www.camerail.com/video/activex_ved.exe is the activeX to connect tothere is no video yet on my server but it should connect.Thank you !!! Link to comment Share on other sites More sharing options...
Sebby Posted January 10, 2007 Author Share Posted January 10, 2007 i tried all sorts of syntaxes today, none worked where could i find info about wrapping? thanx! 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