2024年4月30日发(作者:)

Panorama系统程序开发规范之二

1.匈牙利命名规则

变动 前缀 类型

a Array

b Boolean

by Byte

c Char

cb Char Byte

cr ColorRef

cx,cy Length of x,y (ShortInt)

dw Double Word

fn Function

h Handle

//有符号型字符

//无符号型字符(没多大用处)

//颜色参考值

//坐标差(长度)

i Integer

m_ Member of a class

n Short Integer

np Near Pointer

p Pointer

×(str) s String

sz String with Zero End

tm Text

w Word

x,y Coordinate

ma系统的命名约定

2.1 VC中变量命名时的前缀约定

lp Long Pointer

//以字符'0'结尾的字符串

//文本内容

//坐标