M
M
Maxim Tkachuk2012-02-24 09:57:18
C++ / C#
Maxim Tkachuk, 2012-02-24 09:57:18

Using ASM in Visual C++

I am writing a term paper. My task is to write a CLR library in which the function will be considered using an assembler insert. I wrote a function for a regular Windows Forms application, everything works fine. I inserted the function code into the library and gives an error. I tried to find it on the forums, they write that you need to allow the use of ASMA in the build settings. I did that but the problem was not solved. If you comment out ACM, there are no errors. Tell me how to get rid of this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mage, 2012-02-24
@mage

Assembly inserts cannot be used in managed C++.
Try wrapping the function in
#pragma unmanaged
...
#pragma managed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question