469,306 Members | 2,485 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated

i call webpage from my windows application,the following error will occur,so i include to dlls namely SHDocVw.dll and AxSHDocVw.dll,

ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.

and also i include STAthread in my main method ,any how i will get the following error, the type or namespace name 'STAThread' could not be found (are you missing a using directive or an assembly reference?)

any body [please help me
Jun 27 '07 #1
3 16085
pbmods
5,821 Expert 4TB
Moving to the Windows forum....
Jun 27 '07 #2
epots9
1,351 Expert 1GB
some1 with the same problem:http://www.thescripts.com/forum/thread158763.html

good luck
Jun 27 '07 #3
bartonc
6,596 Expert 4TB
Looks like a .NET question. I'll move it there.

Sorry, dot netters, if I'm wrong about this.
Jun 28 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by wang xiaoyu | last post: by
2 posts views Thread by Fie Fie Niles | last post: by
1 post views Thread by Anand Kale | last post: by
3 posts views Thread by Jeffery Franzen | last post: by
3 posts views Thread by Weston Fryatt | last post: by
7 posts views Thread by Jarod_24 | last post: by
1 post views Thread by Jayender | last post: by
6 posts views Thread by Budhi Saputra Prasetya | last post: by
6 posts views Thread by hufaunder | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.