Hi ,
Pls help me to solve this problem .
/* --this is one of the function in COM component */
int ProjectLIsts(LPCTSTR prj , VARIANT* prj_list)
{
prj_Lists= { ARRY OF STRUCTERES . ,.ONE STRUCTERES FOR EACH PROJECT
}
returns TOTAL NUM of PROJECTS
}
..........
I want to do it using pinvoke method .
How can read the ARRAY OF STRUCTERES from managed Code .
My project structure is
typedef struct {
char name[50]; //full project name
char mnemonic[20];
char lock;
char hide;
}PRJ_INFO;
I am new to .net . So pls help to overcome for this problem .I searched
so many sites but I did not get correct answer for this problem.
If any one suggest good method I will follow that method
Regards,
Srinivas
TDC - 07 Jul 2006 13:11 GMT
Structures in Variants are tricky. This looks even trickier because it
looks like it is a Variant containing an array of structures (which I
guess would then be themselves Variant-Structures)? Do you have access
to the source of the COM component or is it a thrid-party component?
> Hi ,
>
[quoted text clipped - 32 lines]
> Regards,
> Srinivas
srinivas - 10 Jul 2006 06:15 GMT
yes i have access permissions .. For solving that problem i created
regular DLL .
> Structures in Variants are tricky. This looks even trickier because it
> looks like it is a Variant containing an array of structures (which I
[quoted text clipped - 37 lines]
> > Regards,
> > Srinivas