CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.15 seconds.

  1. Re: Puzzling error from std::stringstream in VS2019

    For differences between the various versions of VS2019, see https://www.tektutorialshub.com/visual-studio/difference-between-visual-studio-2019-community-vs-professional-vs-enterprise/
  2. Re: Puzzling error from std::stringstream in VS2019

    Have you tried creating a completly new solution with just the existing source files? IMO there's a solution file used in debugging that contains a wrong file reference. Try doing a file search for...
  3. Re: Puzzling error from std::stringstream in VS2019

    Just for interest/info - we stopped creating .dll's several years ago. We also stopped splitting classes into header/implementation files. Everything is now in .hpp files that are included as needed...
  4. Re: Puzzling error from std::stringstream in VS2019

    PS Has this fixed the previous error with the debug build with the missing subfolder? [ https://forums.codeguru.com/showthread.php?565257-Strange-crash-with-Debug-build ]
  5. Re: Puzzling error from std::stringstream in VS2019

    Under SDK's, libraries and frameworks - I have:

    C++ ATL for latest v142 build tools (x86 & x64)
    Windows 10 SDK (10.0.19041.0)
  6. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    Yeah - Several C++ questions asked in this forum should be asked in the C++ (Non-visual C++ Issues) forum.
  7. Re: Puzzling error from std::stringstream in VS2019

    If both were built with VS2019, then I don't know. Other than there seems to be something wrong with your VS install. I'd be tempted to completely remove it and re-install from scratch. Have you got...
  8. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    Yes - for OLE automation. There's quite a few different types - BSTR possibly being the most well known. They are not part of C++ though. These were developed by MS to help with interoperability with...
  9. Re: Puzzling error from std::stringstream in VS2019

    yes - probably because of different versions of std::stringstream exe/dll. You can't mix versions! This is the sort of thing that was called 'dll hell'! In the above, std::stringstream default...
  10. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    All sins forgiven :)
  11. Re: Puzzling error from std::stringstream in VS2019

    I suspect that the class definition for stringstream used in the .dll is different from that used in the .exe. That's probably why it compiles OK with VS2008, but not VS2019. There has been large...
  12. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    In C++, true is 1 and false is 0. This can be shown by:



    bool z = true;

    printf("%02x\n", (unsigned char)z);


    which displays 01 as expected.
  13. Replies
    5
    Views
    280

    Re: LoadLibrary() strangeness with VS2019

    You can't mix 32 bit and 64 bit libraries/exe. They must all be compiled as either 32 bit or 64 bit. See https://docs.microsoft.com/en-us/windows/win32/winprog64/process-interoperability
  14. Replies
    4
    Views
    316

    Re: changing for loop

    After the find, you don't check if site hasn't been found.



    auto it = std::find(m_TacToUnassignedNeighSiteKeysList[tac].begin(), m_TacToUnassignedNeighSiteKeysList[tac].end(), site);...
  15. Re: replace the multiset with new set inside the existing map

    If these containers have many elements, consider the performance impacts of all of these 'by value' copies being done.
  16. Re: replace the multiset with new set inside the existing map

    1) Usually const auto& rather than auto so that you pass by ref and not by value.

    2) If neighkeys is auto& (by ref) and neighkeys is passed by ref to ApplyinitialDistanceHOCriterion(), won't that...
  17. Thread: __attribute__ ??

    by 2kaud
    Replies
    3
    Views
    261

    Re: __attribute__ ??

    Also https://stackoverflow.com/questions/28411283/dealing-with-attribute-in-msvc
  18. Replies
    11
    Views
    736

    Re: using a dll without the .lib file

    What's an example of the external symbol that can't be found - and what is called in the .dll?
  19. Replies
    4
    Views
    371

    Re: Missing symbol - local_stdio_printf_options

    We all have those 'senior moments'........ :)
  20. Replies
    11
    Views
    736

    Re: using a dll without the .lib file

    Are you compiling as C or C++? If as C++, are the function declarations for the dll functions specified as extern "C" (capital C) to avoid name 'mangling'? See...
  21. Replies
    4
    Views
    371

    Re: Missing symbol - local_stdio_printf_options

    Is this the same as your post here https://forums.codeguru.com/showthread.php?565160-_local_stdio_printf_options
  22. Replies
    11
    Views
    736

    Re: using a dll without the .lib file

    Just generate the .lib file from the .dll. See https://stackoverflow.com/questions/9946322/how-to-generate-an-import-library-lib-file-from-a-dll See the .bat file(s) that automate this process.
  23. Replies
    4
    Views
    416

    Re: structure with function pointers

    You can't. C++20 compatibility is only available with VS2019.
  24. Replies
    10
    Views
    594

    Re: Strange crash with Debug build

    I don't use boost!
  25. Replies
    4
    Views
    416

    Re: structure with function pointers

    struct MyStruct {
    int (*foo)();
    };

    static int func1()
    {
    printf("I am called\n");
    return 0;
    }
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)