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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  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...
  16. PerFnurt

    What's the difference?

    One thing to consider though is that the order in which the members are defined defines the order in which they are initialized. class Foo { ... int mBar; int mFoo; }; // Gives the impression that mFoo is initialized before // mBar, but that is not true. mBar is...
  17. PerFnurt

    Multiple platform builds

    Thanks for the suggestions. Thing is, Visual Studio is the preferred central development tool. Anyway, the automation model in 2005 is quite powerful though and it without too much effort one can make a macro that generates a makefile. So generating makefile from VS 2005 project turned out to...
  18. PerFnurt

    Creating Graphs using Visual C++

    >But i don't know the member functions It's fully documented in msdn. http://msdn2.microsoft.com/en-us/library/4acfw2ha.aspx /Per www.perfnurt.se
  19. PerFnurt

    Displaing modal dialog

    CDialog is just a wrapper representing a dialog window. The window and its controls arent created just because you instantiate a CDialog, they get created in the DoModal call. They do exist when you're handling the INITDIALOG message. In other words, adjust the dialog's OnInitDialog method to...
  20. PerFnurt

    Multiple platform builds

    Hiya, Is there any nifty way to have a Visual C++ 2005 project support multiple platforms? Ie I want to be able to use a different compiler /linker than the built-in ones. Actually I want to use both: Make a normal VS build, but also be able to perform a totally different build. One way...

Part and Inventory Search

Back
Top