Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Manipulating items in functions. (Read 2193 times)
MagnusSpeychal
Junior Member
**
Offline



Posts: 53
Joined: Jun 18th, 2007
Manipulating items in functions.
Mar 27th, 2008 at 3:58pm
Print Post  
Hi

When manipulating flowchart items in functions, should one pass the item directly to the function or should a pointer to the item be passed. I have noticed that passing the item directly works and that's why I am a bit pussled.


Best regards,
Magnus
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Manipulating items in functions.
Reply #1 - Mar 27th, 2008 at 6:21pm
Print Post  
Hi,

The MFC wrapper classes inherit from COleDispatchDriver. That class provides an LPDISPATCH cast operator, which just returns the underlying IDispatch pointer. So, it doesn't matter much whether you are passing directly the pointer or the item wrapper object.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
MagnusSpeychal
Junior Member
**
Offline



Posts: 53
Joined: Jun 18th, 2007
Re: Manipulating items in functions.
Reply #2 - Mar 31st, 2008 at 9:02am
Print Post  
Hi Stoyan

Thank you for your answer.
Now I know how to proceed!


Best regards,
Magnus
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint