473,405 Members | 2,310 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.

Where's my dll after I build?

I created a managed C++ dll project. I wrote the code and compiled it and
everything builds fine. The problem is no prj.dll is generated in the
output directories. It does generate a prj.dll.intermediate.manifest that's
1k and all the obj files. How do I get a dll? What I ended up doing was
creating a quick C# project and, a reference to the C++ project and setting
copy local to true. Then I went to the C# output folder and there it was.

My question is how do I generate the dll without having to build another
project and create a reference to it? There must be a way.

Thanks in advance,
jim
Oct 16 '06 #1
5 1551
I created a managed C++ dll project. I wrote the code and compiled it and
everything builds fine. The problem is no prj.dll is generated in the
output directories. It does generate a prj.dll.intermediate.manifest that's
1k and all the obj files. How do I get a dll? What I ended up doing was
creating a quick C# project and, a reference to the C++ project and setting
copy local to true. Then I went to the C# output folder and there it was.

My question is how do I generate the dll without having to build another
project and create a reference to it? There must be a way.
Your DLL is built.
It is just not in the project output folder.
Check the output folder on solution level. That will contain the main ouput
of your DLL project. this is normal.

--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Oct 16 '06 #2
"Bruno van Dooren [MVP VC++]" <br**********************@hotmail.comwrote
in message news:9F**********************************@microsof t.com...
>I created a managed C++ dll project. I wrote the code and compiled it
and
everything builds fine. The problem is no prj.dll is generated in the
output directories. It does generate a prj.dll.intermediate.manifest
that's
1k and all the obj files. How do I get a dll? What I ended up doing was
creating a quick C# project and, a reference to the C++ project and
setting
copy local to true. Then I went to the C# output folder and there it
was.

My question is how do I generate the dll without having to build another
project and create a reference to it? There must be a way.

Your DLL is built.
It is just not in the project output folder.
Check the output folder on solution level. That will contain the main
ouput
of your DLL project. this is normal.

--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Thanks,
I didn't know that solutions had output. You are right, it is there. Where
are the solution output folders set? I can't find them (VS 2005). Kind of
silly since none of the other project types work like that. Is that true
for all C++ projects now. I haven't done that much with windows C++ in VS
2005.

jim
Oct 16 '06 #3
>>My question is how do I generate the dll without having to build another
>>project and create a reference to it? There must be a way.

Your DLL is built.
It is just not in the project output folder.
Check the output folder on solution level. That will contain the main
ouput
of your DLL project. this is normal.

Thanks,
I didn't know that solutions had output. You are right, it is there.
Where are the solution output folders set? I can't find them (VS 2005).
Kind of silly since none of the other project types work like that. Is
that true for all C++ projects now. I haven't done that much with windows
C++ in VS 2005.
SolutionDir is a configuration value. it is simply the path of your solution
file.
If you look at your project properties under general, you'll see that the
output dir is set to $(SolutionDir)$(ConfigurationName).
This means that the output goes to the solution output dirs.

The reason for this is that your different projects then all put their
output in the same place.
This way, if you have an app that depends upon several other dll projects,
all dlls are where the app can find them.
Otherwise you'd have to create post-build steps to copy those dlls around.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Oct 16 '06 #4
"Bruno van Dooren [MVP VC++]" <br**********************@hotmail.comwrote
in message news:uJ**************@TK2MSFTNGP03.phx.gbl...
>>>My question is how do I generate the dll without having to build
another
project and create a reference to it? There must be a way.

Your DLL is built.
It is just not in the project output folder.
Check the output folder on solution level. That will contain the main
ouput
of your DLL project. this is normal.

Thanks,
I didn't know that solutions had output. You are right, it is there.
Where are the solution output folders set? I can't find them (VS 2005).
Kind of silly since none of the other project types work like that. Is
that true for all C++ projects now. I haven't done that much with
windows C++ in VS 2005.

SolutionDir is a configuration value. it is simply the path of your
solution file.
If you look at your project properties under general, you'll see that the
output dir is set to $(SolutionDir)$(ConfigurationName).
This means that the output goes to the solution output dirs.

The reason for this is that your different projects then all put their
output in the same place.
This way, if you have an app that depends upon several other dll projects,
all dlls are where the app can find them.
Otherwise you'd have to create post-build steps to copy those dlls around.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Thanks again. C# projects don't work like that. They work the way the old
C++ projects used to. They have a bin directory under PROJECT_DIR and a
debug and release under that. references from other projects get copied
into the main applications debug or release dir when copy local is set to
true. By default when you add a reference to a project copy local is set to
true. So far C++ projects are the only ones I have found that use the
solution's release or debug folders. Personally, I don't like it. I think
everything should operate the same, VB.NET, C#.NET, even ASP.NET all default
to output folders in their respective project folders. Projects can be part
of multiple solutions and the copy local option takes care of getting the
app access to the correct referenced dll.

I just noticed that the output directory in the C++ project actually says
SolutionDir\ConfigurationName. I changed it to ProjectDir to make it
consistent with the other projects in the solution. I don't mind it so much
now that I see the output dir can be changed. I missed this before because
the intermediate files were all in the prom\debug folders. Sorry for the
rant.

Thanks again,
jim
Oct 17 '06 #5
Hi Jim,
>Thanks again. C# projects don't work like that. They work the way
the old C++ projects used to. ...
So far C++ projects are the only ones I have found that use the
solution's release or debug folders. Personally, I don't like it.
I think everything should operate the same, VB.NET, C#.NET,
even ASP.NET all default to output folders in their respective
project folders.
I am afraid the VC++ project has its own directory layout, this setting is
by default since the VC product series. The bin directory is used in the
non-VC .NET language project types as you mentioned.

I suggest you can submit this feedback to our product feedback center, our
development team may communicate with you directly on the issue there:

http://connect.microsoft.com/site/si...spx?SiteID=210
Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 17 '06 #6

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

Similar topics

3
by: Himanshu Garg | last post by:
Hello, I am trying to pinpoint an apparent bug in HTML::Parser. The encoding of the text seems to change incorrectly if the locale isn't set properly. However Parser.pm in the directory...
7
by: rodrigostrauss | last post by:
I'm using Visual Studio 2005 Professional, and I didn't find the STL.NET. This code: #include "stdafx.h" #include <vector> using namespace System; using namespace std; int...
11
by: Kenneth P | last post by:
Hi, This link works but when you try to download IE WebControls you'll get to page that doesn't exist. http://msdn.microsoft.com/workshop/webcontrols/overview/overview.asp Anyone who could...
1
by: Locke | last post by:
I know I'm doing something wrong, and it's something simple but I can't figure it out. I'm new at this and it's only a little more than a hobby so please bear with me. I'm writing a VB shell...
5
by: ThunderMusic | last post by:
Hi, I'd need to find (or develop) a control of a map (worldwide if possible) where a user can click and drag to select an area by distance from the click point or using a square area (user's...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
I need to build a sql string that looks like this: strSql = "Select * from tbl1 Where x In (123,456,789)" or strSql = "Select * from tbl1 Where x In (123,456,789,527,914)" The numbers...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
3
by: =?Utf-8?B?Rmxhc2hwcm8=?= | last post by:
i have googled this question but cannot find an answer. i'm running windows vista and i'm using Visual Basic Express 2008. i know the build event button SHOULD be in under the compile tag but i...
6
by: Plissskin | last post by:
I need to create an "ad-hoc" filtering page in a web app we are building. The page would display a number of drop down lists, text boxes, and radio lists and allow the user to select (enter) some...
15
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
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,...

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.