Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

Tomb 0

@Tomb 0
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do I isolate MFC in a DLL?
    T Tomb 0

    Problem: Main app using 3rd party libraries as base for most classes. These 3rd party libs include windows.h. Have DLL with descendant of CDialog in it. I'm told (MSDN) you can use a statically or dynamically linked Win32 DLL using MFC within a non-MFC program (the main program doesn't see the MFC). How? When I include the header for a class in my DLL (which at the moment contains nothing, was planned to contain my CDIalog), the main project won't build because it complains about including stdafx.h (I have afxwin.h included therein). If I try to leave out stdafx.h, of course the DLL itself won't build. So what do I need to do to create a header that can be included in my main project, has the exports that won't drag MFC into the main App, and so that the DLL will still build? Any help appreciated.

    C / C++ / MFC help question c++ learning

  • Beginer ques on programmng practice
    T Tomb 0

    My suggestion would be pass a reference to the object and let the Dialog interrogate the object directly for the data. Why pass n parameters when half the raison d'etre for the object is the encapsulation of this data? Pass a reference. In fact, there are probably ways to display the data in a dialog in such a way (combined with a bright method or two in the CPerson object) such that you can change the internal data represented in the CPerson without having to modify the Dialog that displays it. One of the stratagems of the experienced programmer is to try to devise ways to insulate himself from changes in data structure within object classes - this tends to happen, and the less impact it has on code scattered across the project, the better.

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups