Re: Help with connection points

From: Adelle Hartley (adelle_at_bullet.net.au)
Date: 08/18/04


Date: Wed, 18 Aug 2004 21:51:11 +1000


"Arshad Tanveer" <public@atanveer.com> wrote in message
news:xmvUc.348$A_6.206@newsfe2-gui.ntli.net...
> Hi,
> I have developed a COM component using VC++/ATL, which is to be used in a
> Visual Basic client. The difficulty I am facing is with a connection
point.

Try changing LPOLESTR to BSTR.

You should also add "oleautomation" to your interface's attribute list.
This
should generate warnings for you at compile time for most issues that are
likely to cause problems with VB.

A list of which parameter types are oleautomation compatible can be found
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap8_9a9a.asp

Adelle.



Relevant Pages

  • XP Firewall and Apache Web Server - Unable to connect from internal LAN.
    ... the Internet Facing connection is with the XP ... no longer connect to the Web site that is hosted on the external facing IP ... have about 4 other PCs on my home network), but they cannot connect to the ...
    (microsoft.public.windowsxp.general)
  • Re: Passing BSTR and BSTR* params to an event callback function
    ... Can anyone explain me a bit on how to pass a BSTR and a BSTR* to an ... But the keyword you're looking for is "Connection Points". ... To that end, though, I'd recommend reading _Professional ATL COM Programming_ by Grimes, off the Wrox press, which is where I got my start. ... Personally, since I'm as much a simpleton with this sort of thing as anyone, I usually just set any data I'd be passing through a connection point as a property of my ATL object, and then I fire parameterless events, unless the parameters are pretty atomic. ...
    (microsoft.public.vc.atl)
  • Re: Facing Points?
    ... > Here is an interesting instance of how a facing point was avoided ... > for accessing the sidings at a passing station on a single-track ... Thanks for the pic.That arrangement of running a yard connection ... web space explaining the working of such a connection to avoid ...
    (uk.rec.models.rail)
  • Re: ASP.NET architecture : am I missing something
    ... > I am facing a little problem with my website that gives me an headache: ... > The problem stands in my connection to the database. ... > when requesting a page at the same time. ... > That results in some odd errors telling connexion already opened and errors like this. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: vbscript/COM question
    ... was facing the same problem till i found it. ... apparently VBScript can't handle bstr* or any other pointer arguements. ...
    (microsoft.public.scripting.vbscript)