本帖最后由 download491 于 2011-7-14 18:42 编辑
程序:/* CIN source file */
#include "extcode.h"
MgErr CINRun(uInt8 *arg1, uInt8 *arg2, uInt8 *arg3, uInt8 *arg4, uInt8 *element8);
MgErr CINRun(uInt8 *arg1, uInt8 *arg2, uInt8 *arg3, uInt8 *arg4, uInt8 *element8)
{
union
{
float Data;
unsigned char Byte[4];
}FloatData;
FloatData.Byte[0]=*arg1;
FloatData.Byte[1]=*arg2;
FloatData.Byte[2]=*arg3;
FloatData.Byte[3]=*arg4;
*element8=FloatData.Data;
return noErr;
}
结果:Dele
ting intermediate files and output files for project 'a - Win32 Debug'.
--------------------Configuration: a - Win32 Debug--------------------
Compiling...
a.c
c:a.c(21) : warning C4244: '=' : conversion from 'float ' to 'unsigned char ', possible loss of data
Linking...
Creating library Debug/a.lib and object Debug/a.exp
Performing Custom Build Step on .Debuga.dll
E:cintoolslvsbutil: multiple name arguments not allowed "FilesMicrosoft".
执行 c:windowssystem32cmd.exe 时出错.
a.dll - 1 error(s), 0 warning(s)
E:lvsbutil: multiple name arguments not allowed "FilesMicrosoft".
执行 c:windowssystem32cmd.exe 时出错.
这两句是什么意思啊
一周热门 更多>