473,405 Members | 2,354 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,405 software developers and data experts.

Using COM Objects in .NET

I am building an application that will fix problems we experience with the
SMS Advanced Client. I would like to be able to force a Machine Policy
Update as you can through the SMS Advanced Client console. The only
information I can find indicates that CPAppletLib.dll exposes some of this
functionality, but it doesn't really describe how to do this. I also have no
experience with using COM objects etc in .NET. Can anyone point me in the
right direction? Any help is appreciated.
Jul 17 '06 #1
2 4680
I do not know the specifics of the COM object you are trying to use,
but in order to use it from .NET you have to add a reference to the
project. Right click on the project node->Add reference->Com
tab->Browse and select your file.

This will create a managed wrapper that you can use in order to call
your component as if it was a managed resource.

Regards,
Tasos

Primera wrote:
I am building an application that will fix problems we experience with the
SMS Advanced Client. I would like to be able to force a Machine Policy
Update as you can through the SMS Advanced Client console. The only
information I can find indicates that CPAppletLib.dll exposes some of this
functionality, but it doesn't really describe how to do this. I also have no
experience with using COM objects etc in .NET. Can anyone point me in the
right direction? Any help is appreciated.
Jul 17 '06 #2
Tasos Vogiatzoglou <tv*****@gmail.comwrote:
I do not know the specifics of the COM object you are trying to use,
but in order to use it from .NET you have to add a reference to the
project. Right click on the project node->Add reference->Com
tab->Browse and select your file.

This will create a managed wrapper that you can use in order to call
your component as if it was a managed resource.
Indeed ... Google up COM Interop. Just keep in mind that it is useful to
understand how COM actually works to get the best results. Consider consuming
IDisposable at every opportunity.

--
Thomas T. Veldhouse
Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1

Jul 17 '06 #3

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

Similar topics

5
by: R. Rajesh Jeba Anbiah | last post by:
I could see that it is possible to have hash array using objects like var hash = {"a" : "1", "b" : "2"}; Couldn't still findout how to declare hash array in Array. var arr = new Array("a" : "1",...
6
by: zeroWePutTheSpamIntoTheBintype | last post by:
I'm having trouble using Braid (my user-defined type) objects returned from functions. I've got: Braid descend_n(int n, int no_strings) This function needs to use void left_multiply(Braid&b)....
2
by: Brett | last post by:
In Coldfusion MX 6.1, they offer a feature named CFC or Coldfusion components. These are basically classes that offer inheritence. I put database calls, calculations, constants, etc, into these...
2
by: wrytat | last post by:
I have a web application. There's 1 part whereby I'll show a list of items (order). I did this by using classes and objects. I defined my own classes (called orderitem and ordermanager), and my...
2
by: http://www.visual-basic-data-mining.net/forum | last post by:
I have 3 records in a text file called cvsAcctInfo.txt. I would like to read these three lines and put them into an array which happens to be a defined object. When I do this, it creates an array...
2
by: Fish | last post by:
I have been researching the correct way to organize my solution so that it makes best use of VB.NET inherent ability to manage resources such as objects. My solution contains 2 projects and the...
13
by: Andy Baxter | last post by:
Can anyone recommend a good online guide to using objects in javascript? The book I bought (DHTML Utopia) suggests using objects to keep the code clean and stop namespace clashes between different...
3
by: lars.uffmann | last post by:
Hi everyone! I am debugging a big piece of code on the search for memory leaks, using g++ under suse 9.3. Since I'm trying to eliminate ALL memory leaks, I now stumbled upon a class foo that is...
3
by: ananth | last post by:
Hi all, i need to clear multiple text box using a single button click how can it be done using objects
11
by: Josetta | last post by:
I searched around a little bit, but didn't come up with the answer to this question, but somewhere in the back of my mind, I think this can be done... Let's say we have two different company...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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
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,...
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.