470,848 Members | 1,216 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Any easy way to convert legacy C++ code to managed C++?

I am building a SQL Server CLR user-defined function (which means it must be
pure safe?). I got hundres/thousands of error. And most errors are in
vadefs.h, crtdefs.h, yvals.h, ymath.h, math.h, float.h, swprintf.inl, .....

Any easier way to convert the code without many changes?
Apr 19 '06 #1
1 1494
Any code that is in a SQL Server CLR user-defined function must compile
cleanly with the /clr:safe switch. The /clr:pure switch isn't enough.

Unfortunately, while there is a "pure" version of the CRT, there isn't a
"safe" version of it, which means you can't use the CRT functions (like those
in math.h) in a SQL Server component. For further discussion, see:


Apr 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Russ | last post: by
5 posts views Thread by Michael D. Reed | last post: by
2 posts views Thread by Bit Byte | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.