Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / July 2006

Tip: Looking for answers? Try searching our database.

HOW TO READ ARRAY OF STRUCTURES FROM COM using C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
srinivas - 03 Jul 2006 12:28 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.