Solved

User defined types in COM server interfaces

Posted on 2003-10-29
3
195 Views
Last Modified: 2010-04-01
Hi folks,
I want to put together a COM server which will rely heavily on user defined types.  Can I pass UDT's between clients and the server or do I have to be 'inventive' with the standard types?

Thanks.

0
Comment
Question by:brushhead
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:_ys_
ID: 9640762
What platform?
0
 

Author Comment

by:brushhead
ID: 9640775
Hi,
The platform I am developing on is Visual C++ 6 under Windows XP.
0
 
LVL 9

Accepted Solution

by:
_ys_ earned 125 total points
ID: 9640799
In that case DCOM 1.2 will be available. And this handles UDT passing for you. Note that embedded pointers require special consideration.

A complete example, with memory allocation hints is provided within my post here:
http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_20771439.html
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question