ocx and webapp

I use with success a ocx for xojo desktop app.
But if I try to use with xojo web there is immediatly problem. I only added it in app and if I try to compile it show me: “Can’t find a type with this name OleContainer”. and other errors.
It could be that I can not use this ocx in a webapp?

I use with success a ocx for xojo desktop app.
But if I try to use with xojo web there is immediatly problem. I only added it in app and if I try to compile it show me: “Can’t find a type with this name OleContainer”. and other errors.
It could be that I can not use this ocx in a webapp?

web apps are basically console apps
if the ocx won’t work in a console app then it wont work in a web app either

Hi,

Events will not work as there is no window to receive events.

Use AddHandler to connect events to a method. You do not need a window.

ok, I try!

Sadly the problem here is that the component is a ocx (but it has no UI), the classes that Xojo build from the ocx is for an oleContainer. An oleObject could be enough, but then you have to register the events for the class from the library.
that’s to say that there is no Open event where the Xojo built open event calls this kind of event subscribe.

Maybe a _webOleContainer could work?
However this is not a web page component but a “app” component (it talks with the hardware, more or less like an http component)