PC Review


Reply
Thread Tools Rate Thread

How to change unmanaged C++ struct from c#?

 
 
=?Utf-8?B?77yy772F772D772I772J772S772E?=
Guest
Posts: n/a
 
      18th Mar 2005
I am trying to modify values of data members of a structure (100 data
members) created by unmanaged C++ DLL from c#.


[C++]
// Shared Memory IO
typedef struct
{
int uBit;
int uBitStatus;
int uChannel;
char szDescription[50];
} SM_IO, *SMP_IO;

/......./
SMP_IO smpmachineIO;
CreateSharedMemory( PAGE_READWRITE, 0, sizeof(SM_IO), "IOMemory", (LPVOID*)
&smpmachineIO);

Please help. Thanks.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting unmanaged struct to .NET struct Øystein Skotheim Microsoft VC .NET 1 9th Apr 2009 12:54 AM
Getting Unmanaged struct data to C# jcteague@gmail.com Microsoft VC .NET 1 7th May 2007 03:56 PM
Converting unmanaged struct -> CLI value struct DaTurk Microsoft VC .NET 1 1st Mar 2007 09:19 PM
unmanaged structs in struct with c# juergen Microsoft C# .NET 2 14th Apr 2006 08:28 AM
marshaling an unmanaged struct Lee Crabtree Microsoft VC .NET 1 9th Nov 2005 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 AM.