Csharp Server.CreateObj

  • Thread starter Thread starter Dragon
  • Start date Start date
D

Dragon

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# ?
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top