@Condor

re: 美帝出差最后一天 溪流 2010-05-07 17:24
C囧...这名字起的好！
@peter

D3DXMATRIX projection;
D3DXMatrixPerspectiveFovLH(&projection, D3DX_PI / 2, (float)m_nWidth / (float)m_nHeight, 0, FLT_MAX);

z-buffer这么不经用的吗？看那些教材上的意思，好像都用的呀
@Bill Hsu

@Bill Hsu

@Davy.xu

@besterChen

re: 硕士论文致谢 溪流 2010-04-29 16:59
@溪流

re: 硕士论文致谢 溪流 2010-04-29 16:57

@空明流转

re: [摘录]DirectX SDK版本知识 溪流 2010-04-23 13:18

@morya

@陈梓瀚(vczh)

@空明流转
@megax

@欲三更
WTL 尝试过一次，用起来不是很爽。。。
@Bill Hsu

@坏

@young40

@欲三更

re: 左值和右值 溪流 2010-04-13 14:22
l， r 的原始含义真的这样啊？刚才同事跟我说我还不信呢。。。

@欲三更

__declspec(selectany)
re: 对 C++ 历史的个人观点 溪流 2010-04-07 10:55
C++ 1x 确定了？
re: 对 C++ 历史的个人观点 溪流 2010-04-07 10:35

@only

@欣萌

@陈梓瀚(vczh)

@OwnWaterloo

struct T
{
BYTE sign[10];
。。。
}

T a[count];
if ( count != fread(a, sizeof a[0], count, stream) ) {
// error
}

T a[count];
if ( bytes != fread(a, 1, (sizeof a[0]) * count, stream) ) {
// error
}

@OwnWaterloo

@OwnWaterloo

“二进制格式存放的数据”，无非也就是多少个字节而已。
1个T就是 sizeof(T) 个 byte
@OwnWaterloo

@OwnWaterloo
T a[count];
if ( count != fread(a, sizeof a[0], count, stream) ) {
// error
}

T a[count];
ReadFile(hFile, a, sizeof(a), ...);

@OwnWaterloo
void * 也行

@OwnWaterloo

int fread(FILE *file, unsigned char *buffer, int bufferSize);

@OwnWaterloo

@OwnWaterloo

@OwnWaterloo

@OwnWaterloo

@陈梓瀚(vczh)

Open Source Initiative OSI - The MIT License:Licensing

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@OwnWaterloo