Thread: MFC and dev-c++

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    110

    MFC and dev-c++

    I have decided to use c++/MFC to acomplish an assignment for the diploma that I am doing and am wondering how to get the MFC headers and libraries to work with dev-c++.

    I have old versions of the libraries (from VC++ 5.0) though it would be good to know of the wereabouts of a d/load for the latest headers and libs.

    Any tips on this would be of great help.

    Later,
    WebmasterMattD
    WebmasterMattD.NET

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You can't link to VC++ libs with Dev-C++. If you want to use MFC with Dev you need to compile the whole source code (comes with VC++).
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    110
    Thanks for the reply.
    Will do.

    Later,
    WebmasterMattD
    WebmasterMattD.NET

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I imagine the source is pretty heavy with VC++ pragmas and even the bare code will probably need some lib that ships with VC++.......doubt you could easily recompile and link with another compiler (and I imagine M$ had this in mind when they first shipped the code with versions of VC++)

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Very likely, yes. In particular, those pragmas are
    #pragma comment(lib, arg)
    #pragma once (MFC 7+)

    and some others as well.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Apr 2002
    Posts
    110
    I was more hoping that there would be an easy d/load such as for DirectX sdk and others.

    Anyway thanks for your help.
    Guess that I am stuck with using VC++ for any MFC work.

    Later,
    WebmasterMattD
    WebmasterMattD.NET

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Does Visual Studio Rot the Mind?
    By psychopath in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 07-03-2006, 12:30 PM
  2. MFC on Dev C++?
    By subnet_rx in forum Windows Programming
    Replies: 6
    Last Post: 09-09-2004, 07:16 AM
  3. Docking Windows without MFC / C++ ???
    By novacain in forum Windows Programming
    Replies: 0
    Last Post: 09-17-2001, 02:44 AM