# Using 'VS2010 Parallel Patterns Library' in VC++

I have created a vc++ windows form application (VS 2010) and when I tried to include ppl.h (Parallel Patterns Library) I got the following compile error.

Error: Concurrency Runtime is not supported when compiling /clr. c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\concrt.h 27"

I want to use "parallel_for" algorithm in my program which is provided by 'VS 2010 Parallel Patterns Library'.

Can anyone tell me how to overcome the above problem and how to use 'Parallel Patterns Library' inside a windows forms application?

-
You can move the code to a cpp that is completely unmanaged. This can be part of the same dll. you can use ppl.h/parallel_for from there. It will also be slightly faster than c++/cli. –  user180326 Nov 11 '12 at 14:12
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8485423922538757, "perplexity": 4476.6687286942315}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-18/segments/1429246641266.56/warc/CC-MAIN-20150417045721-00188-ip-10-235-10-82.ec2.internal.warc.gz"}