Hi ,
Pls help me to solve this problem .
/* --this is one of the function in COM component */
System.int32 ProjectLIsts(LPCTSTR prj , VARIANT* prj_list)
{
prj_Lists= { ARRY OF STRUCTES . ,.ONE STRUCTE FOR EACH PROJECT }
returns TOTAL NUM of PROJECTS
}
.
If I add this COM component to my .net project , then it converted
as
System.Int32 ListProjects (System.string , System.Object prj_list )
Then I wrote the code as
API obj=new API();
int no_of_projects;
object p;
no_of_projects =Obj. ProjectLIsts(" " , out p);
here it returns no_of_projects correctly but if I use out variable p I
got
null reference exception
How can I read the array of struct
here I got no_of_projects is correct .But how can read p data .
If I print Console.WriteLine(p.GetType())
I got Null reference exception .
Could any one help me
Regards,
Thanks in advance
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/XGgtlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/