Building ATL projects - c++

I'm trying to build an ATL based project on a build server. For that I have installed latest Windows SDK, however getting an error:
"Cannot open include file: 'atlbase.h': No such file or directory".
I have checked and to my surprise SDK does not contain ATL anymore. I cannot neither refactor ATL out on this stage nor install a VS on the build server. What would be an extra set up to build ATL?

ATL / MFC is installed by VS so, if you can't install VS, perhaps you could install it somewhere then take the headers, libs and DLLs and install them manually on your build server. Bit messy but it should work.

I had the same problem lately. If you're using an Express edition of Microsoft Visual Studio, you can't use ATL. I know it sounds illogical, but I guess there's no way of doing that. Some MSDN guy told me that in the license file of Microsoft Visual Studio Express Editions, there's a line about that. ATL is not free, so you have to buy it, or use Pro editions of Microsoft Visual Studio.
In Microsoft Driver Dev Kit, there's ATL classes, but they give weird linking errors. So, I guess you have to use Microsoft Visual Studio 2008 Professional, or 2010 Professional.
I can help you more if there are more errors/problems about setting up ATL I guess.
Take care.

Related

Installing a library in Visual Studio 2019 C++

I am trying to install this library in Visual Studio 2019
https://github.com/alex-87/HyperGraphLib
The instructions only show how to do so for linux/unix I was curious how I would do this for windows. I can download the .zip but where would I extract this and how do I get Visual Studio to install the library.
Visual Studio can directly open a CMake project (CMakelists.txt indicates that).
That said, very often projects are in theory "cross platform" but in practise they don't work in Windows because no one has bothered to test them there (mostly because an alternative would already exist or the actual developers do not care much). Projects that have better chances to work with Windows usually come also with a .vcxproj/.sln.
click on project, properties, link editors , input and add the dependencies (with keyboards only )

Compile Visual Studio projects without having Visual Studio installed?

Is there a way to compile a Visual Studio 2012 project without having the VS installed? I need to compile C++ stuff for windows quite rarely and buying the product is not justified as there's no profit (community projects). In most of the cases the project and solution files will be available. If there's a way to compile the code with SDK, could you please share an example?
Thanks!
You can download visual studio express for free. Whenever you build a solution, the bin folder in your project folder will contain the compiled code.
http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
EDITED: (per MS website)
Visual Studio Express 2013 for Windows Desktop enables the creation of desktop apps in C#, Visual Basic, and C++, and supports Windows Presentation Foundation (WPF), Windows Forms, and Win32.
Sign in to Visual Studio within 30 days with your Microsoft account to synchronize your settings across multiple machines and register your product.
Your best bet is likely going to be using msbuild which will allow you to build a solution or project without having Visual Studio installed.
If you have the free version VC++ Express installed (and thus the compiler toolchain), you might find it more interesting to use Eclipse CDT as IDE on top. At least the newer versions (I think since Helios) support using the native MS toolchain. You can import from native
VS projects also.
Eclipse is the more powerful IDE IMHO, and will additionally support other toolchains (either cross compiling, or Windows alternatives as MinGw GCC).

Compile ATL project with only Windows SDK 7.1

I have a project which needs to be compiled. It is compiled on our build server which I have only installed Windows SDK 7.1 on. I would like to not have to install an actual Visual Studio on this machine, but am getting an error "cannot find atlstr.h" file which I've just read is part of ATL which is part of Visual Studio.
Is there any way I can get this to compile without installing Visual Studio on the build server?
ATL is now freely available as a part of Windows Driver Kit: http://msdn.microsoft.com/en-us/windows/hardware/gg487438.aspx
No. ATL is a fundamental part of the non-free versions of MSVC.

How do I configure Qt to work with Visual Studio 2010?

I downloaded open-source version of Qt from the site and have compiled it with nmake, but I'm having trouble using it in my projects. It seems that Visual Studio can't find the Qt headers, even though I added the paths to my PATH, INCLUDE, and LIB variables. I tried installing the Qt Visual Studio add-in but it only supports Visual Studio 2008.
Has anyone gotten Qt to work with Visual Studio 2010? Or do I have to wait until Qt 4.7 is officially released for Visual Studio 2010 support?
Either download the pre-built vs2008 package or build it using cmake's vs2008 profile and then open the resulting .sln file in vs2010 and let it do the conversion.
edit - annoying feature so far is that the vs plugin doesn't support vs2010 which makes it essentially impossible to use for desktop app development.
Traditionally VS support was part of the paid licences, with the OS package you only get mingw support. Things are changing, but might have some rough edges for a while.
OTOH, mingw has a HUGE advantage: deployment. You don't have to chase around the vcredist_x86 files and all the associated voodoo. Just be sure to include all the .DLLs you use and that's it.
Also, there's QtCreator. It's not as featureful or omniscient as VS; but it does feel a lot nicer and easier to use. It takes off all the tedious work of nmake, and embeds the UI editors. And it's cross platform!
honestly, for me VS can drop dead this minute and i won't miss it.
Qt V4.8.0 contains prebuilt binaries for Visual Studio 2010 so you don't need to build manually anymore:
http://qt.nokia.com/downloads/windows-cpp-vs2010

How to add WTL and ATL to visual studio c++ express 2008

I start using the visual studio c++ express 2008 at home but there is no ATL in it.
How can I add ATL to visual studio c++ express 2008?
ATL 7.1 is now part of the Windows Driver Kit.
ATL was only included in older versions of the SDK. Recent versions of ATL share much code with MFC and are only available with the real versions of Visual Studio, i.e. not with VS Express.
So: to use ATL and/or MFC, you need to buy the Professional version of Visual Studio. If you are content with old versions of ATL, you can download old versions of the platform SDK from the Microsoft website.
http://codegem.org/2008/09/wtl-wizard-for-visual-studio-2008
In his modified script, replace VisualStudio to VCExpress.
You'll need to download the platform SDK and muck around with some dependencies to get ATL.
There might be some more "unsavory" ways to get MFC ;) if you catch my drift. Also many institutions have educational VS licenses which are free.
You just need to install Windows Platform SDK as described here