473,394 Members | 1,699 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,394 software developers and data experts.

Using .NET dll as COM component in MFC MSI Application

Hello,
I have written a class library (dll) using csharp and VS2005.
Now, I want to use this class as COM in my MFC application.
I'm looking for a step-by-step information on how to do it, consiting the
two parts:
1. Exporting a class library as COM component.
2. Using the COM component in my MFC MDI application.

Thanks in advance.
Janiv Ratson.
Aug 14 '06 #1
3 1639
The .NET way to do this is to create a COM Callable Wrapper:
http://msdn2.microsoft.com/en-us/library/f07c8z1c.aspx

Aug 14 '06 #2
Do u have more specific solution.
I canno tunderstand it very well.
Thanks again,
Janiv Ratson.

"Reg Edit" <go**********@onyxdial.plus.comwrote in message
news:11*********************@74g2000cwt.googlegrou ps.com...
The .NET way to do this is to create a COM Callable Wrapper:
http://msdn2.microsoft.com/en-us/library/f07c8z1c.aspx

Aug 14 '06 #3
I too, am looking for a really straight forward way to do this. I have
visited several sights that talked about the process from setting
configuration options, using REGASM with the TLB option, adding a
strong name attribute to the AssemblyInfo cs or vb file, etc... None of
the seemed to work for me. When I try to use the library in VBScript,
it doesn't work. Keep getting complaints about file not found and such.
There doesn't seem to be any clear cut, step by step instructions for
this anywhere.
Janiv Ratson wrote:
Do u have more specific solution.
I canno tunderstand it very well.
Thanks again,
Janiv Ratson.

"Reg Edit" <go**********@onyxdial.plus.comwrote in message
news:11*********************@74g2000cwt.googlegrou ps.com...
The .NET way to do this is to create a COM Callable Wrapper:
http://msdn2.microsoft.com/en-us/library/f07c8z1c.aspx
Aug 29 '06 #4

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

Similar topics

6
by: Mario T. Lanza | last post by:
Greetings, I don't know about you guys but on many occasions I've asked myself whether or not someone else has solved a particular programming issue -- whether or not they developed a clever...
0
by: Horia Tudosie | last post by:
Using Visual Studio 2003 This is to report a series of bugs regarding the FlagsAttribute and (independently) the usage of interfaces in Web applications. Let’s declare xColors type like: ...
6
by: Amitava Sengupta | last post by:
Is there any issue in using COM component in web applications. The problem I'm facing are 1. Though the dll is using non-static member variables which are being instantiated on each call,...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
4
by: tsutton | last post by:
I developed my application on my PC using a referenced Control component (which was analysed by Aximp.exe and give me a dll). It runs fine on my PC but when I place it on the network and run it...
2
by: Phuff | last post by:
I have an application that should run in the system tray while open. It is supposed to be open at all times and I need it to dissapear when the "X" button is pushed on the form...but without...
2
by: dchadha | last post by:
Hi, I need to convert HTML (online or offline) to PDF in C# application. In addition I want to merge PDF documents also on the fly. I am looking for C# / VB.NET code or a .NET component which...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
2
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I have installed my windows application that uses XpdfViewer (a COM Component for view Pdfs) using ClickOnce. But I get this error:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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
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...

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.