Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Everything posted by Zbychs

  1. Thanks. But I would need a visual tool to display this diffOutput.txt - and I've found none... So the only option I see is: Find a tool that can list files that were changed. (Maybe some of the normal folder diff tools can work in command line...) Append all original files together. Append all modified files together. Then using a normal visual diff compare those two uber-files, and set it to show only differences. A bit of an overkill...
  2. Hi, For a while now I'm looking for a diff tool that can compare folders and give me - in a single window - a summary of all changed lines in all files. I've found none. Does anyone know a, free or commercial, diff tool that can do that? Using a command line diff one can produce a summary like that. Maybe there is a tool that can at least display output of such a diff? Zbyl
  3. Thanks Rattrap, but many diffs have functionality simillar to WinDiff - but I need a lot more...
  4. Here's my solution. One should put it in a header included in both lib and app. Library should be compiled with COMPILING_LIBRARY defined. It generates link-time errors (unresolved external symbol '__marker_symbol_BRAND_0') when linking library and application compiled with different options: #if defined(COMPILING_LIBRARY) #if (BRAND == 0) extern "C" void _marker_symbol_BRAND_0(); #else extern "C" void _marker_symbol_BRAND_1(); #endif #else #if (BRAND == 0) #pragma comment(linker, "/include:__marker_symbol_BRAND_0") #else #pragma comment(linker, "/include:__marker_symbol_BRAND_1") #endif #endif Any comments? Maybe there are some side effects of using "#pragma comment? Zbyl
  5. Hi, I have a library that can be compiled (C++) with a certain define (either -DBRAND=1 or -DBRAND=2), and I have an application that uses this library. Both library and application have to be compiled with the same value of BRAND. Is there a way to verify at compile/link time that libary was compiled with the same BRAND value as application? Zbyl
  6. Thanks guys. Nice solutions. Unfortunately KulSeran's solution won't work for me, since both defines have the same name. This cannot be changed. I'll go with Adam's solution. I'd like to put it in one header common to both library and application - but for that I guess I'll need some kind of pragma to force reference for a "marker" symbol in application. Plus compiling lib with additional option -DCREATE_BRAND_MARKER to create the marek in lib. I'll post here if I'll figure it out. Thanks.
  7. Hi, Has anyone have debugger visualizers (or autoexpands) for time classes for Visual Studio? I'm interested in CTime and CTimeSpan classes (ATL, MFC), but if you have for some other time classes then I'm sure I'll be able to change them apropriately. I tried to write them myself, but just can't get them to work... Zbyl
  8. I'm using VS 2005. Here are my simplest attempts. But they don't work. [Visualizer] ATL::CTime{ preview([$c.GetDay()]) } CTime{ preview([$c.GetDay()]) } ATL::CTimeSpan{ preview([$c.Format("Total days: %D, hours: %H, mins: %M, secs: %S")]) }
  9. I'm no Python expert, but overloaded functions are not possible in Python, I think, because it's not a typesafe language. And I think namespaces for functions and variables are the same, so you can't have a variable and function of the same name in the same scope (that is: one will hide the other).
  10. Ok. I found a way: use Properties window of the class of the window, not the custom control window on the dialog designer.
  11. Hi guys, I'm developing an MFC app on VS 2008 (can be VS 2005 also) and I don't know how to create handlers for messages for a custom control. Normaly you can right click a control and select "Add event handler..." (alternatively you can do the same from the Properties window under "Control Events"). But for a Custom Control the "Control Events" panel is empty, and so is "Add event handler..." dialog. I'd hate to have to write all handlers by hand, so is there any way to add a handler automatically? Zbyl
  12. So it looks like the C++ equivalent struct has a: unsigned long lowQualityUnknown[2]; right? If so, in C# struct you have to use a fixed array: fixed ulong lowQualityUnknown[2]; Explanation: When you're trying to marshall an array, C# marshaller expects a pointer to data (long*), not "inline" data (long[2]). Zbyl
  13. Hi, I have a little question: as I understand make_shared() creates a shared_ptr<> and allocates one memory block for both the created object and the reference counter. Since we can have a weak_ptr<> created from that shared_ptr<>, when all strong refereences die, the pointed object is destructed, but the memory it occupied is not freed until ALL weak_ptr<>s also die. Am I understanding this correctly? Zbyl
  14. Thanks guys. That clarifies everything.
  15. Quote:The lifetime of the object is controlled by the shared_ptr's (strong). Yep. Destructor gets called allright. But I don't think that the memory is freed. Quote:The weak pointers will be invalidated upon the destruction of the object. But the info: "You are invalidated" is kept in the reference counting block of a shared_ptr<>, and if the object was in the same memory block, it can't be freed (as long as weak_ptr<>s live). At least that's my understanding of it. I just want to be sure.
  16. Weird IDE errors like this are often a result of corrupted IntelliSense caches etc. Try deleting all temporary/cache files from your solution directory.
  17. Hi I'm wondering what UI library is used on the image below (it's from CityEngine). Does anyone know other UI libraries with similar capabilities (free floating, connected nodes with arbitrary UI elements)? Zbyl
  18. I think it might be a part of Eclipse/JFace/SWT toolkit. Is this "Eclipse Modeling Framework" perhaps?
  19. Hi I can't find a way to display list of opened files in Visual Studio like on the image below: Opened Files List Is it an add-in? Can anyone point me in the right direction? I'm using VS2005, but info on 2008 and 2010 will be helpful too. Thanks, Zbyl
  20. Thanks pto! Pitty that this window is too small to show all my opened files. Guess I'll have to live with it. Zbyl
  21. Better option than 1) and 2): if (sender == myTextBox1) { //handle myTextBox1 } else if (sender == myTextBox2) { //handle myTextBox2 }
  22. Hi I'm getting this error in VS 2005: error C2664: 'SimpleHTML::CssIntParser' : cannot convert parameter 1 from 'SimpleHTMLView::CSimpleHTMLView *const ' to 'SimpleHTML::CSimpleHTMLView *' While CssIntParser is declared like this: CssIntParserBinder<CSimpleHTMLView, const String&> CssIntParser(CSimpleHTMLView* that); Anyone has an idea why "some_type_T *const" can't be converted to "some_type_T *" when passing by value? And please note that it's "some_type_T *const", not "some_type_T const*".
  23. Zbychs

    *const cast problem

    Thanks Sneftel, you're so right! Silly me :)
  24. Hi This works: using namespace boost::lambda; typedef std::istream_iterator<int> in; std::for_each( in(std::cin), in(), std::cout << (_1 * 3) << " " ); And now I'm trying to do something like this: std::for_each( str.begin(), str.end(), std::cout << _totupper(_1) << " " ); It doesn't work. Any ideas how I can fix it?
  25. Zbychs

    boost::lambda question

    Thanks cache_hit, but it still doesn't work. error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'boost::_bi::bind_t<R,F,L>' Any other ideas?
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!