473,386 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HOW TO READ ARRAY OF STRUCTURES FROM COM using C#

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

Jul 3 '06 #1
2 979
hi Srinivas, try the following resource :
http://support.microsoft.com/default...b;en-us;305990
Regards,
Alessandro Zifiglio
http://www.asyncui.net
"srinivas" <ch*************@gmail.comha scritto nel messaggio
news:11**********************@m73g2000cwd.googlegr oups.com...
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

Jul 3 '06 #2
Hi Alessandro Zifiglio,

Thanks a lot for this link . I will try as per that link .
Regards,
Srinivas
Alessandro Zifiglio wrote:
hi Srinivas, try the following resource :
http://support.microsoft.com/default...b;en-us;305990
Regards,
Alessandro Zifiglio
http://www.asyncui.net
"srinivas" <ch*************@gmail.comha scritto nel messaggio
news:11**********************@m73g2000cwd.googlegr oups.com...
Jul 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: michi | last post by:
Hello everybody, I have following problem: I have an array of pointers to structures: table* tab = new table; and structure table is like this: struct table{ CSLL::node* chain;
2
by: Blankdraw | last post by:
.... somewhere, a newbie is dying ... Is there anybody out there who can help me get the right input for the following segment? I am trying to read entire records of 5 (2-digit) integers at a...
4
by: Animesh | last post by:
Hi All, I don't know whethher this is possible or not. This is the result of a bad design problem. Here I go; I have a structure like this: typedef struct _s_index_entry { char *doc_id;...
2
by: david | last post by:
Well, as a matter of fact I_HAD_MISSED a basic thing or two, anyway, although Ollie's answer makes perfectly sense when dealing with classes, it doesn't seem to me to apply as well if you have to...
8
by: ulyses | last post by:
I'm trying to put pointer to flexible array of structures in other structure. I want to have pointer to array of pixels in screen structure. Here is mine code, but I think it isn't quite all right:...
0
by: srinivas | last post by:
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 STRUCTURES . ...
12
by: gcary | last post by:
I am having trouble figuring out how to declare a pointer to an array of structures and initializing the pointer with a value. I've looked at older posts in this group, and tried a solution that...
44
by: svata | last post by:
Hello, I wonder how to resize such array of structures using realloc()? #include <stdio.h> #include <stdlib.h> #define FIRST 7 typedef struct { char *name;
3
by: bill | last post by:
All, I have the following: ...... unsafe public struct Example { public double we;
14
by: chance | last post by:
Hello, I have a file on disk called TEMP.ZIP and I would like to somehow get this into a memory stream so I can eventually do this: row = dataStream.ToArray() However, I am not sure of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.