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

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 1118
"=?Utf-8?B?TWFubnkgU2lsdmE=?=" <Ma********@nospam.nospam> wrote in
news:3A**********************************@microsof t.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\interopdllname.dll 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
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...
4
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...
8
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...
4
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...
3
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...
1
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...
1
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...
1
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...
1
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. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.