DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 10 Jul 2007 18:35:09 +0500,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Asif Khan
          2    Michael Phillips, Jr. 0.c0m


Marshalling a complext structure   
Hi All,

I am working with clipboard. It stores data pointed to by using a void 
pointer. I have a managed object of a complext structrue containing native 
data (e.g. int, long) as well as objects of my own class and arrays of 
objects, pointers to objects etc. How to marshal that structure to unmanaged 
memory so I can store it in clipboard as binary object. Is there any other 
way to do this.

Thanks
Asif
Date:Tue, 10 Jul 2007 18:35:09 +0500   Author:  

Re: Marshalling a complext structure   
Create an unmanaged IStream interface backed by a block of global unmanaged 
memory(e.g, CreateStreamOnHGlobal).

Use the IStream methods to copy your complex structures from managed memory 
and then place the IStream interface pointer on the clipboard via the 
IDataObject interface.

"Asif Khan"  wrote in message 
news:ORnVpavwHHA.3588@TK2MSFTNGP06.phx.gbl...

> Hi All,
>
> I am working with clipboard. It stores data pointed to by using a void 
> pointer. I have a managed object of a complext structrue containing native 
> data (e.g. int, long) as well as objects of my own class and arrays of 
> objects, pointers to objects etc. How to marshal that structure to 
> unmanaged memory so I can store it in clipboard as binary object. Is there 
> any other way to do this.
>
> Thanks
> Asif
> 
Date:Wed, 11 Jul 2007 19:39:18 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us