G
G
gray422012-04-06 08:57:20
Microsoft Silverlight
gray42, 2012-04-06 08:57:20

Unable to connect Com object to Silverlight project:

Good morning.
I am developing a program for reading pictures from a webcam and processing them using some com-object.
The following questions arose:
1) Unfortunately, it is not possible to connect the com-object in the usual way,
i. Add reference->Com, there is simply no com tab.
2) if I connect the com-object in this way:
using (dynamic im = AutomationFactory.CreateObject("мой объект"))
then I can use the functions of the object, but I cannot pull out the types.
Those. I can not declare a variable with a type declared in the object itself.
Can someone suggest how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
amirul, 2012-04-07
@amirul

If the server has tlb (it would still be needed when connecting the reference to the project), then tlbimp will help. If there is no tlb (neither separate nor built-in), then here you can create types only in runtime (you can use ProgID instead of CLSID , if any), and then activate these types

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question