FPC has some rudimentary DLL and PIC support. However it is not always userfriendly. (read: slight mod might break dll compability)

FPC afaik has no full C++ support yet, though theer has been toyed with that in the past. There is no C++ mangling yet, and it is not yet clear which C++ compiler to support anyway (gcc is most likely, not BCB or VC++)