TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dantz
NA
13
0
Correct convert/marshall C Function and DLL Structure type to C#
Oct 19 2011 6:17 PM
Hi,
Can someone please help me convert my C structure/function into C#? I really need this badly...
I believe I can call the DLL properly if I have able to correctly convert the function and marshal properly my structure.
Here is my struct and the function that uses it:
[CODE]
typedef struct UIclient_info {
char name[50];
int age;
SECONDUSER *stParent;
} FIRSTUSER;
typedef struct ui_product_form {
char m_sCoupon;
double amountTotal;
char m_sErrorCode[50];
SUBPRODUCT *pstSubProduct;
} PRODUCT;
typedef struct tagReport
{
REPORTSUMMARY *pstRepsum;
char errorMsg[100];
}FINAL_REPORT;
int Save(FIRSTUSER *myUser, PRODUCT *uiStructure)
FINAL_REPORT GenerateReport(FIRSTUSER *myUser, PRODUCT *uiStructure)
[/CODE]
PLEASE HELP.
Thanks in advance.
-dantz
Reply
Answers (
11
)
Application Domain
Containership in Inheritance