471,347 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Csharp Server.CreateObj

In asp with VB
we can use:
set obj = Server.CreateObject("AAA");
obj.method(); // Then call the method of the ActiveX object

However, in C#
Object obj = Server.CreateObject("AAA");
obj.method(); // Cannot compile, object does not contain definition of
method()

How to solve ???
Cannot Call ActiveX Object in C# ?
Feb 21 '06 #1
1 1501
"Dragon" <ta*****@hotmail.com> wrote in message
news:u3**************@TK2MSFTNGP09.phx.gbl...
In asp with VB
we can use:
set obj = Server.CreateObject("AAA");
obj.method(); // Then call the method of the ActiveX object

However, in C#
Object obj = Server.CreateObject("AAA");
obj.method(); // Cannot compile, object does not contain definition of
method()

How to solve ???
Cannot Call ActiveX Object in C# ?


C# is not the same as VB.

1) What are you actually trying to do?

2) What ActiveX object are you trying to use?
Feb 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by L.Peter | last post: by
1 post views Thread by Rafael Grybs | last post: by
1 post views Thread by Sherif | last post: by
2 posts views Thread by http://vmdd.tech.mylinuxisp.com/catalog/ | last post: by
2 posts views Thread by news.microsoft.com | last post: by
2 posts views Thread by blackdog | last post: by
3 posts views Thread by Yoavo | last post: by
reply views Thread by Ronak mishra | 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.