471,577 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,577 software developers and data experts.

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 16248
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 leo001 | last post: by
reply views Thread by lumer26 | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.