🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2906

Re: ActiveX and Pointers Question (newbie)

#2906
From: Scott McPhillips
Date: Thu, 28 Jan 1999 00:00
16 lines
1878 bytes
beach9000@hotmail.com wrote:
> 
> I'm trying to plan out a generic ActiveX control.  It deals with a rather
> complicated tree structure and I was wondering how could I pass the data in
> the tree structure to the container.  I've heard that you can't simply pass
> pointers out of a control, but for me that would be the easiest solution.
> 
> Could somebody explain why I can't pass a pointer and also help with some
> solutions?
> 
> Thanks.
> 
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own

If the ActiveX control will only be used in-process then you can pass pointers in or out by simply casting the pointer to and from any OLE supported type, such as long*.
Technical Details
Message-ID: <36AFA9CE.BBB0055D@REMOVEhome.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <78nmfa$dee$1@nnrp1.dejanews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc3fb,1fd1e4ef1e99d651
X-Google-Attributes: gidfc3fb,public
X-Google-Thread: f5214,1fd1e4ef1e99d651
X-Google-Attributes: gidf5214,public
X-Google-Thread: 105df1,1fd1e4ef1e99d651
X-Google-Attributes: gid105df1,public
X-Google-Thread: 11493c,1fd1e4ef1e99d651
X-Google-Attributes: gid11493c,public
From: Scott McPhillips <scottmcp@REMOVEhome.com>
Subject: Re: ActiveX and Pointers Question (newbie)
Date: 1999/01/28
Message-ID: <36AFA9CE.BBB0055D@REMOVEhome.com>
X-Deja-AN: 437730873
Content-Transfer-Encoding: 7bit
References: <78nmfa$dee$1@nnrp1.dejanews.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@home.net
X-Trace: news.rdc1.md.home.com 917482048 24.3.47.220 (Wed, 27 Jan 1999 16:07:28 PDT)
Organization: McPhillips Designs
MIME-Version: 1.0
NNTP-Posting-Date: Wed, 27 Jan 1999 16:07:28 PDT
Newsgroups: comp.os.ms-windows.programmer.misc,microsoft.public.vc.activextemplatelib,microsoft.public.vb.general.discussion,borland.public.delphi.activex.controls.writing