Text/Peter Jiang (translated from newlc.com)
One unpleasant thing about using Visual Studio is processing descriptors, because you cannot directly display their content (only visible in the simulator window ). here is a tip for you to display the content of the Symbian descriptor.
To achieve this goal, "auto expand" in Microsoft Visual Studio will play an important role. it allows the debugger to customize rules to display user data. you can manually configure autoexp. dat to achieve our goal. the file is stored in C:/program files/Microsoft Visual Studio/common/msdev98/bin. open the file in notepad and paste the following code at the end of it:
; ========================================================== ==================== ; ; Symbian strings & Descriptors ; ; ========================================================== ==================== Tdes16 = <, T> length = Max = Tdesc16 = <, T> length = Tptr = length = Max = PTR = Tptr16 = length = Max = PTR = Tptrc = length = PTR = Tptrc16 = length = PTR = Tbuf <*> = length = Max = Buf = Tbufc <*> = length = Buffer = Hbufc16 = length = Buffer = Tlitc <*> = length = Buf = Tdes8 = <, T> length = Max = Tdesc8 = <, T> length = Tptr8 = length = Max = PTR = Tptrc8 = length = PTR = Tbuf8 <*> = length = Max = Buffer = Tbufc8 <*> = length = Buffer = Hbufc8 = length = Buffer = Tlitc8 <*> = length = Buffer = Tfilename = Tfullname = |
Restart the compiler, insert two breakpoints, and start the debugger ............