I'm trying to read in the next value in the input.txt file and do a binary search within my vector to see if it is there or not, but I'm stuck at this error.
As your comments note, the error occurs when the program tries to compare v[middle] to key on lines 10 and 15.
Vector v hold pointers-to-IPRecord objects, which is to say it holds memory addresses. The compiler does not know how to compare an integer to a memory address, so it gives an error. Consider using the arrow operator (->) to access the object to which the memory address points.
1 2 3
...
if (v[middle]->IPRecord member name == key) // error here
...