{"id":494,"date":"2010-12-23T15:58:20","date_gmt":"2010-12-23T15:58:20","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=494"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"using-pragma-directives","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/unmanaged-code\/using-pragma-directives","title":{"rendered":"Using #pragma Directives"},"content":{"rendered":"<p>You need to use the \/clr compile option. \u00a0\/clr:safe will generate all sorts of errors.<br \/>\nYou can&#8217;t call managed code from the unmanaged code.<\/p>\n<pre><code>\r\n#pragma unmanaged\r\n#pragma managed\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You need to use the \/clr compile option. \u00a0\/clr:safe will generate all sorts of errors. You can&#8217;t call managed code from the unmanaged code. #pragma unmanaged #pragma managed<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-unmanaged-code"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/494\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}