-
Access OCX code without using a form
Hi
I'm not sure if this is the right newsgroup to post this question but here
goes. If there's a more appropriate group please let me know.
I have an OCX control that I need to be able to access from my application.
However it would simplify things if I was able to access the non-visual
objects within the OCX without putting the control on a form. Is there
anyway I can access the objects contained within an OCX by using a
CreateObject("myOCX.myClass") type syntax or technique? Any guidance or
ides someone can provide would be appreciated. Getting the OCX converted to
an ActiveX DLL is not an option - I'm stuck with what I've got!
--
Peter Merwood
Circle Consulting Services
Phone: +64 21 441-143
Email: peter_m@circle-consulting.co.nz
Web: http://www.circle-consulting.co.nz
-
Re: Access OCX code without using a form
On Thu, 28 Feb 2002 19:46:52 +1300, "Peter Merwood" <peter_m@circle-consulting.co.nz> wrote:
¤ Hi
¤
¤ I'm not sure if this is the right newsgroup to post this question but here
¤ goes. If there's a more appropriate group please let me know.
¤
¤ I have an OCX control that I need to be able to access from my application.
¤ However it would simplify things if I was able to access the non-visual
¤ objects within the OCX without putting the control on a form. Is there
¤ anyway I can access the objects contained within an OCX by using a
¤ CreateObject("myOCX.myClass") type syntax or technique? Any guidance or
¤ ides someone can provide would be appreciated. Getting the OCX converted to
¤ an ActiveX DLL is not an option - I'm stuck with what I've got!
If you add it to your project and can't create it using the method described above the answer is
probably 'no'. Whether you can do this may depend upon the interfaces and any constituent controls
you are using.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
-
Re: Access OCX code without using a form
Paul
Thanks for your response. I've solved the problem now. The trick was to
find the correct class parameter for the CreateObject function.
--
Peter Merwood
Circle Consulting Services
Phone: +64 21 441-143
Email: peter_m@circle-consulting.co.nz
Web: http://www.circle-consulting.co.nz
"Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message
news:r71t7ugbt9c6ml1pvkqbdbun6ktss3necs@4ax.com...
> On Thu, 28 Feb 2002 19:46:52 +1300, "Peter Merwood"
<peter_m@circle-consulting.co.nz> wrote:
>
> ¤ Hi
> ¤
> ¤ I'm not sure if this is the right newsgroup to post this question but
here
> ¤ goes. If there's a more appropriate group please let me know.
> ¤
> ¤ I have an OCX control that I need to be able to access from my
application.
> ¤ However it would simplify things if I was able to access the non-visual
> ¤ objects within the OCX without putting the control on a form. Is there
> ¤ anyway I can access the objects contained within an OCX by using a
> ¤ CreateObject("myOCX.myClass") type syntax or technique? Any guidance or
> ¤ ides someone can provide would be appreciated. Getting the OCX
converted to
> ¤ an ActiveX DLL is not an option - I'm stuck with what I've got!
>
> If you add it to your project and can't create it using the method
described above the answer is
> probably 'no'. Whether you can do this may depend upon the interfaces and
any constituent controls
> you are using.
>
>
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks