Usage of debugShell

When using debugShell, includes debugShell library to the project, then call debugShellInit function in initialization position.

To compile and link debugShell, please refer to the following steps:

1. debugShell can only support debug version of VC. Please modify the project as debug version; at the meanwhile, under the default configuration, some VC version environment also need to do the following modification:

A)VC.net 20032008Debug version: default configuration

B)VC 6.0

a)       Open the project in the Visual C++ IDE for Win32 Debug mode.

b)       On the Project menu, click Settings, and then click the Link tab.

c)       In the Category list, click Debug.

d)       Clear the Separate types check box, and then click OK.

e)       On the Build menu, click Rebuild All.

2. Copy dbghelp.lib, dsLib.lib to VC project directory or system LIB directory, ensuring these files can be linked when compiling.

3. Modify the APP program by including debugShell.h, and call debugShellInit() at initialization position.

#include <windows.h>
#include "debugShell.h"

int main(int argc, char* argv[]) {

         debugShellInit();
         for(;;) { Sleep(10000); }
         return 0;

}

4. Copy dbghelp.dll, dsLib.dll, reg.exe to the APP directory or system directory, ensuring these files can be loaded when running.

5. After finishing the steps as above, once users start the APP. debugShell will open a console and wait for input.