Hi Chase707
Its right , but then i think you cann't access this structure in scripting language like VB.OR this structure should be marshaled proferly.
Main Topics
Browse All TopicsHi,
Can I transfer my defined structure or a pointer to my structure as a COM paramter. I think that the user can recognize it from idl.
Thanks !
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In VB you can just define the structure using VB conventions before you call the method. I do not know the VB language well, so I do not recall the exact syntax.
I think it's something like:
...
Type MY_STRUCT
stuff as int
End Type
...
As long as your struct contains only Automation compatible types (those defined in the VARIANT enum), then IDL will handle the details of marshalling your structures across processes.
Business Accounts
Answer for Membership
by: Chase707Posted on 2002-06-02 at 09:23:57ID: 7049597
yes,
in the idl file:
typedef struct MY_STRUCT
{
int mystuff;
} MY_STRUCT;
...
interface IMyInterface : IUknown
{
HRESULT myMethod( [in] MY_STRUCT* pStruct);
}
...
then just implement it in your component as normal.
Chase707