Recent Changes - Search:

Documents

Download

Building

Support

Wiki Stuff

edit SideBar

VSNetTricks

Main.VSNetTricks History

Show minor edits - Show changes to output

Changed lines 7-8 from:
Then [[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory and replace the line [[Visualizer]] with the contents of the file.
to:
Then [[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory and replace the line [Visualizer] with the contents of the file.
Changed lines 3-25 from:
To insert these definitions, first open the existing AUTOEXP.DAT file for your environment

  MSVC 6         C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\autoexp.dat
  VS.net 2003         C:
\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
  Visual C++ Express C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat

For MSVC 6, open
the file in a text editor and add the lines below to the end of the file:

            ; for PTLib
            PObject =<,t>
            PString =<theArray,s>
            PCharArray =<theArray,s>
            PContainer=<,t> size=<reference->size> ref=<reference->count>
            PAbstractArray =<,t> size=<reference->size> ref=<reference->count>
            PArrayObjects =<,t> size=<theArray->reference->size> ref=<reference->count>
            PIPSocket::Address = <v.four.S_un.S_un_b.s_b1,u>.<v.four.S_un.S_un_b.s_b2,u>.<v.four.S_un.S_un_b.s_b3,u>.<v.four.S_un.S_un_b.s_b4,u>
            PTimeInterval = <milliseconds>
            PTime = <theTime>

For VS.net,
[[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory and add the contents before the [hresult] section, so that it looks as follows:

Restart MSVC or VS.net
, and the values of PTLib variables will now be displayed in the debugger.
to:
To insert these definitions, first open the existing AUTOEXP.DAT file for your environment, you may need to search a bit for it. For the various express editions it is usually in:

  C:\Program Files\Microsoft Visual Studio *\Common7\Packages\Debugger\autoexp.dat

Then [[http://opalvoip
.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory and replace the line [[Visualizer]] with the contents of the file.

Restart Visual Studio,
and the values of PTLib variables will now be displayed in the debugger.
Changed lines 9-10 from:
For MSVC 6, open the file in a text editor and add the contenst of the PTLib lines to the end of the file:
to:
For MSVC 6, open the file in a text editor and add the lines below to the end of the file:
Changed lines 23-26 from:
[[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory

and add the contents before the [hresult] section, so that it looks as follows:
to:
[[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory and add the contents before the [hresult] section, so that it looks as follows:
Changed lines 1-14 from:

10. Making the debugger show
the value of PWLib types

It is possible to make the MSVC and VS.net debuggers show the value of PWLib types either in hover text or in watch lists, as show below:

 

To do this, locate
the file AUTOEXP.DAT for your environment as follows:
MSVC 6 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\autoexp.dat
VS.net 2003 C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
Visual C++ Express C:\Program Files\Microsoft Visual Studio 8
\Common7\Packages\Debugger\autoexp.dat

For MSVC 6, open the file in a text editor and add the following lines to the end of the file:
to:
It is possible to make the MSVC and VS.net debuggers show the value of PWLib types either in hover text or in watch lists. This is done by adding additional information to the AUTOEXP.DAT file provided as part of the Microsoft development enviromnent

To insert these definitions, first open the existing AUTOEXP.DAT file for your environment

  MSVC 6  
     C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\autoexp.dat
  VS.net 2003         C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
  Visual C++ Express C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat

For MSVC 6, open the file in a text editor and add the contenst of the PTLib
lines to the end of the file:
Changed lines 22-52 from:
For VS.net, make sure these lines above are added before the [hresult] section, so that it looks as follows:

            ; for PTLib
            PObject =<,t>
            PString =<theArray,s>
            PCharArray =<theArray,s>
            PContainer=<,t> size=<reference->size> ref=<reference->count>
            PAbstractArray =<,t> size=<reference->size> ref=<reference->count>
            PArrayObjects =<,t> size=<theArray->reference->size> ref=<reference->count>
            PIPSocket::Address = <v.four.S_un.S_un_b.s_b1,u>.<v.four.S_un.S_un_b.s_b2,u>.<v.four.S_un.S_un_b.s_b3,u>.<v.four.S_un.S_un_b.s_b4,u>
            PTimeInterval = <milliseconds>
            PTime = <theTime>

            ; This section lets you define your own errors for the HRESULT display.
            ; You need to list the error code in unsigned decimal, followed by the message.
            ; Changes will take effect the next time you redisplay the variable.
            [hresult]
            ;1234=my custom error code

Restart MSVC or VS.net, and the values of PWLib variables will now be displayed in the debugger.
11.Using VS.net from the command line

The VS.net compiler can be invoked from the command line without the GUI using the "devenv" program with the /build option. To do this, open a command window using the "Open Visual Studio .NET 2003 Command Prompt" shortcut or open a normal command window and execute the correct "vcvars32.bat" file.

The following command shows how to build the "Console"  project in Debug mode using the pwlib.sln solution file:

devenv /build Debug /project "Console" pwlib.sln

The following command will build all of the pwlib projects in Debug mode using the pwlib.sln solution file:

devenv /build Debug pwlib.sln
to:
For VS.net,
[[http://opalvoip.svn.sourceforge.net/viewvc/*checkout*/opalvoip/ptlib/trunk/include/ptlib/msos/AUTOEXP.DAT|download the AUTOEXP.DAT file]] from the SVN repsitory

and add the contents before the [hresult] section, so that it looks as follows:

Restart MSVC or VS.net, and the values of PTLib variables will now be displayed in the debugger.
October 31, 2007, at 09:02 AM by 202.7.166.166 -
Added lines 1-56:

10. Making the debugger show the value of PWLib types

It is possible to make the MSVC and VS.net debuggers show the value of PWLib types either in hover text or in watch lists, as show below:

 

To do this, locate the file AUTOEXP.DAT for your environment as follows:
MSVC 6 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\autoexp.dat
VS.net 2003 C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
Visual C++ Express C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat

For MSVC 6, open the file in a text editor and add the following lines to the end of the file:

            ; for PTLib
            PObject =<,t>
            PString =<theArray,s>
            PCharArray =<theArray,s>
            PContainer=<,t> size=<reference->size> ref=<reference->count>
            PAbstractArray =<,t> size=<reference->size> ref=<reference->count>
            PArrayObjects =<,t> size=<theArray->reference->size> ref=<reference->count>
            PIPSocket::Address = <v.four.S_un.S_un_b.s_b1,u>.<v.four.S_un.S_un_b.s_b2,u>.<v.four.S_un.S_un_b.s_b3,u>.<v.four.S_un.S_un_b.s_b4,u>
            PTimeInterval = <milliseconds>
            PTime = <theTime>

For VS.net, make sure these lines above are added before the [hresult] section, so that it looks as follows:

            ; for PTLib
            PObject =<,t>
            PString =<theArray,s>
            PCharArray =<theArray,s>
            PContainer=<,t> size=<reference->size> ref=<reference->count>
            PAbstractArray =<,t> size=<reference->size> ref=<reference->count>
            PArrayObjects =<,t> size=<theArray->reference->size> ref=<reference->count>
            PIPSocket::Address = <v.four.S_un.S_un_b.s_b1,u>.<v.four.S_un.S_un_b.s_b2,u>.<v.four.S_un.S_un_b.s_b3,u>.<v.four.S_un.S_un_b.s_b4,u>
            PTimeInterval = <milliseconds>
            PTime = <theTime>

            ; This section lets you define your own errors for the HRESULT display.
            ; You need to list the error code in unsigned decimal, followed by the message.
            ; Changes will take effect the next time you redisplay the variable.
            [hresult]
            ;1234=my custom error code

Restart MSVC or VS.net, and the values of PWLib variables will now be displayed in the debugger.
11.Using VS.net from the command line

The VS.net compiler can be invoked from the command line without the GUI using the "devenv" program with the /build option. To do this, open a command window using the "Open Visual Studio .NET 2003 Command Prompt" shortcut or open a normal command window and execute the correct "vcvars32.bat" file.

The following command shows how to build the "Console"  project in Debug mode using the pwlib.sln solution file:

devenv /build Debug /project "Console" pwlib.sln

The following command will build all of the pwlib projects in Debug mode using the pwlib.sln solution file:

devenv /build Debug pwlib.sln
Edit - History - Print - Recent Changes - Search
Page last modified on November 27, 2012, at 11:22 PM