Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

compile cpp programatically

$
0
0

Hi,

Can I compile cpp files programatically like I do with c# *.cs and visualbasic *.vb ?

I read that I have to invoke the cl.exe using the Process class. And the first step in doing that is to find where "vcvars32.bat" is through reading a registry key "InstallDir" from @"HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\10.0".

I tried that using the following line:

Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\CurrentVersion","InstallDir","not found");

But this produced "not found". Is there somthing wrong with this call ?

Thank you


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>