The PROGID$() function looks up a CLSID in the registry, and returns the associated ProgID, which is a human-readable name for it. COM has an absolute, unequivocal rule that a ProgID may be no longer than 39 characters. So, PowerBASIC scans 40 characters (the trailing nul) when making this conversion for you.
Unfortunately, it seems a few folks now break this rule occasionally, and COM services do not enforce it in the registry, as they should. Luckily, it is extraordinarily rare. If you happen to encounter this issue, the only practical solution is to edit the ProgID in the registry to a conforming value. If help is needed, you may contact PowerBASIC Technical Support for assistance.
We will break the rule, too, in the next version and support up to 95 characters, instead of 39.
Best regards,
Bob Zale
PowerBASIC Inc.
Unfortunately, it seems a few folks now break this rule occasionally, and COM services do not enforce it in the registry, as they should. Luckily, it is extraordinarily rare. If you happen to encounter this issue, the only practical solution is to edit the ProgID in the registry to a conforming value. If help is needed, you may contact PowerBASIC Technical Support for assistance.
We will break the rule, too, in the next version and support up to 95 characters, instead of 39.
Best regards,
Bob Zale
PowerBASIC Inc.
Comment