It's nasty, but the only way to do it is you change the IExample pointers to void pointers:
typedef long SetStrPtr(void *, char *);
typedef long GetStrPtr(void *, char *, long);
It will work perfectly happily because all pointers are the same length, but it won't be strongly typed.