Combine third party DLL into a standalone EXE

I have a third party DLL which I am using to write a program in C++. How do I setup Visual Studio 2005 to create a single EXE (MFC, not .Net), rather than having the DLL as a separate component?

Are there specific requirements of the thrid party DLL to enable it?
ascendinternetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

alb66Commented:
I think it is no possible. You may have a single setup.exe (at minimimal a self-extracting zip)
0
ascendinternetAuthor Commented:
The third party supplier has offered to do "a 'static' version of the dll, exporting functions through a header file" - will this enable us to create a standalone EXE? If so, what would I need to do in Visual Studio 2005 to make it generate a single EXE?
0
alb66Commented:
Yes, you a need a static library. Be sure it was compiled with Visual Studio 2005: I'm not sure if you can link a library developed with VS2003 or VS2008.
If you have the static library you must simply add it as input for the linker.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

ascendinternetAuthor Commented:
>If you have the static library you must simply add it as input for the linker.
Sorry, but it's a long time since I've seriously worked with C++ - can you tell me how I do that please!
0
alb66Commented:
I've VS2003, but it should be the same in VS2005...

1. Open project properties dialog
2. Select "Linker" item
3. Select "Input" sub item
4. add the .lib file (the static library) to the "additional dependencies" field
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itsmeandnobodyelseCommented:
>>>> can you tell me how I do that please!
If you have a static library you simply can add it to the project tree (right-click the project in the tree, add existing item ..., locate your library).

This and the method alb66 had recommended were equivalent.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.