pb has nothing to do with this
PB has everything and nothing to do with this. VB and C++ take care of the threading model for you. Once you select the threading model, regardless of whether you program for it or not, the registry "IS" updated with the proper model when registering the component.
if a PB compiled dll can be used in any threading model the documentation should clearly state that we as programmers should update the registry with the proper model at least. It would be even better if we could do something like
Interface myInterface Guid() as both
or
Interface myInterface ThreadingModel Apartment Guid()
or
Interface myInterface Guid()
Inherit IDISPATCH
ThreadingMode Both
fact is, the PB Com implementation is limited because most of what can be done in c++ doesnt exist and PB makes assumptions on how we use it without explaining what the manual options are.
Leave a comment: