Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by PerFnurt

  1. PerFnurt

    mkdir problem

    So what is the problem? /Per www.perfnurt.se
  2. PerFnurt

    Remove redundancies

    Since I'm a bit allergic to macros (I would even suggest replacing your current macros with const int) I probably shouldn't suggest this...but anyway... You could define a macro that uses the stringify prepocessor operator (#), like this: #define ASSIGN_TO_MAP(map, value) map[#value]=value...
  3. PerFnurt

    Remove redundancies

    An alternative would be to put in in a map. #include <map> typedef std::map<std::string, int> MyMap; // ... { // Setup Map MyMap map; map["1ST_OPTION"] = 1; map["2ND_OPTION"] = 2; map["3RD_OPTION"] = 3; // etc. // ... // Query for existance/value MyMap::iterator...
  4. PerFnurt

    Creating a constructor with a string parameter

    Put the #include<string> into the .h file instead. And refer to it winth the std namespace. And make it a const ref. Ie #include<string> . . . class Bitmap { public: Bitmap(const std::string&); . . . /Per www.perfnurt.se
  5. PerFnurt

    when and where we need to consider datastructure?

    The most comman way to make your datastructures persistant is to write them to files on disk. /Per www.perfnurt.se
  6. PerFnurt

    Enumerator data type

    >Can you suggest something else that I can use instead of an enumerator? An iterator? /Per www.perfnurt.se
  7. PerFnurt

    Query on &quot;delete&quot; operator.

    You won't necessarily get an Access Violation when you do funny stuff with unallocated memory. That is one reason such bugs can be somewhat tricky to find as they sometimes result in funny, unexplainable (at first), behavior. /Per www.perfnurt.se
  8. PerFnurt

    What to do with CRT dependency to run *.exe in another machine

    You should not distribute debug builds. /Per www.perfnurt.se
  9. PerFnurt

    Query on default implementation

    No. /Per www.perfnurt.se
  10. PerFnurt

    multithreading

    See faq116-5162 - Threads in a GUI (MFC) app the easy way /Per www.perfnurt.se
  11. PerFnurt

    How is this possible?

    C++ simply doesn't support 100% pure OOP. If that is a problem, use another language, like SmallTalk which is very OO. Being 100% OO doesn't necessarily make sense in a non-academic world though... /Per www.perfnurt.se
  12. PerFnurt

    What are these symbols?

    >So why will microsoft ask you to "load symbols" to debug a problem? Are you seeing their variables? Exactly. Seeing symbols (or their contents rather) is what debugging is all about. Debug symbols are stored in .pdb files, so if you don't have the .pdb file for some module that's loaded...
  13. PerFnurt

    External Class accessing Main Dialog Class

    >I need this external class to be able to access the Dialog Class, to set and get text from a edit box. Consider if it's not the other way around. Ie the Dialog sets / gets data to the other class. Reason: Acting upon events in the dialog is trivial since there is already message handling...
  14. PerFnurt

    Build automation

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_building_on_the_command_line.3a_.overview.asp /Per www.perfnurt.se
  15. PerFnurt

    Multiple platform builds

    Not really. That functionality has been explicitly removed. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=10007&SiteId=1 If I write the macro myself I can generate anything. Actually I probably won't even generate the whole makefile, but rather just a makefile macro stating the .obj...

Part and Inventory Search

Back
Top