Powerbasic Museum 2020-B

IT-Consultant: Frederick J. Harris => Discussion => Topic started by: Gérôme Guillemin on February 08, 2009, 11:32:05 PM

Title: C COM clients & C COM servers...
Post by: Gérôme Guillemin on February 08, 2009, 11:32:05 PM
Hello,

As a C developer, I've just found an old link I used to browse years ago, there you'll find many COM stuff coded in pure C :
http://www.johnfindlay.plus.com/lcc-win32/OLE/ole.htm

Enjoy!
Title: Re: C COM clients & C COM servers...
Post by: Frederick J. Harris on February 09, 2009, 01:54:45 AM
Hi Gerome!

     I don't mean to be ignoring you.  Thanks for the various links.  By the way, for the past couple days I've been exploring some of the issues you mentioned you were having regarding getting PB Com servers to work.  What I have found (and this surprised me - I wasn't aware of it) is that the only way I can seem to access COM servers generated by PB in Visual Basic 6 is through late binding using CreateObject("ProgID").  In other words, I can't seem to get Direct VTable access to work, or even early binding on components that should support this.  In examining the idl file generated by the OLEView.exe utility I have found that somehow or other either the COM class itself or the type library has a typeflag being set as marking the component as NONCREATABLE!  I seem to recall some threads about this right after PB 9 came out last summer.   I havn't gone back to re-read or find those, and I don't recall how the issue was left.  Also, I expect PB will be coming out with an update soon.  As I said, I'm still investigating the issue.
Title: Re: C COM clients & C COM servers...
Post by: Frederick J. Harris on February 09, 2009, 02:17:10 AM
Just went back and found those early posts.  That is exactly the issue I found.  Here is the link...

http://www.powerbasic.com/support/pbforums/showthread.php?t=38369
Title: Re: C COM clients & C COM servers...
Post by: Gérôme Guillemin on February 09, 2009, 10:24:27 AM
Ha-ha !

You got it!
Thanks for this information, this should interest Petr as well :)
Hope to see a PB fix for that very important COM part!

Thanks again!