bladem2003 Posted January 24, 2012 Share Posted January 24, 2012 HelloI work on the wrapper for xVideo.dll can someone help me with DllCall?I try to translate this function from C++ to AutoItxVideo_STREAMS str; int count = xVideo_ChannelStreamsCount(chan); if(count<=0) return; // we exit function for(int i= 0;i<count;i++) { if(xVideo_ChannelGetStream(chan,i,&str)) then { ///do something with the stream info found; you may save the index (i) to use it later // str.name; - stream description //str.format - stream format(audio/video/subtitle } }that's what I have so farFunc _xVideo_ChannelGetStream($chan) $xVideo_STREAMS = 'uint format;str name;uint index;int enabled;' Local $aRet[17] Local $xVideo_ret_struct1 = DllStructCreate($xVideo_STREAMS) Local $aRet = DllCall($__xVideo_DLL, "BOOL", "xVideo_ChannelGetStream", "dword", $chan, "int", 0, "str*", DllStructGetPtr($xVideo_ret_struct1)) If @error Then Return SetError(@error, 0, 0) Return $aRet[0] EndFuncthat is not runningI am stuckthanksxVideo.h Link to comment Share on other sites More sharing options...
bladem2003 Posted January 26, 2012 Author Share Posted January 26, 2012 *bump* Link to comment Share on other sites More sharing options...
JohnOne Posted January 26, 2012 Share Posted January 26, 2012 Instead of "str*", DllStructGetPtr($xVideo_ret_struct1) Try "struct*", DllStructGetPtr($xVideo_ret_struct1) Or "struct", $xVideo_ret_struct1 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...
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