473,403 Members | 2,293 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.

Confused Beginner Trying To Migrate From COM

Hello,

First and foremost appols for what must be the n-billionth "new
programmer" post you've had but if someone could see their way clear to
helping me, or just recomending some reading I would be most grateful.

I'm trying to come forward from the age of C++ services and COM
object interfaces into the sparkling new .NET world. Could you explain
to me how I can accomplish my favourite old task of taking a service
which maintains internal variables as a result of its deliberations, and
making some of its data access methods available to other .NET
applications such as ASP webpages.

Ian

"There's no such thing as a stupid question. Only stupid people asking
them!"

Nov 16 '05 #1
2 1080
Ian,

If you want the path of least resistance, then I would recommend that
you use COM interop. If you have a service which is accessible through COM
objects, then you should just set a reference to the COM objects that you
would use on the client side (through VS.NET, or by using the TLBIMP program
to create a Runtime Callable Wrapper which can be referenced) and then make
the same calls that you would make normally.

Assuming that you don't want to change existing service code, this is
probably the best way to currently go.

Is what I detailed the way you have it setup? Are you using DCOM, or
anything of that nature?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
<ianLOSEatTHEaltispartnersCAPS.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
Hello,

First and foremost appols for what must be the n-billionth "new
programmer" post you've had but if someone could see their way clear to
helping me, or just recomending some reading I would be most grateful.

I'm trying to come forward from the age of C++ services and COM
object interfaces into the sparkling new .NET world. Could you explain
to me how I can accomplish my favourite old task of taking a service
which maintains internal variables as a result of its deliberations, and
making some of its data access methods available to other .NET
applications such as ASP webpages.

Ian

"There's no such thing as a stupid question. Only stupid people asking
them!"

Nov 16 '05 #2
All of the existing systems are working, I'm actually trying to get
the methodology down for making a new service from scratch as my old
friend the INSERT OBJECT -> COM OBJECT has vanished and I'm not entirely
au fait with how I go about my usual trickery, being:

-Make service class.
-Create static member to get ref of current running service class
-Create COM object with methods to access that static member
-Instantiate COM object from ASP, call method to get ref to running
service class.
-Call monitoring functions on service class to find out why the server
suddenly burst into flame and is playing "O Fortuna!" repeatedly.

A description of a more elegant C# solution would, of course, be
eagerly accepted. The only values I would need to extract from the
service would be Strings, at the worst long ones of XML. So no object
serialisation or by reference concerns are needed.

Thanks for your time,

Ian

Nicholas Paldino [.NET/C# MVP] wrote:
Ian,

If you want the path of least resistance, then I would recommend that
you use COM interop. If you have a service which is accessible through COM
objects, then you should just set a reference to the COM objects that you
would use on the client side (through VS.NET, or by using the TLBIMP program
to create a Runtime Callable Wrapper which can be referenced) and then make
the same calls that you would make normally.

Assuming that you don't want to change existing service code, this is
probably the best way to currently go.

Is what I detailed the way you have it setup? Are you using DCOM, or
anything of that nature?


Nov 16 '05 #3

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

Similar topics

16
by: Rod Carrol | last post by:
Hello all, As a beginner I've been exeperiencing lots of errors while building my website, (I'm currently attempting to implement a member login/registration piece for my site using mySQL and...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
12
by: Blaze | last post by:
I am doing the first walk through on the Visual Studio .Net walkthrough book to learn a little about programming. I am having issues with the first tutorial not running correctly. It seems that...
6
by: Alex | last post by:
Hello I am intersting in developing and my background is VBA used in Excel and a brief intro to Java. I am interested in learning beyond VB and feel that C++ would be a very good language to...
36
by: utab | last post by:
Dear, I have experince in C( numerical projects, like engineering problems, scientific applications) I have the basic notion of C++ also, I have read Accelerated C++ until Chapter 7, however it...
28
by: angeluslii | last post by:
Which IDE would you recommend for a beginner doing C programming possibly one which would work with Windows Vista and does syntax highlighting?
6
by: Tim Zottberg | last post by:
Hi newsgroup, I am trying to migrate from VB6 to VB.Net. I am having serious understanding problems about why VB.Net 2005 Express doesn't do what I want. I have a C# code, and I was trying to...
3
by: ventspacey | last post by:
Alright, I am a definate nube at mysql and I have a problem that I just cannot figure out. I am trying to integrate a CMS database 'forum' data to another CMS database forum. I pretty much have all...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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...

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.