473,706 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Csharp Server.CreateOb j

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

However, in C#
Object obj = Server.CreateOb ject("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 1563
"Dragon" <ta*****@hotmai l.com> wrote in message
news:u3******** ******@TK2MSFTN GP09.phx.gbl...
In asp with VB
we can use:
set obj = Server.CreateOb ject("AAA");
obj.method(); // Then call the method of the ActiveX object

However, in C#
Object obj = Server.CreateOb ject("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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1691
by: lathe_biosas | last post by:
Hi Im trying to get the variable x from Code Composer via Matlab the following way variable=createobj(cc_target,'x') but there is and error message from matlab: ??? Processor not supported
4
5781
by: L.Peter | last post by:
Dear Group, I have the following code for vb.net *** Dim objFaxServer As New FAXCOMEXLib.FaxServer Dim collFaxIncomingJobs As FaxIncomingJobs Dim objFaxIncomingJob As FaxIncomingJob
3
2313
by: C# | last post by:
Hey all, in my MSN-Like project .. i needed a trigger that should send Notifications to all online users when a contact in their lists is online for example.. Server is in C# .. The problem is how to send this notification to the Server to send it to connected clients.. I HAVE to send this Notification from the server.. I need way to connect SQL and CSharp as SQL Trigger will send data to C# I have got some methods (ACTIVX with VB ,...
1
1485
by: Rafael Grybs | last post by:
Hi Ng, does Csharp provide something correspondig to applet-technlogy in java world? Need some information on this topic. Regards Rafael
1
1521
by: Sherif | last post by:
I'm making an application using csharp to connect to a database made by MSSql Server and i've already done backup for the database from the csharp and i need now to know how can i restore the database back by using csharp code.
2
1756
by: http://vmdd.tech.mylinuxisp.com/catalog/ | last post by:
<quote> Java vs. Csharp I attempted to write a csharp version of sockSvr (java). After months of research, I aborted the project. Csharp (and ..NET) does not have the equivalents of JDBC, beanshell (or other scripting languages), requires significant more code than the Java version, and can not run everywhere. PS: sockSvr is an innovative, extensible, easy-to-use, database-enabled, username-and-password-protected, multi-user,...
2
4550
by: news.microsoft.com | last post by:
Hi: I work in Csharp's parser files by LEX/YACC.Now I have only CSharp-lex.l and CSharp.y file,but they not have CSharp'comment Parse. this is a part of CSharp-lex.l. ..................... /***** Comments *****/ "/*" { yy_push_state(IN_COMMENT); } <IN_COMMENT>. { ; /* ignore */ } <IN_COMMENT>\n { ; /* ignore */ }
2
5361
by: blackdog | last post by:
I have Oracle client in my system, like to use csharp to communicate with Oracle server to retrieve data. I am very new in csharp, would anyone please give me an example codes or web pointer. thanks a lot.
3
3225
by: Yoavo | last post by:
Hi, I have an application that was written as ATL project which uses as a server application and has a COM class which implements IConnectionPoints interface (to fire events). I have clients applications which uses the server application (the clients are written in several languages). In the VB client I use "WithEvents" option to recieve the events. In the VC client I create a class derived from IDispEventImpl to recieve the events.
0
8781
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9286
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7911
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5939
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2502
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2095
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.