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.17 seconds.

  1. Replies
    2
    Views
    30

    Re: do while with find_if

    auto itr = std::find_if......


    The scope of this itr only exists until the block closing }. It does not extend to the while clause. The itr used in the while clause is the same as that defined...
  2. Replies
    5
    Views
    88

    Re: Libraries with the same function

    Where was the constellation of the planets and what was the phase of the moon when this event took place? :d

    I'm assuming because of the previous posts, that the function that isn't exported has...
  3. Replies
    5
    Views
    88

    Re: Libraries with the same function

    Use LoadLibrary()/GetProcAddress() to specify which one to use.
  4. 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/
  5. 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...
  6. 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...
  7. 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 ]
  8. 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)
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    All sins forgiven :)
  14. 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...
  15. 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.
  16. Replies
    5
    Views
    333

    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
  17. Replies
    4
    Views
    376

    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);...
  18. 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.
  19. 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...
  20. Thread: __attribute__ ??

    by 2kaud
    Replies
    3
    Views
    306

    Re: __attribute__ ??

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

    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?
  22. Replies
    4
    Views
    408

    Re: Missing symbol - local_stdio_printf_options

    We all have those 'senior moments'........ :)
  23. Replies
    11
    Views
    777

    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...
  24. Replies
    4
    Views
    408

    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
  25. Replies
    11
    Views
    777

    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.
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)