IIS Metabase C++ examples - c++

Could anybody point be in the direction of some examples with creating/editing/removing IIS Web/FTP sites and their respective virtual directories. As MSDN doesn't seem to give many C++ based examples.
Thanks

The VCDeploy tool from the ATL Server source code is one example I know of: http://atlserver.codeplex.com/SourceControl/changeset/view/3691#.
This is the command line tool that implements the Web Deployment build step in Visual C++ 2005.

Related

How to setup VS Code project for LLVM building

I want to use VS Code for building & debugging LLVM source code. Is there a good document which explains how to setup project in VS Code for LLVM ?
Thanks in advance.
I found the below blog useful :
https://developers.redhat.com/blog/2021/04/22/remote-llvm-development-with-visual-studio-code#
This talks about remote SSH setup, but all these things can be easily replicated with native vscode install.

How to debug native C++ calling from asp.net using Visual Studio 2017

I have an asp.net web application (.NET Framework) by Visual C#, and this web application uses native C++ DLL by DllImport. The native C++ DLL project is also part of the solution. However when I do the debugging, and try to step into the native C++ code, it fails, the breakpoint on the C++ code shows "the breakpoint will not currently be hit no symbols have been loaded".
The solution is : make sure The "Native Code" check box (Project>Property>Web>Debugger>native code) as shown on the picture is checked. By default it is unchecked when the .net project is created.
I spent whole morning to find out cause, and it is not mentioned in stackoverflow and other website, therefore would like to share the solution.
//Follow Jack's suggestion to post the solution as an answer, instead of putting it as part of the question. Thanks Jack.

How to start program before login in windows in c++? [duplicate]

I've written a console program that "does stuff" - mainly using boost. How do I convert it to a Windows Service?
What should I know about Windows Services beforehand?
There's a good example on how to set up a minimal service on MSDN. See the parts about writing the main function, entry point and also the example code.
Once you've got a windows service built and running, you'll discover the next major gotcha: it's a pain to debug. There's no terminal (and hence no stdout/stderr) and as soon as you try to run the executable it actually launches the service then returns to you.
One trick I've found very useful is to add a -foreground option to your app so that if you run with that flag then it bypasses the service starter code and instead runs like a regular console app, which makes it vastly easier to debug. In VS.Net set up the debugging options to invoke with that flag.
There's a really good example on msdn here
It's a boiler plate C++ service project that has self install/uninstall functionality and logs service start and stop events to the windows event log. It can be stopped and started through the services app (snapin) like other services. You may want to initially give it LocalSystem rights to see it working , as on xp at least it doesn't have enough rights to start with the project provided rights of LocalService. The Visual Studio 2008 project otherwise runs out of the box despite the downloaded instructions implying otherwise.
A bit late but I hope this helps someone else.
You might be able to 'wrap it' using this tool from CodeProject:
http://www.codeproject.com/KB/system/xyntservice.aspx
Worth a look.
The simplest solution might be to create a new Windows Service project in Visual Studio and copy across your code to the new project.
If you refactor your code so that you've split the UI (in this case the console) from the logic you could create a library that does the work and then call that from both the Console project and the Service Project.
You can configure an application to run as a service by using the Srvany tool, which is a part of the Windows Server 2003 Resource Kit Tools.
Srvany allows only one service at same time. So I write my srvany (sFany) to make nginx and php-cgi run as windows service together. Here is the source https://github.com/stxh/sFany

Can't find microsoft SDK sample

Can't find sources of specific microsoft sdk sample - RegView, it demonstrates namespace extension developing.
Does anybody has it?
Or, there is also nice sample called Window View, from "Visual C++ Shell Programming". Maybe someone can share this one?
I've got an answer on msdn forum,
here is ftp link with RegView sources:
http://cdserv.wbut.ac.in/81-203-2165-0/msdn_vcb/samples/vc98/sdk/winui/shell/regview/

Sonar runner is not listing the CxxCppCheckSensor while runner is started

I am new to sonar, i have installed sonarqube on RHEL 7 machine and its version is 5.1.1.
and the runner's version is 2.4.
I have four cpp related plugins, i tried with each one,
sonar-cxx-plugin-0.9.4-RC3.jar sslr-cxx-toolkit-0.9.4-RC3.jar
sonar-cpp-plugin-3.6.jar sonar-cpp-plugin-3.5.jar
sonar-cxx-plugin-0.9.jar
nothing seems to be listing the Sensor CxxCppCheckSensor . i need this for integrating cppcheck with the sonar. my cppcheck version is 1.68.
i have included sonar.cfamily.cppcheck.reportPath = in my sonar.project.properties file too.
Am I doing something wrong here ? Please help me out.
1.And do these cpp plugins needs license or trial key for proceeding?
2. Can cppcheck's xml report alone be viewed in sonar's dashboard?
Thanks in advance :)
sonar-cpp-plugin correspond to the commercial plugin and of course needs a license, sonar.cfamily.cppcheck.reportPath property is only for the commercial plugin.
sonar-cxx-plugin correspond to the community C++ plugin and has different properties.
Do not mix the two different plugins and documentation, pick one and follow one documentation installing only one of them.