CFanatic

Go Back   CFanatic > Advance Programming > Network Programming


  #1  
Old 06-30-2010, 10:30 PM
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
PrettyFlower is on a distinguished road
| More
Passing Complex Types in COM

I would like to know if maybe there are some good solutions to handling complex types not importable into IDL. My biggest concern is using _m128 vector types for simmed instructions ie. XMVECTOR. __declspec is not recognized by the midl compiler so importing the __m128 data type is out of the question. I looked into using wire_marshal to do this but I think it needs to be aware of the typedef of the __m128 type. If there are ways to foreword_declare XMVECTOR for use with wire_marshal I haven't the foggiest on what they are.

I have thought of hiding the type by encapsulating it which I am am already doing in the Reflection system I am developing. I have played around with a few ideas here including inheriting from both COM and C++ interfaces. This would involve marshaling as POD types over boundaries and marshaling out the data to be stored(persistence) under COM and in-process and in object manipulation via C++ interface... Nothing here looked too safe and/or promising.

I keep saying this all over the intrawebs but.... A lot of people have told me not to use COM and I honestly have spent a lot of hours not coding and just trying to figure this stuff out. My logic keeps seeing a whole lot of benefits to using COM and the alternatives including MyCOM look just as time consuming and riddled with problems. If this is my biggest problem with using COM should I keep moving foreword or are the solutions going to slow down this application; keeping in mind its reliance on graphical presentation and real time computational modeling? I mean if I have a COM Object that is a model, another that is the math library and another that is the physics, if I have to communicate through all this, well..... I guess I have been told....

I am looking into doing stuff on the scale of rendering farms or clouds or something of the sort... So I guess I am looking for a solution where simmed instructions could be performed at near efficiency between COM objects in-process but also be capable of performing under marshalling over a network or between processes....

I talk big and I know I am noob so please, not trying to impress just looking to become informed(aka don't hurt me *insert duck and cover*) ... I have done a lot of research!

thx, BekaD:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello there, just passing by. StiltsChickMonica Introduce yourself 1 02-03-2009 02:39 AM
passing arrays in C# Xarzu C# Programming 3 09-29-2008 05:27 AM
Error passing a value_type as a reference a_new_beginning C++ Programming 0 08-15-2008 10:40 PM
Types of Timers coderzone C# Programming 1 03-08-2008 07:32 AM
Types of computer viruses JokesBot The Lounge 0 10-29-2006 01:57 AM

 

Follow CFanatic on Twitter
CFanatic Search
Custom Search

Advertisement

Go4Expert's Job Board
Powered by

Go4Expert Newsletter
Enter your Name and Email Address below and Click Subscribe.

Subscriber Counter

Not planning to subscribe yet, browse Go4Expert's Newsletter Archive

All times are GMT -5. The time now is 06:01 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Looking for work in C, C++, C#? Sign up at Elance and search over 30,000 Freelancing jobs today.