I want to make a class of mine accessible in JavaScript via a C# WebView-Control. Therefore I am using the WebView.AddWebAllowedObject method. However if I assign an attribute, it works fine, but if I assign the whole class to get all attributes in j...
I created an ATL COM server component (exe) some time ago. It exposed a few normal COM APIs (derived from IDispatch) and also fired a few COM events. The event mechanism was implemented using ATL IConnectionPointContainer. This COM server was initial...
I'm trying to receive and potentially send complex values through TWebBrowser (using TEmbeddedWB) with the provided external object. For example; in javascript I would try to use the exposed method with an array as a parameter:  var test = [123,...
I have found a useful billards physics library in Borland delphi for my hobby project. The code is object oriented(in Object pascal). I want to visualize it using webGL (javascript) in chrome browser.  The idea is, I should have one call to make from...
I have a computer running windows and connected with many devices, such as printer, RFID reader, etc.  I want all my apps run as HTML, CSS, Javascript, so I need to access these devices through Javascript. But I don't know if it is possible to ad...
I have followed this example to create a COM event to be used in javascript. However, I am not a fan of the final attach code?  <script for="myComComponent" event="MyFirstEvent(args)" language="javascript">     function...
I have embedded a web browser control in my c++ application. I want javascript running in the web browser control to be able to call a c++ function/method.  I have found mentions of three ways to do this:   Implement an ActiveX component that acts as...
Using WebBrowser on a Form and calling into C# from Javascript with window.external. Passing in a Javascript array of classes in the function:  var x = []; x.push(classa); x.push(classa);  window.external.CSharpFunction(x);   I can successfully get x...
I'm working with an API that has a COM-based interface. I've been using the win32ole module to instantiate the API, but one of the API functions requires a null value, and win32ole complains when a null argument is passed. I found this workar...
Consider the automation-compatible COM library in C#, given below. It follows a common COM pattern of having a visible factory coclass FooFactory implementing ICreateFoos which creates an object of type IFoo. FooFactory is the only coclass in the typ...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.