Imo the connection with IB should maybe be made via socket functions of C++ ??
MT4 approach maybe via Trade-Commander, unfortenately is it commercial software.