473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Dispatch Interface question

Hi everyone,

I am quite new here, and actually no so old to C/C++ either.

To put things in perspctive I only use C or rather C++ (MSCV 6) to build
tool library's (either standard DLL or COM / OCX), so my knowledge is pretty
much rudimentary complemented by some experience and a lot of wizard / mfc
usage.

Now for my problem:

I've been comissioned to build an OCX wrapper for 3 DLLs. Along with this
the wrapper will also provide a bit of extra functionality of it's own, but
it is basically a wrapper.
I've also been asked to do it by encapsulating each DLL's functionality has
a 'collection', for lack of a better term. Has an examble consider the
TreeView control Nodes collection. When you type TreeView1.Nodes. you get a
list of properties/methods that you can use. Like count, wich returns a node
count. So what I need is something on the lines of
Wrapper.DLL1.somepropertyormethod, etc for the other two DLLs.
My problem is I can do this in COM/ATL/WFC by simply creating a separate
class for each DLL and then write on the appropriate IDispath entries. The
classes themselfs are not available, so they cannot be instanciated, and all
of they're exposed functionality is available through a
Wrapper.DLL1.whatever .
But how do I pull this off in a OCX ?! The wizard is of no help here. Trying
to do it by hand, has if it were a COM has only led to compile messages. To
top it off, the classes are visible and can be instantiated separately,
probably due to the fact that I do have OleAutomation enabled for all of
them.

So question, how do I pull off the 'collection' look alike ? And most
importantly how do I make the other classes private instead of public ?

If you can point me towards an example out there it would be even better,
has I tend to learn faster that way.

Thanks for your help.
Jul 23 '05 #1
2 1391
DLL/COM/ATL/WFC/OCX... are not part of the C++ standard and thus are
off topic on this newsgroup. I suggest posting your question to a
microsoft newsgroup.

Jul 23 '05 #2
Thank you, didn't know that.

Sorry for the inconvenience.

Best regards,
Lord Phoenix

"BigBrian" <wo**@brianmielke.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
DLL/COM/ATL/WFC/OCX... are not part of the C++ standard and thus are
off topic on this newsgroup. I suggest posting your question to a
microsoft newsgroup.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel...
0
by: Thomas Heller | last post by:
I'm currently reinventing the wheel ;-), implementing 'clones' for the win32com.client.Dispatch and DispatchWithEvents functions using ctypes. It works fairly well, although the more complicated...
0
by: selwyn | last post by:
hi, this is my first foray into the mysteries of COM and dlls, so please humour me. I have been provided with a dll interface for a connection to a web-server. The documentation provided is...
14
by: Curzio Basso | last post by:
Hi all. I have a couple of question regarding the following situation: class A(object): def __init__(self): pass class B(object): def __init__(self):
4
by: Leslaw Bieniasz | last post by:
Cracow, 20.09.2004 Hello, I need to implement a library containing a hierarchy of classes together with some binary operations on objects. To fix attention, let me assume that it is a...
4
by: The Stevemeister | last post by:
Hi, I have an entity class (from a rendering engine) with about 100 functions now that are virtual. So far no slowdowns, but since I've done alot of work with OWL and MFC over the years, and I...
1
by: Thomas Matthews | last post by:
Hi, I'm looking for an efficient method to deep copy containers of fields. A Field is a parent class with children such as Integer_Field, String_Field, and Date_Field, etc. The algorithm /...
3
by: Tigera | last post by:
Greetings, I too have succumbed to the perhaps foolish urge to write a video game, and I have been struggling with the implementation of multiple dispatch. I read through "More Effective C++"...
2
by: DeMarcus | last post by:
Since I started with OO I've been told switching on typeid is a big no-no. E.g. void Washer::wash( Vehicle myVehicle ) { if( typeid(myVehicle) == typeid(Car) ) Washer::washCar( myVehicle );...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.