webservice系列教学(16)-如何调用webservice(vc7)
//////////////////////////////////////////////////////////////////////////////////////////////////
// function: CMClientDlg::assignItem()
//
// parameters: (LVITEM *item, UINT mask, int iItem, int iSubItem, LPTSTR pszText, int cchTextMax)
//
// description: assigns the given values for a LVITEM type item
//
// returns: void
//
//////////////////////////////////////////////////////////////////////////////////////////////////
void CMClientDlg::assignItem(LVITEM *item, UINT mask, int iItem, int iSubItem, LPTSTR pszText, int cchTextMax)
{
item->mask = mask;
item->iItem = iItem;
item->iSubItem = iSubItem;
item->pszText = pszText;
item->cchTextMax = cchTextMax;
return;
}
//////////////////////////////////////////////////////////////////////////////////////////////////
// function: CMClientDlg::AssignpRef()
//
// parameters: (VARIANT *var1, VARIANT *var2)
//
// description: assigns the value of var1 ,from var2 variant type
//
// returns: void
//
//////////////////////////////////////////////////////////////////////////////////////////////////
void CMClientDlg::AssignpRef(VARIANT *var1, VARIANT *var2)
{
switch (var2->vt)
{
case VT_BOOL:
V_BOOLREF(var1) =