I am writing a simle extension on Google Chrome. But chrome's extension API is not powerfull enough for my extension because i need file io operations for local files. That's why I need to call functions from dll which i write from javascript.

<script type='text/javascript' language='javascript'>
var obj = new ActiveXObject("plugin_proxychanger.dll");
var vResult = obj.plugin_header_class.plugin_header_func_read(3);

I get this error on every browser:
ReferenceError: ActiveXObject is not defined

I research it on google and some users told me that i need to write a COM dll. But my dll is .net(2.0) because I don't know how to create a COM dll with Visual Studio 2010.

Or is there any way to call functions from COM dll ? Or what should I do now ?

Thank you!

ActiveXObject is Microsoft proprietary. Google suggests localStorage and Web SQL. The W3C recommends IndexedDB rather than Web SQL (SQLite), Chrome supports it through webkitIndexedDB. Hope this helps.