• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

C COM clients & C COM servers...

Started by Gérôme Guillemin, February 08, 2009, 11:32:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gérôme Guillemin

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!

Frederick J. Harris

#1
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.

Frederick J. Harris

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

Gérôme Guillemin

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!