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.