473,609 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1087
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.co m
<ianLOSEatTHEal tispartnersCAPS .com> wrote in message
news:Ok******** ******@TK2MSFTN GP12.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
2195
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 PHP) I've read that PHP is secure in that it hides lots of code from hackers and people trying to snoop around on the web site running the PHP scripts - however, one thing I've noticed is that whenever I get a script error, (for example, failure...
44
4194
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 must be many know the answer here. thanks
12
1877
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 the build fails with what the book tells me to do. Specifically, I am doing this: public authors1 GetAuthors() { authors1 authors = new Authors1();
6
1562
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 get to know and give a lot of flexibility (if not tough to learn). I would like some advice on the merits of learning C++ versus C# or Visual Basic or Java for that matter.
36
2507
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 seems that it discusses the std and the other part of the language with your own abstractions. Is that better to read a book first on the basic concepts of C++ language (but not the C part) that gives the basics as if the reader is a beginner...
28
2270
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
1160
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 convert it to VB. The first thing that made (and still makes) me crazy is that seemingly I cannot tell VB to use "sub main" as the start procedure. If anybody knows how then that would make me really happy.
3
1288
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 the variable lined up, I just need to do one thing... Alright, say I have a two table example1 and example 2 I need to migrate the data from example 2 table to example 1 table but I need to match the data up alongside the data that currently...
22
18130
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 programmer and looking for a starting point in regards to practical projects to work on. What are some projects that beginner programmers usually start with? Please list a few that would be good for a beginner PHP programmer to
0
8091
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8579
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
8555
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8232
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7024
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
6064
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...
1
2540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1403
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.