Thread: how to compile projects ?

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    164

    how to compile projects ?

    How do you compile the three zip files listed on the top of the article (see link below) in Visual C++ Express Edition ? The link is below ?

    http://www.codeproject.com/KB/cpp/loggerservice.aspx

    I want to learn how all this will be done.

    Express Edition don't have support for MFC so, what to do now?

    How do I compile this then ?
    Last edited by manzoor; 07-24-2008 at 09:27 AM.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I'm not bored enough to go through all that. But: when you unzip, are there files that end in .vcproj? If so, hooray. If not, stuff all the source files into a new project and see what happens.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    No there is no .vcproj file but there are .dsw files

    And this project is created in VC 6, Would I be able to run it in Visual C++ 2008 Express Edition?

    And it is also MFC project? Would Express Edition be able to compile it?

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    There's one way to find out...

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    which way

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by manzoor View Post
    which way
    Try to compile it?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    Clicked on Build Solution but in one I got this error

    d:\usr\src\logger\stdafx.h(28) : fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory

    And in another I got this ?
    d:\usr\src\logger\loggertest\stdafx.h(15) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory

    I'm using Visual C++ 2008 Express Edition

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Those are, if I'm not remembering wrong, MFC headers, so yes, you need MFC to compile that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  9. #9
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by manzoor View Post
    which way
    Open the project with VS. It should offer to convert it for you.

  10. #10
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Did you create a new project or open the existing one.

    .dsw in 6.0 is equivalent to .sln in later editions of VC++. Did you try to open the .dsw? If that fails, did you try to open the .dsp file? That is the project file (equivalent to .vcproj).

    The error seems to be that your current project is not set up to be a windows application that uses the ATL. If you use the existing project then that shouldn't happen, but if you create a new project you'll have to make sure to check the appropriate boxes in the wizard to include ATL.

    BTW, I'm not sure whether the express edition includes the ATL, since I don't think it includes MFC.

  11. #11
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    Well It did offered me to convert, and I clicked yes,

    Then when compiling I got those errors

    I have been told that Express Editions don't have MFC support. Now what to do ?

  12. #12
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    If they don't support MFC, you'll either need a copy of VC++ 6.0 or port the project to another GUI, like wxWidgets.

  13. #13
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    The Express edition does not contain MFC. Sorry, but there's no way you're going to able to compile that code.
    You either have to change the code from MFC or purchase Visual Studio Standard edition or above, which ships with MFC.

    Unless you merely want an executable. Some people here has Visual Studio Standard/Professional installed and can help you to compile the project.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Elysia View Post
    The Express edition does not contain MFC. .
    That's a priceless feature of the Express edition, if you ask me.

  15. #15
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    Ok I'll see If I could find the commercial version in my school or from a friend, then reply what happens.

    Thanks for help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  2. How to compile mfc libs from platform sdk
    By tjcbs in forum Windows Programming
    Replies: 6
    Last Post: 11-19-2006, 08:20 AM
  3. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  4. open scene graph compile issues
    By ichijoji in forum Game Programming
    Replies: 1
    Last Post: 08-04-2005, 12:31 PM
  5. compile program?
    By Goosie in forum C++ Programming
    Replies: 9
    Last Post: 06-22-2005, 02:26 PM