• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 694
  • Last Modified:

why AFX_EXT_CLASS isn't used in MFC-source

I want to create my own MFC-derived  Class in a DLL. Because of MFC-Help you have to use the prefix AFX_EXT_CLASS to declare a class that is used outside your DLL (see the MFC-sample "DllHusk"). Why AFX_EXT_CLASS doesn't appear in MFC-sources.
0
wronna
Asked:
wronna
  • 2
1 Solution
 
galkinCommented:
MFC classes are exproted via mfc42.def file.
0
 
wronnaAuthor Commented:
How to get automaticly a .def file of my project including all classes and functions ? Because i guess microsoft don't do this manually.
0
 
galkinCommented:
Enable linker generation of map file and you will be a ble to cut and paste functions you want to export
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now