Currently, using Visual Studio is a little bit painful when you deal with descriptor since you cannot directly display their content (you have to use the memory window). Here is a little trick that will allow you to display clear content of Symbian descriptors. 字串1
For this, you will have to take benefit of a feature of Microsoft Visual Studio called "Auto Expand". It allows the debugger to specify rules to display the content of custom data. This feature can be configured manually by editing the AutoExp.dat file which is located by default in C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin) 字串5
Open this file in your favorite text editor, copy/paste the following text at the end of it:
;=======================================================
;
; Symbian Strings & Descriptors
;
;=======================================================
TDes16=<,t> length=
TDesC16=<,t> length=
TPtr=length=
TPtr16=length=
TPtrC=length=
TPtrC16=length=
TBuf<*>=length=
TBufC<*>=length=
HBufC16=length=
TLitC<*>=length=
TDes8=<,t> length=
TDesC8=<,t> length=
TPtr8=length=
TPtrC8=length=
TBuf8<*>=length=
TBufC8<*>=length=
HBufC8=length=
TLitC8<*>=length=
TFileName=
TFullName=
Re-start the environment, put a breakpoint or two, start the debugger, and here you are....
字串8
Isn’t it nice ?
![我要研发网[www.51dev.com]](/templets/images/toplogo.gif)
