Results 1 to 7 of 7

Thread: Compile MFC

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    Exclamation

    How can I compile MFC DLL's with my program (in Visual C++)
    VB, C++

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Goto file->new->MFC AppWizard (dll)
    //write the code
    Compile it using F7 or Build->Compile
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you want to include the MFC code in your DLL rather than using an external one, choose it under Project Settings->MFC Static Library
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22
    I want to include MFC im my exe
    VB, C++

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Same method.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    Croatia
    Posts
    22

    OK...

    Ok but what with Activex controls??
    VB, C++

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    ATL or MFC?

    If you're using MFC then some things get dropped out that are needed for them. Although it usually works...just set it to MFC static as normal

    Then watch your file size rocket

    Why do you specifically need it embedded? It's much easier to keep it as a DLL...

    And before anyone says anything...DLL Hell does play a part in this, but if your installer program is careful it doesn't.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width