Trouble with using ActiveX control in .net windows application
Posted
by alex dee
on Stack Overflow
See other posts from Stack Overflow
or by alex dee
Published on 2010-04-10T11:16:30Z
Indexed on
2010/04/10
11:23 UTC
Read the original article
Hit count: 357
C#, visual studio 2005
I have several 3rd party activeX control. I need to use them in my .net windows application. These controls are graphical.
I created a wrapper with aximp.exe for them. But it seems that something wrong. When I call some methods of wrapped activeX control ==> targetinvocativeexception occured. Or visual studio writes "you are attempting to write or read protected memory".
I know that something wrong. But what is exactly wrong - i don't know.
I find out about method CreateControl() or STAthread attribute. but it doesn't help me.
What is the common problem and common solution for my type of problem ? These activex control from big and trusted company, other developers work with them.
© Stack Overflow or respective owner