Now I would like to redirect output of CMD, but there is following problem. When I set UseShellExecute=false, I cannot run CMD with administrator privileges, which is required to use Netsh. But when I set true I cannot redirect output. Could you please help, how can I solve this problem? Thank you in advance!
Ok, the readability suffers a bit - sorry for the bleeding eyes
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
Identify your primary objective. If it is producing a new application, then stick to the language you know best, but if it is learning C++ then follow Richard's advice.
I faced the same choice some years back, and since my primary objective was learning C++ I went down this route. Had it been the production of a new application I would have continued with COBOL.
I never had any desire to branch out into C# but it made practical sense to adopt it for the WCF and ASP.NET aspects so that got learned too. Nowadays Visual Studio, and particularly the express versions offer better UI experiences in C#, so consider that C++ may not offer all you desire.
I am designing a c++\mfc program. I have a problem by the resolution of the icons in the designing procedure. When I open a designed icon, visual studio open it as 256 color image, however the original image has a higher resolution. Also, when I create a new icon visual studio sets its resolution as 16 colors.
How I can open the icon as original resolution or increase the resolution of an icon?
Please guide me to solve the problem.
I have personally used two C++ static code analysis tools.
1. Visual Studio. I believe all SKUs of VS 2013 now include code analysis tools though the level of analysis in the Free express edition is not as nice as in the paid versions. Menu is: ANALYZE > Run Code Analysis on Solution.
2. Klocwork. We pay for a Klocwork license [^]. I'm not sure if they have a trial or free version available. A caveat: Klocwork does not handle C++/CLI code however so it skips the /clr files. We have a large body of portable plain C++ code so it works well with that code.
I'm sure there are other tools but C++ code analysis is difficult and most are expensive commercial tools.
Last Visit: 5-Jul-20 19:58 Last Update: 5-Jul-20 19:58