Share via

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

Developer technologies | C++
Developer technologies | 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.

Developer technologies | .NET | .NET CLI
0 comments No comments

Answer accepted by question author

Minxin Yu 13,516 Reputation points Microsoft External Staff
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.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.