create a non-MFC DLL
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: create a non-MFC DLL

  1. #1
    Join Date
    Jun 2001
    Location
    USA
    Posts
    286

    create a non-MFC DLL

    I need to create a DLL without MFC or precompiled headers. It's a wrapper for another library, and I don't want the "stdafx.h" requirement or MFC's complaint about #including windows.h

    The only DLL project type in VS 2005 is MFC. After creating the project I can change the project properties but the compiler balks at using standard Windows libraries and not using precompiled headers.

    What to do?

    Thanks

  2. #2
    Join Date
    Mar 2008
    Location
    Turin / Italy
    Posts
    178

    Re: create a non-MFC DLL

    Create a Win32 Project (not MFC) and choose DLL on the next step. Leave the "Add common header files for MFC" tick unchecked. To assemble everything:

    Vs2005->New->Project

    Win32->Win32 Project

    On the Wizard, Application Settings, choose DLL radio box, hit finish.

  3. #3
    Join Date
    Jul 2002
    Posts
    2,494

    Re: create a non-MFC DLL

    Required project type is: Visual C++ - Win32 - Win32 Project. On the second Wizard step select Dll.
    You can turn off precompiled headers later in the Project Properties dialog, though I don't see any problem in using them.

  4. #4
    Join Date
    Jun 2001
    Location
    USA
    Posts
    286

    RESOLVED: create a non-MFC DLL

    Got it... thank you.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center