robd Posted February 15, 2009 Share Posted February 15, 2009 First of all I'd like to say hello to community and thanks for such great thing as AutoIT I'm creating p2p application and using GnuDNA library for p2p communication and etc. There is one function: SetSharedDirs(String Arrary* DirPaths) which I should to call to share my folder Dim $shared[1] = [@ScriptDir & "\Shared"] $oDnaCore = ObjCreate("GnucDNA.Core") $oDnaShare = $oDnaCore.getIShare $oDnaShare.SetSharedDirs($share) but always getting this error from error handler: We intercepted a COM Error! Number is: 80020005 Windescription: Type mismatch also I dig source code of this library and found current funtion: 607 void CComShare::SetSharedDirs(VARIANT* pDirPaths) 608 { 609 AFX_MANAGE_STATE(AfxGetStaticModuleState()); 610 611 if((pDirPaths->vt & VT_ARRAY) == 0) ... How to solve this problem? Will be very appreciate for help, thanks Link to comment Share on other sites More sharing options...
robd Posted February 17, 2009 Author Share Posted February 17, 2009 Somebody should know this. I'm trying two days long, but can find solution... Please, I need help. Link to comment Share on other sites More sharing options...
robd Posted February 20, 2009 Author Share Posted February 20, 2009 Hi again, seems I'm not only one with such problems... not deep search gave me 3 more topics like mine:http://www.autoitscript.com/forum/index.php?showtopic=34686http://www.autoitscript.com/forum/index.php?showtopic=47123http://www.autoitscript.com/forum/index.ph...mode=linearplusso, maybe it's time to define this problem as bug and fix it ? Link to comment Share on other sites More sharing options...
Valik Posted February 21, 2009 Share Posted February 21, 2009 Hi again, seems I'm not only one with such problems... not deep search gave me 3 more topics like mine:http://www.autoitscript.com/forum/index.php?showtopic=34686http://www.autoitscript.com/forum/index.php?showtopic=47123http://www.autoitscript.com/forum/index.ph...mode=linearplusso, maybe it's time to define this problem as bug and fix it ?Yes, because clearly things that don't work how you expect are bugs unconditionally. It couldn't be that it's just not supported, could it? Link to comment Share on other sites More sharing options...
DaleHohm Posted February 21, 2009 Share Posted February 21, 2009 @robd - You obviously know that Type Mismatch is a very generic error... right?Suggest you Google GnucDNA SetSharedDirs Type mismatchYour issue is not unique to AutoIt:http://www.planet-source-code.com/URLSEO/v...rue/Posting.htmSuggest you try to get a working example on VBScript first and then you may be able to convert it to AutoIt.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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