#include <vector>
struct Device
{
CString name;
CString type;
};
vector<struct Device> v_device;
struct Device device;
device.name = strName.c_str();
device.type = strType.c_str();
v_device.push_back(device);//
vector<struct Device>::iterator iter = v_device.begin();
for(iter; iter != v_device.end(); ++iter)
{
if(dEviceName == iter->name)
return iter->type;
}