void CTestDlg::OnButton1()
{
// TODO: Add your control notification handler code here
char source[9]="abcdefgh";
char buffer[64]={0};
int j=0;
for(int i =0;i<8;i++)
{
buffer[8*i] = ((j = *(source + i)) / 128) % 2;
buffer[8*i+1] = (j / 64) % 2;
buffer[8*i+2] = (j / 32) % 2;
buffer[8*i+3] = (j / 16) % 2;
buffer[8*i+4] = (j / 8) % 2;
buffer[8*i+5] = (j / 4) % 2;
buffer[8*i+6] = (j / 2) % 2;
buffer[8*i+7] = j % 2;
}
j=3;
}