摘要:
1、httpd.conf找到#Include conf/extra/httpd-vhosts.conf,将前面的#也就是注释去掉2.httpd.conf找到(修改Directory路径为你所有站点根目录,我本地是d:\wwwroot)修改 AllowOverride None->AllowOverride All <Directory “D:/wwwroot”> # # Possible values for the Options directive are “None”, “All”, # or any combination of: #Indexes Includes 阅读全文
摘要:
结构体是由若干成员组成的.布局有两种1.Sequential,顺序布局,比如struct S1{ int a; int b;}那么默认情况下在内存里是先排a,再排b也就是如果能取到a的地址,和b的地址,则相差一个int类型的长度,4字节[StructLayout(LayoutKind.Sequential)] struct S1{ int a; int b;}这样和上一个是一样的.因为默认的内存排列就是Sequential,也就是按成员的先后顺序排列.2.Explicit,精确布局需要用FieldOffset()设置每个成员的位置这样就可以实现类似c的公用体的功能[StructLayo... 阅读全文