• Server is too busy!!!

    2008-05-07

    分类:Embedded

    Server is too busy!!!

     http://community.csdn.net/ 如是说:

    瞬间感到无助 -_-! 这应该算作为“低手”的无奈吧~~~

    ======================================

    N久没有去过了Lab,搞差不多了VC++的Programe就晾了EVC很久,

    终于被老师一通电话,开始最后的Thesis。

    在Lab离抱着试试看的心态,小心翼翼地把代码一块块地加到EVC,很成功地做出粗陋的控制界面。

    我大赞EVC!

    终于有困难上门了,传说中的Unicode转型问题,EVC只支持Unicode。

    常量好说按照晚上的方法 _T(“constant”)就可以搞定

    pWaveHdr1->lpData   = (LPTSTR)pBuffer1; /////这句报错

    error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    头文件中 pBuffer的定义:PBYTE pBuffer1,pBuffer2,pSaveBuffer,pNewBuffer;

     不知道咋改了~~~~~~~

    .....................................

    http://community.csdn.net/ 可以上了,干正事了。。。





    评论

  • 搞定了
    pWaveHdr1->lpData = (LPTSTR)pBuffer1;
    将LPTSTR改为LPSTR 即可~~

    LPTSTR: An LPWSTR if UNICODE is defined, an LPSTR otherwise.
    LPSTR: Pointer to a null-terminated string of 8-bit Windows (ANSI) characters.