Sign in to follow this  
Followers 0
Sebby

Integrating 3rd Party ActiveX video viewer

2 posts in this topic

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 ()

Exit

It 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 javascript

I must say i'm totally lost on this!

if someone can help i'd be very glad

http://www.camerail.com/video/activex_ved.exe is the activeX to connect to

there is no video yet on my server but it should connect.

Thank you !!!

Share this post


Link to post
Share on other sites



:) i tried all sorts of syntaxes today, none worked

where could i find info about wrapping?

thanx!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0