The c source was created and tested with Pelles 32bit c compiler. You will need to add oleauto32 and uuid libraries to the linker tabs.
I am NOT a c/c++ programmer but did find enough information to put together this example of accessing PowerBASIC COM Servers with no MFC,ATL, ABCDEFGH or whatever .....
Much of it is based on code I either found here or on the Code Project web site.
If you have ever written a com server in c or c++ I'm sure you will find the PowerBASIC Server source enlightening and maybe a bit jaw dropping on it's simpilcity.
Sources and a compiled server dll are included in the attachment.
Edit:
I forgot to mention there is no need to register the com class. Code shows loading dynamically from dll.
James C. Fuller 01-27-09