User forums > Help

What does it take to compile a ^%$ MFC app?

<< < (2/4) > >>

batagy:
Hi all,

Firstly I want to say thank you for this really great IDE. It greatly works with the free Visual C++ Toolkit 2003 command line compiler on Windows. Also it is worth to mention that it supports importing MS Visual Studio project files.

Now my question is related with MFC libraries and headers. If I would compile an MFC dependent source with the free Visual C++ Toolkit 2003, would be it possible somehow, or is it totally impossible?

tiwag writes above, that MFC sources and libraries are only supplied with the full Visual Studio. But my question, can those MFC libraries and headers be downloaded somewhere from the internet legally, and simply put them to the inc and libs folders?

rickg22:
Maybe it's the "Microsoft Platform SDK" you're looking for? I downloaded the latest version. Couldn't install it due to Windows problems  :roll:, so I can't really tell if it includes MFC's. It includes the famous windows.h, however.

tiwag:

--- Quote from: batagy ---...But my question, can those MFC libraries and headers be downloaded somewhere from the internet legally, and simply put them to the inc and libs folders?
--- End quote ---

sorry, no they are copyright protected by M$, you get a license if you buy VisualC++,

technically spoken, there are a lot of download possibilities like edonkey and other p2p nets. but it's illegal.

batagy:

--- Quote from: rickg22 ---Maybe it's the "Microsoft Platform SDK" you're looking for? I downloaded the latest version. Couldn't install it due to Windows problems  :roll:, so I can't really tell if it includes MFC's. It includes the famous windows.h, however.
--- End quote ---

Thanks for the answer, but Microsoft Platfrom SDK and .NET Framework SDK are also installed on my system. Without them the Visual C++ Toolkit 2003 doesn't work. It's sure that they don't contain MFC's by default.
The Platform SDK was installed successfully for me, I downloaded the complete package, and installed locally, not through the internet. I don't know why it doesn't work for you.

Back to MFC. Basically I would compile gammu (www.gammu.net) as a static library. One of the source file contains a reference to afxres.h, which is as far as I know (because I cannot code a single word  :oops: ) is an MFC thing. I found it on internet, that if the source doesn't contain MFC's, in that case afxres.h can be changed to winresrc.h without any problem. So I changed to it to winresrc.h, but in this case the compiling fails, so it seems there are some MFC dependent function.

batagy:

--- Quote from: tiwag ---
--- Quote from: batagy ---...But my question, can those MFC libraries and headers be downloaded somewhere from the internet legally, and simply put them to the inc and libs folders?
--- End quote ---

sorry, no they are copyright protected by M$, you get a license if you buy VisualC++,

technically spoken, there are a lot of download possibilities like edonkey and other p2p nets. but it's illegal.
--- End quote ---


Ah. thanks for the answer! In this case I should install a real Visual Studio. I have a 60 day trial version.
Thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version