Visual C++

Moderators: Lundin
Number of threads: 379
Number of posts: 695

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to use an OCX in my application? Posted by YevgenyEfter on 26 Nov 2009 at 8:16 AM
Hello!

Maybe that's not the right forum for this question, but I have to start somewhere.

I am writing an OCX component with ATL in Visual C++ 6, and in my component, I need to use another OCX.

With that OCX I have a TLB file.

I read that I can do #import to this TLB and then I will be able to access the registered OCX.

Can you explain to me how I can do that? How can I use this OCX component? (It's not a graphics component)

Do I have to create a class that will access the registered OCX, or a class like this is created automatically when I import the TLB?

Any help will be appreciated!
Report
Re: How to use an OCX in my application? Posted by vivekuniq on 27 Nov 2009 at 10:14 PM
Report
Re: How to use an OCX in my application? Posted by YevgenyEfter on 28 Nov 2009 at 2:21 AM
Thank you, it does help, but can you explain to me what CreateDispatch does, and how it works when I import a tlb?

Thank you!



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.