473,396 Members | 1,847 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,396 software developers and data experts.

trouble witch ucing struct from C dll

Hello, I'm a "expert of beginner" in C#.
I have a dll - in C. And in this dll is this struct:


Expand|Select|Wrap|Line Numbers
  1. typedef
  2. struct msg_s { /* please make duplicates of strings before next call to emi_read() ! */
  3.  
  4. int op_type; /* of "op_t" type: operation type; submit (>0), response (<0) */
  5.  
  6. union {
  7.  
  8. struct {
  9.  
  10. const char* from;
  11. const char* to;
  12. const char* notif_addr;
  13. int notif_type; /* not_t */
  14. const char* validity; /* DDMMYYHHmm */
  15. const char* timestamp; /* DDMMYYHHmmss */
  16. dst_t deliv_status;
  17. int deliv_reasoncode;
  18. const char* deliv_timestamp; /* DDMMYYHHmmss */
  19. const char* text;
  20. int priority;
  21. int bit8; /* data coding scheme */
  22. int numbits; /* number of bits in TD (text) if bit8=1 */
  23. int msg_class;
  24. int rpid; /* rpid == -1 => use RPID value "0000" */
  25. /* rpid == 0 => do not use RPID value */
  26. const char* xservices; /* extra services */
  27. } submit;
  28. struct {
  29. int ack;
  30. int errcode;
  31. const char* sysmsg;
  32. } response;
  33. } uu;
  34. } msg_t;
How can I use this struct in C#?

Thanks a lot

Pavel Spaleny
Mar 22 '07 #1
1 1071
sicarie
4,677 Expert Mod 4TB
I am moving this thread to the .NET forum.
Mar 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Ney André de Mello Zunino | last post by:
Hello. I have been having some trouble dealing with bit fields. The following is a simple program that demonstrates it. #include <iomanip> #include <iostream> struct instrucao_i {
1
by: Steven Spear | last post by:
Hi. I am trying to perform backtracking with this search function. Something is going wrong when I enter 2 at the command line. Entering 1 at the command line seems to work fine. I notice that...
8
by: Pegboy | last post by:
I am having trouble with malloc() again for a PC app I am developing. The method of the suspicious line of code seems to be Ok on a embedded platform, but not with the PC platform. The embedded...
4
by: DaHool | last post by:
Hi there !!! I browsed around the Internet in search for a solution of a little difficult problem i have in VB.NET.... However, i cannot find a suitable anwser anywhere, so i thought i'll give...
5
by: bg_ie | last post by:
Hi all, I'm trying to use the following kit - http://ccrma.stanford.edu/software/stk/ but I'm having trouble building the code. I've tried isolating the problem by deleting code and...
3
by: John Sasso | last post by:
In my Yacc .y file I defined: %union { int value; struct Symbol Sym; } The Symbol struct I defined in a header file I #included in the Prologue section of the .y file as:
3
by: Michael | last post by:
Hi all, I'm having trouble PInvoking a TCHAR within a struct. I'll paste the specific struct's API definition below. I've tried so many numerous variations. The main Win32 error I get is...
4
by: Alan | last post by:
I`m having trouble figuring out the correct syntax for accessing an element of a struct variable (t_list) passed by reference to a function. The compiler does not like the code below when I added...
1
by: yucikala | last post by:
Hello, I'm a "expert of beginner" in C#. I have a dll - in C. And in this dll is this struct: typedef struct msg_s { /* please make duplicates of strings before next call to emi_read() ! */ ...
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:
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.