How to Call structures from c# dll
-
Hi all. I have a created a DLL using c#...I have used structures to store some data.. Now i am calling DLL from vc++ win 32 Console application.. How i can use the structure... Any idea thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
-
Hi all. I have a created a DLL using c#...I have used structures to store some data.. Now i am calling DLL from vc++ win 32 Console application.. How i can use the structure... Any idea thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
manju#123 wrote:
How i can use the structure...
Is it exported?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi all. I have a created a DLL using c#...I have used structures to store some data.. Now i am calling DLL from vc++ win 32 Console application.. How i can use the structure... Any idea thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
You can use an IntPtr in the C# code to hold the address of the structure. In the C++ code you can cast this pointer to a pointer to the structure. If the structure is declared with the same members in both languages, it will probably be the same in memory.