473,657 Members | 2,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

referencing an ATL project

Hi,

I'm trying to create a simple managed C++ application that will be a test
UI around a couple of ATL COM DLL projects that I have created (all with
VS2003). What I am attempting to do is bring all three projects into the
same solution and use them together. Now, to the managed project that serves
as the test UI, I added project references to the other two ATL projects.
The IDE accepted that just fine and the properties of the references point
properly to the COM DLLs, but no proxy DLLs were created, nor can I find any
way to reference the datatypes from those DLLs. I have successfully done
this using non-project references, but I was really hoping that I could use
this project to debug the COM DLLs, in which case it would be really nice to
have all projects in the same solution and be able to step in and out of the
interactions between projects.

--
Thanks in advance for your help,
Manny
Nov 17 '05 #1
1 1129
"=?Utf-8?B?TWFubnkgU2l sdmE=?=" <Ma********@nos pam.nospam> wrote in
news:3A******** *************** ***********@mic rosoft.com:
I'm trying to create a simple managed C++ application that
will be a test
UI around a couple of ATL COM DLL projects that I have created
(all with VS2003). What I am attempting to do is bring all
three projects into the same solution and use them together. Now, to the managed project that serves as the test UI, I added
project references to the other two ATL projects. The IDE
accepted that just fine and the properties of the references
point properly to the COM DLLs, but no proxy DLLs were created,
nor can I find any way to reference the datatypes from those
DLLs.


When referencing projects, we can't tell with certainty the type
of output this project creates (it may be a COM object one day and
then you can change it to an MFC app the next day). Consequently,
we don't try to do the automatic "tlbimp" that we do for
referenced COM objects.

To get the setup you want to do the following:
1) add tlbimp as a post-build event on your COM object
2) add a dependency from the managed app on the COM object's
project
3) add a /FU relativepath\in teropdllname.dl l to the managed app's
project properties

You can also replace steps 2 and 3 by simply adding references to
both the project and the DLL created by tlbimp from your managed
app.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 17 '05 #2

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

Similar topics

4
2277
by: Ron | last post by:
I need to write a custom textbox control that references an object located in the Global.asax class, but I can't compile the control into a DLL without including the reference to the project DLL that includes the Global.asax assembly. I've tried reflection, but I can't seem to make it work correctly. Does anyone have any ideas how I can make this happen? Thanks,
4
1655
by: Oenone | last post by:
Another VB6 feature that I'm missing in VB.NET is with regard to referencing projects vs. referencing DLLs. In VB6 I can reference my support library, Support.dll, and call its functions. If I encounter a problem, I may decide to add the Support project to my project group. The reference automatically updates itself to point to the Support.vbp instead of Support.dll.
8
9683
by: zino | last post by:
the same web application works fine on Visual studio 2003, but it generate the follwing error on Visual Studio 2005. Indirect reference is being made to assembly CrystalDecisions.Enterprise.PluginManager version 10.2.3600.0, which contains 'CrystalDecisions.Enterprise.InfoStore.PluginManager'. This Project references a prior version of CrystalDecisions.Enterprise.PluginManager version 10.0.3300.0. To use...
4
1678
by: TS | last post by:
in my web project's bin folder, the dll, that comes from a project reference of a class library in same solution, can't be deleted. it says it has a sharing violation. i also cannot delete the .projdata file in the class library's obj directory. This is causing updates to the class library not getting seen in the web app. i ran filemon and it just says sharing violation but i dont' know why. i'm sure by closing & re-opening VS.net it...
3
1577
by: eduwushu | last post by:
Hi there. Im developing a c# app and i have a solution with some projects: the main project which generates the executable file and some other projects which some of them im compiling generate dll's which my main project needs to run. When i compile a dll project it generates the dll it implements. Then i take that dll and put it in the directoory where my main app executable is. Then i go to my main project and add a reference in it to...
1
2364
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been installed into the GAC. We originally had this assembly without a strong-name and we were successfully using it by referencing it when it was NOT in the GAC. The assembly was built using the 1.0 framework and we were able to call it from both 1.0...
1
2117
by: Dave Anson | last post by:
What is the recommended practice for referencing assemblies in a project from other solutions? I am using Visual Studio 2005 Team System. I have several assemblies in another solution which will be referenced in my project. How should i reference them. e.g. 1) Should I get both solutions from source safe then point to the assembly
1
2364
by: Henry Stock | last post by:
I am having trouble referencing a theme in my ASP.NET project. I was following a model that allowed for multiple themes. So The theme that I have is stored in named "Base" under the App_Theme folder that is stored at the root of my project folder. It is really the one I want to use for all pages, so I thought I would reference it in the web.config file: <pages masterPageFile="~/Masters/SiteTemplate.master"
1
2838
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. Can I use a strong named DLL outside the GAC with Copy Local = false by providing a reference to the public key? If yes to above, please tell me how to reference the public key within
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
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
8718
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...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
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
6162
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...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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

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.