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