473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Server.createObject for desktop application

In my ASP.NET application I'm creating com object like this:
Server.createObject("Namespace1.Application1")

But now, I need to create this com object in desktop application where
there's no Server object.

How can I do this?

(Namespace1.Application1 ob=new Namespace1.Application1() doesn't work )
Nov 16 '05 #1
2 1912
If you are using C#, add a refrence to Microsoft.VisualBasic Runtime
library (Microsoft.VisualBasic.dll) and use the
Microsoft.VisualBasic.Interaction.CreateObject() method.

See:
http://msdn.microsoft.com/library/de...eateObject.asp

Hope this helps.

Shariq Khan
sh****@shariqkhan.com

"mamin" <ma***@autograf.pl> wrote in message
news:cp**********@nemesis.news.tpi.pl...
In my ASP.NET application I'm creating com object like this:
Server.createObject("Namespace1.Application1")

But now, I need to create this com object in desktop application where
there's no Server object.

How can I do this?

(Namespace1.Application1 ob=new Namespace1.Application1() doesn't work )

Nov 16 '05 #2
Thanks, that was exactly, what I was looking for;)
Użytkownik "Shariq Khan" <sh****@shariqkhan.com> napisał w wiadomo¶ci
news:Oj**************@TK2MSFTNGP10.phx.gbl...
If you are using C#, add a refrence to Microsoft.VisualBasic Runtime
library (Microsoft.VisualBasic.dll) and use the
Microsoft.VisualBasic.Interaction.CreateObject() method.

See:
http://msdn.microsoft.com/library/de...us/vblr7/html/
vafctCreateObject.asp
Hope this helps.

Shariq Khan
sh****@shariqkhan.com

"mamin" <ma***@autograf.pl> wrote in message
news:cp**********@nemesis.news.tpi.pl...
In my ASP.NET application I'm creating com object like this:
Server.createObject("Namespace1.Application1")

But now, I need to create this com object in desktop application where
there's no Server object.

How can I do this?

(Namespace1.Application1 ob=new Namespace1.Application1() doesn't ork )


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Varkey | last post by:
Dear friends, I am new to .NET based app development and have a pretty elementary query, I suppose... I have caught up with the basics of .NET pretty well, thanks to some Microsoft VB/ASP...
4
by: Jack | last post by:
Hello, I have an application on my desktop where I have hardcoded the connection string. Now I need to move the application to our test webserver. Here I need to use the server.mappath method to...
2
by: Steve H | last post by:
I have created an object in c# that produces script for a legacy ASP page. Next, I created a setup project and installed it on the server. When I run a page that accesses it from the server, I get...
5
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
7
by: Paul Aspinall | last post by:
Hi I have an application which runs on a desktop. I want to synchronise the DB with a PDA app, which also uses SQL Server 2005 (mobile and express). I believe that I will need to write my own...
0
by: Jason | last post by:
I am attempting to have an asp page call a batch file. I had it working, I was high on life and then I decided to log off the server. Once I did, the code would no longer work. When I logged back...
1
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
2
AnuSumesh
by: AnuSumesh | last post by:
Hi I m new to ASP 'n' this forum also. I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP. I have a no of links to be...
2
by: Teja | last post by:
Hi All, I have a Python COM server. I need to deploy it on various sytems. When I run the COM server from python its showing an output " Registered : sample.lib" If I try to use the COM obj...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.