Jump to content
  • Advertisement

Zbychs

Member
  • Content Count

    63
  • Joined

  • Last visited

Community Reputation

193 Neutral

About Zbychs

  • Rank
    Member
  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. Thanks Rattrap, but many diffs have functionality simillar to WinDiff - but I need a lot more...
  3. 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
  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. 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.
  6. 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
  7. 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")]) }
  8. 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).
  9. 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
  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. 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
  12. 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
  13. Thanks guys. That clarifies everything.
  14. 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.
  15. Weird IDE errors like this are often a result of corrupted IntelliSense caches etc. Try deleting all temporary/cache files from your solution directory.
  • 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!