Ok, I'm very confused.
I expected this would return a string, but intead the following function
returns a pointer:
char * CPUInfo::GetVendorID ()
{
// Return the vendor ID.
switch (ChipManufacturer) {
case Intel:
return "Intel Corporation";
case AMD:
return "Advanced Micro Devices";
case NSC:
return "National Semiconductor";
default:
return "Unknown Manufacturer";
}
}
I want the calling function to have access to that string. Without changing
the above function, how could I access that string using the pointer
returned? Everything I've tried hasn't worked.
Thanks!
--
Tom Junior
to********@automateddesign.com
Automated Design Corporation
P: (630) 783-1150 F: (630) 783-1159