How to fix c++ Compiler Error C2483 in managed code

Ero Min 41 Reputation points
2023-01-26T05:11:08.6633333+00:00

屏幕截图 2023-01-26 130404

屏幕截图 2023-01-26 130942

And I also defined unmanaged

屏幕截图 2023-01-26 130705

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,612 questions
0 comments No comments
{count} votes

Accepted answer
  1. Minxin Yu 10,791 Reputation points Microsoft Vendor
    2023-01-26T05:56:33.24+00:00

    Hi, Ero Min
    From the blog:

    C++/CLI:  __declspec(thread) isn't supported by the CLR.  You may get the application to compile properly, but you'll get the following error when trying to run: "The application failed to initialize properly (0xc000007b)."

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful