trade in就是把二手车卖给车行,单独把车卖给dealer也行,以旧换新也可以。
trade in一般以旧换新,旧的折算成一定金额。你买50000的车,trade-in值35000,那只付差价的15000就可以了,税也只付差价的税而不是全部的税。
Tuesday, July 21, 2015
Saturday, July 18, 2015
温哥华钓鱼/捕蟹注意事项
Monday, July 13, 2015
_vbaRedim vbaRedim
__cdecl SAFEARRAY*
__vbaRedim(arg0__Flags_HAVEVARTYPE,arg4__SizeOfVbLong_4,arg8__ppSAFEARRAY_40D060,argC__VARTYPE_vbLong,arg10__cDims_1,
arg14__Dim0High,arg18__Dim0Low,...DimNHigh,DimNLow,...)
{
sub_660DAEFA(
arg0__Flags_HAVEVARTYPE,
arg4__SizeOfVbLong_4,
argC__VARTYPE_vbLong,
arg10__cDims_1,
&LowHighBounds,
arg8__ppSAFEARRAY_40D060);
return *arg8__ppSAFEARRAY_40D060;
}
void __stdcall
sub_660DAEFA(arg0__Flags_HAVEVARTYPE, arg4__SizeOfVbLong_4, arg8__VARTYPE_vbLong, argC__cDims_1, arg10__LowHighBounds, arg14_ppSAFEARRAY)
{
//loc_660DAFEA
SafeArrayAllocDescriptorEx(arg8__VARTYPE_vbLong,argC__cDims_1,arg14_ppSAFEARRAY);
pSAFEARRAY->fFeatures = arg0__Flags_HAVEVARTYPE;
pSAFEARRAY->cbElement = arg4__SizeOfVbLong_4;
arg4__SizeOfVbLong_4=0;
arg8__VARTYPE_vbLong = &pSAFEARRAY->lLbound;//The lower bound of the dimension.
for(iDim=0;iDim<cDims;++iDim)
{
pSAFEARRAY->rgsabound[iDim].cElements = arg10__LowHighBounds[iDim].High - arg10__LowHighBounds[iDim].Low + 1;
pSAFEARRAY->rgsabound[iDim].lLbound = arg10__LowHighBounds[iDim].Low;
}
pSAFEARRAY->pvData = SafeArrayAllocData(pSAFEARRAY);
}
HRESULT SafeArrayAllocDescriptorEx(arg0__VARTYPE_vbLong,arg4__cDims_1,arg8_ppSAFEARRAY)
{
val = (VAL*)new BYTE[0x10+sizeof(SAFEARRAY)+sizeof(SAFEARRAYBOUND)*arg4__cDims_1];
SAFEARRAY* pSAFEARRAY = val + 1;
memset(val,0);
val->Type = arg0__VARTYPE_vbLong;//
pSAFEARRAY->cDims = arg4__cDims_1;
pSAFEARRAY->fFeatures = FADF_HAVEVARTYPE;
*arg8_ppSAFEARRAY = pSAFEARRAY;
return 0;
}
__vbaRedim(arg0__Flags_HAVEVARTYPE,arg4__SizeOfVbLong_4,arg8__ppSAFEARRAY_40D060,argC__VARTYPE_vbLong,arg10__cDims_1,
arg14__Dim0High,arg18__Dim0Low,...DimNHigh,DimNLow,...)
{
sub_660DAEFA(
arg0__Flags_HAVEVARTYPE,
arg4__SizeOfVbLong_4,
argC__VARTYPE_vbLong,
arg10__cDims_1,
&LowHighBounds,
arg8__ppSAFEARRAY_40D060);
return *arg8__ppSAFEARRAY_40D060;
}
void __stdcall
sub_660DAEFA(arg0__Flags_HAVEVARTYPE, arg4__SizeOfVbLong_4, arg8__VARTYPE_vbLong, argC__cDims_1, arg10__LowHighBounds, arg14_ppSAFEARRAY)
{
//loc_660DAFEA
SafeArrayAllocDescriptorEx(arg8__VARTYPE_vbLong,argC__cDims_1,arg14_ppSAFEARRAY);
pSAFEARRAY->fFeatures = arg0__Flags_HAVEVARTYPE;
pSAFEARRAY->cbElement = arg4__SizeOfVbLong_4;
arg4__SizeOfVbLong_4=0;
arg8__VARTYPE_vbLong = &pSAFEARRAY->lLbound;//The lower bound of the dimension.
for(iDim=0;iDim<cDims;++iDim)
{
pSAFEARRAY->rgsabound[iDim].cElements = arg10__LowHighBounds[iDim].High - arg10__LowHighBounds[iDim].Low + 1;
pSAFEARRAY->rgsabound[iDim].lLbound = arg10__LowHighBounds[iDim].Low;
}
pSAFEARRAY->pvData = SafeArrayAllocData(pSAFEARRAY);
}
HRESULT SafeArrayAllocDescriptorEx(arg0__VARTYPE_vbLong,arg4__cDims_1,arg8_ppSAFEARRAY)
{
val = (VAL*)new BYTE[0x10+sizeof(SAFEARRAY)+sizeof(SAFEARRAYBOUND)*arg4__cDims_1];
SAFEARRAY* pSAFEARRAY = val + 1;
memset(val,0);
val->Type = arg0__VARTYPE_vbLong;//
pSAFEARRAY->cDims = arg4__cDims_1;
pSAFEARRAY->fFeatures = FADF_HAVEVARTYPE;
*arg8_ppSAFEARRAY = pSAFEARRAY;
return 0;
}
Friday, July 10, 2015
open VS fopen VS fdopen
open will return a filedes(int), while fopen and fdopen return a FILE*.
#include <fcntl.h>
#include <stdio.h>
int main(void)
{
char pathname[] = "/tmp/myfile";
int filedes;
FILE *fp;
if ((filedes = open(pathname, O_RDONLY)) == -1) {
printf("open error for %s\n", pathname);
return 1;
}
if ((fp=fdopen(filedes, "r")) == NULL) {
printf("fdopen error for %s\n", pathname);
} else {
printf("fdopen seccess for %s\n", pathname);
fclose(fp);
}
return 0;
}
#include <fcntl.h>
#include <stdio.h>
int main(void)
{
char pathname[] = "/tmp/myfile";
int filedes;
FILE *fp;
if ((filedes = open(pathname, O_RDONLY)) == -1) {
printf("open error for %s\n", pathname);
return 1;
}
if ((fp=fdopen(filedes, "r")) == NULL) {
printf("fdopen error for %s\n", pathname);
} else {
printf("fdopen seccess for %s\n", pathname);
fclose(fp);
}
return 0;
}
Sunday, July 5, 2015
Thursday, June 25, 2015
Subscribe to:
Posts (Atom)