cn.comp.lang.vc
  Home FAQ Contact Sign in
cn.comp.lang.vc only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
cn.comp.lang.vc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  TAG Heuer replica watches         


Author: Precision Replica Watches
Date: May 12, 2008 00:15

no comments
  goatse         


Author: yenc
Date: Mar 1, 2008 10:45

PORNOLATION RELEASE
no comments
  谁对 Windows 下的串口通信比较熟悉? 帮忙看看         


Author: Moses
Date: Jan 4, 2008 07:06

编程的环境是在 Windows 下对串口进行读写的操作.

//开始的事件是这样声明的
OVERLAPPED m_osWrite;
m_osWrite.hEvent = CreateEvent(NULL,TRUE,FALSE,NULL);

//调用的代码:
//////////////////////////////////////////////////////////

if(m_pDevice->m_strDeviceModel == "yyyyy")
{
strcpy(sBuf,"MA!");
dwLength = 3;
}

int fState;
DWORD dwBytesWritten = 0;//实际发送字节数
DWORD dwErrors = 0;
try
{
m_port.ClearError(dwErrors);
if (dwErrors != 0)
{
dwErrors = 0;
}
fState = m_port.Write(sBuf,dwLength,m_osWrite...
Show full article (2.38Kb)
9 Comments
  gcc不能区分正数和负数 (z)         


Author: Moses
Date: Nov 19, 2007 02:31

很有趣的发现, 呵呵,
转自 Solidot http://linux.solidot.org/article.pl?sid=07/11/19/0512218&from=rss :

linux程序不能区分正数和负数,例如,-10和10会被认为是相等的。真的是这样吗?试试以下的C代码:
int main () {
int i=2;
if( -10*abs (i-1) == 10*abs(i-1) )
printf ("OMG,-10==10 in linux!\n");
else
printf ("nothing special here\n");
}
同样的C代码,在windows和unix系统中编译运行的结果是nothing special here,只有linux得到是-10==10。
恩,我们的gcc在这里犯了一个低级错误。
8 Comments
  ΪʲôÈËÕâôÉÙ£¿£¿£¿£¿         


Author: Áã¶ÈË®Òø
Date: Nov 13, 2007 04:12

ÎÒ×òÌìÔ¤¶¨ÁËÕâ¸öÐÂÎÅ×飬ÒÔΪÓʼþ»á¶àµÄÈÃÎÒ¿´²»À´£¬Ã»Ïëµ½Ò»ÌìÒ»¸öÐÂÖ÷ÌⶼûÓС£¡£ÕæÃ»ÈËÆø°¡¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
1 Comment
  Google Video Downloader KEYGEN 1247 [1/2]         


Author: nfezkr
Date: Oct 19, 2007 15:32

chddjdcciffucgevlcisdlfjodhxthbojwd
no comments
  二进制文件格式设计问题         


Author: Moses
Date: Oct 16, 2007 22:31

问个问题, 有数据要保存成文件, 数据是一组一组的, 每组数据由几个浮点数组成, 每小时保存一个二进制文件, 需要以后能方便的找出某个时候写进的某组数据.

现在的问题是, 由于每组数据长度不同, 分割这些数据有困难, 有没有比较好的方法设计这个二进制文件的格式呢?

谢谢~
33 Comments
  New Apple ipod nano         


Author: Jake
Date: Oct 6, 2007 18:19

no comments
  How i built muscle quickly         


Author: Wesley Rodgers
Date: Oct 6, 2007 16:17

no comments
  Sending Faxes over the internet         


Author: Henry Sharp
Date: Oct 6, 2007 14:02

no comments
 
1 2 3 4